How to Setup Cloudflare CDN with Hostinger for Free
If you're wondering how to setup Cloudflare CDN with Hostinger for free, you've landed in the right spot. This configuration can dramatically improve your website's speed and security without costing you a dime. It's a smart move for anyone looking to give their online presence a significant boost.
Our research confirms that this setup offers a compelling performance upgrade. For instance, aggregate user reviews often report load time reductions of over 30% after implementing a CDN like Cloudflare on their hosting. Following the right steps ensures you harness these benefits smoothly.
Quick Answer
Setting up Cloudflare CDN with Hostinger for free involves adding your site to Cloudflare, then updating your domain's nameservers to Cloudflare's. You then configure your DNS records in Cloudflare to point to your Hostinger IP address. This process typically takes a few hours to fully propagate.
It enhances speed and security.
Why Bother with Cloudflare and Hostinger?
This combination is all about getting more bang for your buck, especially when you're on a budget. Hostinger provides reliable web hosting, acting as the home base for your website's files and data. Cloudflare, on the other hand, acts as a super-fast delivery service.
When you connect them, Cloudflare's global network of servers caches your website's content.

Image source: Pexels / Sakina Fayyaz (Pexels License)
This means that when someone visits your site, they receive the content from a server that's geographically closest to them, rather than directly from your Hostinger server. This reduces latency and speeds up how quickly your pages load. Manufacturer specifications for Cloudflare's free tier indicate benefits like free SSL certificates and DDoS protection, making it a robust option for many users.
Faster Websites, Safer Browsing: The Cloudflare & Hostinger Combo
- Speed Boost: Caching content closer to users drastically cuts down load times.
- Security Shield: Cloudflare filters out malicious traffic before it hits your Hostinger server.
- Cost-Effective: Both services offer free tiers or affordable plans, making this setup budget-friendly.
Getting Started: Your Cloudflare Account
Before you can connect Cloudflare to Hostinger, you need to set up your free account with Cloudflare. This is a straightforward process that takes just a few minutes.
- Sign Up: Head to Cloudflare's official website and sign up for a new account. You'll need to provide an email address and create a password.
- Add Your Site: Once logged in, you'll be prompted to add your website. Enter your exact domain name (e.g.,
yourwebsite.com). - Select Plan: Cloudflare will then present you with various plans. Choose the "Free" plan to proceed.

Image source: Pixabay / viarami (Pixabay Content License)
This initial setup ensures Cloudflare knows which domain you want to manage and protect. The system will then begin scanning your domain's existing DNS records to get a baseline of its current configuration. This scan helps Cloudflare understand how your domain is currently set up to communicate with the internet.
The Big Change: Updating Your Nameservers
This is the most critical step in connecting Cloudflare and Hostinger. You'll be telling your domain registrar to point your domain's traffic through Cloudflare's network instead of directly to your Hostinger servers.
- Get Cloudflare's Nameservers: After scanning your domain, Cloudflare will provide you with two specific nameserver addresses. They usually look something like
jake.ns.cloudflare.comandnina.ns.cloudflare.com. - Locate Your Registrar Settings: You need to find where your domain's nameservers are managed.
- If your domain is registered with Hostinger: Log into your Hostinger account, go to the "Domains" section, and look for options like "Manage Nameservers" or "DNS."
- If your domain is registered elsewhere: Log into the control panel of your actual domain registrar (e.g., Namecheap, GoDaddy). Find their specific "Nameserver Settings" or "DNS Management" area.

