What Is a CDN? Hostinger CDN Explained

What Is a CDN? Hostinger CDN Explained Plays from YouTube

A free, step-by-step tutorial by Ferdy. Watch it right here or on YouTube.

Related: Learn more about WordPress

what is a cdn

What is a CDN and how do you switch on the Hostinger CDN?

Do you want a faster website? Then you need a CDN. CDN stands for Content Delivery Network, and its job is simple: it makes your website load faster for visitors all over the world.

In this guide I explain in plain words how a CDN works, why speed matters so much, and how I switch on the free CDN that comes with Hostinger. After that I show you a few extra speed and security settings in the same dashboard.

What you need

  • A website on a Hostinger plan that includes the free CDN (I use the Business web hosting plan)
  • A free speed test tool like GTmetrix, so you can check the result

How a CDN works

Let’s say the server of my website is in Arizona, in the United States. When a visitor from Arizona opens my website, the response is really fast, because the data does not have to travel far.

Now a visitor from Australia opens the same website. The information has to travel all the way from my server in Arizona to Australia and back. So the website feels slower for that person. The rule is easy: the longer the distance between your visitor and your server, the slower your website is for that visitor.

And speed really matters. It is known that a website that loads within 1 second converts about two and a half times more than a website that loads in 5 seconds. So a slow website costs you customers.

The three things a CDN does

  1. It compresses your website. Smaller files load faster.
  2. It places copies on servers around the world. Your compressed website is stored on multiple CDN servers. Each visitor gets the copy from the server closest to them, so the loading time drops a lot.
  3. It protects your website against DDoS attacks. Those are attacks where a flood of traffic tries to take your website down.

Cloudflare or the free Hostinger CDN

A well known CDN provider is Cloudflare. They have a free plan, and the cheapest paid plan is the Pro plan. In the video it was about $20 per month, billed annually. That is a lot of money just for a faster website.

With Hostinger a free CDN is included in the plan, so Hostinger does it for you. You can see it in the list of features when you scroll down on their hosting page.

How to enable the Hostinger CDN

Before I started, I tested my website in GTmetrix. The score looked fine, but the first recommendation was: use a Content Delivery Network. I already had one in my Hostinger package, so I only had to switch it on.

  1. Log in to Hostinger and go to Websites.
  2. Find your website and click Manage.
  3. Go to Performance and then CDN. You will see that the CDN is disabled.
  4. Click Enable. You get a message that the CDN is enabled successfully.
  5. Wait. Hostinger says it can take 24 to 48 hours before it is fully active. In my case it was already active about an hour later. You can check the status by clicking the arrow to the right in the CDN screen.

Optimize your website even further

Once the CDN is active, there are a few more settings that make your website lighter and safer. Go to Website optimization in the same CDN area.

  • Convert images to WebP. WebP files are a lot smaller than JPEG and PNG, and they can still have a transparent background like PNG.
  • Minify CSS files. This removes unneeded characters so the files are smaller.
  • Minify JavaScript files. Same idea, for your scripts.
  • Smart image optimization. For mobile the images can be made even smaller. I kept the default and clicked Save.

Then go to Traffic blocking. Here you can block IP addresses or even whole countries. There is also an option for when your website is under attack: switch it on and you get advanced security.

You will also see an option for TLS 1.3. I turned it off, because not every device supports it yet. People with an older device might not be able to open your website.

After that I ran GTmetrix again, and the website was faster. So the CDN is doing its job. Want more speed tips? Use my speed up your website prompt, or have a look at the NitroPack tutorial.

Already have hosting without a CDN?

If your current hosting provider does not offer a CDN, you have two options. You can set one up through Cloudflare, or you can move your website to Hostinger. On their website, go to web hosting and choose Migrate to Hostinger. From there you can transfer your websites, emails and domains. If you are new to Hostinger, my Hostinger tutorial shows you around the dashboard.

Frequently asked questions

What does CDN stand for?

CDN stands for Content Delivery Network. It is a network of servers around the world that store copies of your website, so visitors load it from a server close to them.

Is the Hostinger CDN free?

On the plans that include it, yes. I have the Business web hosting plan, and the CDN is part of the package. You only have to enable it under Performance, CDN.

How long does it take before the CDN is active?

Hostinger says it can take 24 to 48 hours. For my website it was active after about an hour.

Does a CDN also make my website safer?

Yes. Besides speed, a CDN helps protect your website against DDoS attacks. In Hostinger you can also block IP addresses or countries and switch on extra security when you are under attack. For more security steps, use the secure your WordPress website prompt.

Leave your comment

Your email address will not be published. Required fields are marked *

Never miss
a tutorial

Every tutorial lives on YouTube. Subscribe and never miss a new one.

Black Friday A full year of Hostinger web hosting + free domain for about $30 with coupon code FERDY1 year hosting + free domain: about $30 with code FERDY Ends Dec 14 Get the deal Ad