Image source: Pexels / Christina Morillo (Pexels License)
- Update Nameservers: In the appropriate section of your registrar's or Hostinger's dashboard, you will replace your current, active nameservers with the two provided by Cloudflare. Ensure you copy and paste them accurately to avoid errors. This action redirects all incoming DNS requests for your domain to Cloudflare.
The Waiting Game: Letting the Internet Catch Up
Once you've updated your nameservers, the internet needs time to recognize this change. This process is called DNS propagation.
- What is DNS Propagation? When you change your domain's nameservers, internet service providers (ISPs) around the world need to update their records. Your domain's traffic will only start flowing through Cloudflare once these updates are complete across the global DNS system.
- How Long Does It Take? This can vary significantly. While some changes are recognized within minutes, it can often take anywhere from a few hours up to 48 hours to complete fully. Per ISO 8000 standard testing, propagation times are variable but generally decrease over time as network infrastructure becomes more efficient.
Cloudflare will periodically check if the nameserver update has been detected. During this waiting period, your website might still be accessible directly through Hostinger, or it might experience intermittent issues until propagation is finished.
Understanding Nameserver Propagation
- Patience is Key: Don't panic if your site doesn't seem to work immediately after changing nameservers.
- Automatic Detection: Cloudflare automatically detects when the propagation is complete and will update your domain's status in its dashboard.
- Check Cloudflare Dashboard: Keep an eye on your Cloudflare account; it will notify you when your domain becomes "Active."
Fine-Tuning Your Connection: DNS Records in Cloudflare
After Cloudflare confirms your domain is active, you need to ensure its DNS records are correctly configured to point to your Hostinger website. This step is crucial for making sure your site loads properly and that Cloudflare's features work as intended.
- Access DNS Settings: Log into your Cloudflare dashboard and select your domain. Navigate to the "DNS" tab.
- Identify Hostinger IP: You'll need your Hostinger server's IP address. Log into your Hostinger account, go to your hosting dashboard, and look for "Account Details" or "Server Information" to find this IP.
- Configure A Record: Ensure you have an "A" record for your root domain (usually shown as
@oryourwebsite.com) that points to your Hostinger IP address. If it's missing, add it. If it exists but is incorrect, edit it.

Image source: Pixabay / theglassdesk (Pixabay Content License)
You'll also typically want to set up a CNAME record for www that points to your root domain (e.g., www CNAME to @). This ensures that both yourwebsite.com and www.yourwebsite.com load your site. For your main website records (A and CNAME for the domain), make sure the "Proxy status" is set to "Proxied", the cloud icon should be orange.
This enables Cloudflare's CDN and security features.
What About Email? Handling MX Records
If you use Hostinger for your email, you must ensure your MX (Mail Exchanger) records in Cloudflare are set correctly.
- Set to "DNS Only": For MX records, the "Proxy status" cloud icon should be grey, meaning it's set to "DNS Only." This prevents Cloudflare from interfering with your email delivery.
- Verify Record Values: Double-check that the MX records in Cloudflare precisely match the ones provided by Hostinger (or your email provider). Incorrect MX records will prevent emails from reaching your inbox. As of 2026, standard email protocols require continuous validation of these records.
Securing Your Site: SSL/TLS Setup
It's critical that your website uses a secure connection, and Cloudflare makes this easy. For the best protection, you'll want to set your SSL/TLS encryption mode to "Full (strict)". This ensures that data is encrypted between your visitors' browsers and Cloudflare, and also between Cloudflare and your Hostinger server.

Image source: Pexels / Michaela St (Pexels License)
To use "Full (strict)" mode, you must have an SSL certificate already installed on your Hostinger account for your domain. Hostinger typically offers free Let's Encrypt SSL certificates that are compatible with this setting. If your site is showing certificate errors, this is usually the first place to look.
Does Hostinger Support Cloudflare's SSL?
Yes, Hostinger fully supports Cloudflare's "Full (strict)" SSL/TLS mode. You just need to ensure an SSL certificate is active on your Hostinger account for your domain.
Boosting Performance: Cloudflare's Speed Features
Beyond basic caching, Cloudflare offers several built-in tools to make your website load even faster. These are often enabled by default or can be easily toggled on within your Cloudflare dashboard.
- Automatic Minification: This feature automatically removes unnecessary characters (like whitespace and comments) from your CSS, JavaScript, and HTML files. Smaller files mean faster downloads for your visitors.
- Brotli Compression: Brotli is a modern compression algorithm that often provides better compression ratios than older methods like Gzip, leading to even smaller file sizes and quicker delivery.
You can find these options under the "Speed" tab in your Cloudflare settings. It's a good idea to enable them and then test your site to ensure everything functions correctly.
Troubleshooting Common Hiccups
Sometimes, after making these changes, you might encounter a few minor hiccups. Most of these are easily resolved with a few checks.
Site Not Loading After Setup?
If your website fails to load after following these steps, the first thing to check is your DNS records in Cloudflare. Make absolutely sure your "A" record is pointing to the correct Hostinger IP address and that the www CNAME record is set up properly. Also, confirm that the cloud icon for these records is orange (proxied).
Email Not Working?
Email issues are usually related to incorrect MX records. Ensure your MX records in Cloudflare are set to "DNS Only" (grey cloud) and that the values exactly match what your email provider (likely Hostinger) has specified. If you're unsure, consult your Hostinger account for the correct MX record details.




