{"id":16184,"date":"2026-08-20T02:10:29","date_gmt":"2026-08-20T02:10:29","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=16184"},"modified":"2026-08-28T08:31:09","modified_gmt":"2026-08-28T08:31:09","slug":"hostinger-cdn-vs-cloudflare","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/hostinger-cdn-vs-cloudflare\/","title":{"rendered":"Hostinger CDN vs Cloudflare"},"content":{"rendered":"<p><a href=\"https:\/\/www.hostinger.com\/support\/7935917-hostinger-cdn-website-optimization\/\">Hostinger CDN<\/a> and <a href=\"https:\/\/www.cloudflare.com\/\" target=\"_blank\" rel=\"noopener\">Cloudflare<\/a> are both Content Delivery Networks (CDNs) that speed up your website and protect it from attacks. Hostinger CDN is built into hPanel and works without any external account, while Cloudflare is a third-party service managed from its own dashboard. Only one CDN should be active for a website at a time, so compare the two options and switch between them safely.<\/p><h2 id=\"h-differences-between-hostinger-cdn-and-cloudflare\">Differences between Hostinger CDN and Cloudflare<\/h2><table>\n<thead>\n<tr>\n<th>Aspect<\/th>\n<th>Hostinger CDN<\/th>\n<th>Cloudflare<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Setup<\/td>\n<td>Enabled with one click in hPanel<\/td>\n<td>Requires a Cloudflare account and nameserver change<\/td>\n<\/tr>\n<tr>\n<td>Nameservers<\/td>\n<td>Domain must use Hostinger nameservers<\/td>\n<td>Domain must use Cloudflare nameservers<\/td>\n<\/tr>\n<tr>\n<td>Management<\/td>\n<td>hPanel CDN dashboard<\/td>\n<td>Cloudflare dashboard<\/td>\n<\/tr>\n<tr>\n<td>Caching and analytics<\/td>\n<td>Included<\/td>\n<td>Included<\/td>\n<\/tr>\n<tr>\n<td>Image optimization<\/td>\n<td>WebP compression and smart image optimization included<\/td>\n<td>Cloudflare Images, with usage limits that vary by plan<\/td>\n<\/tr>\n<tr>\n<td>Security<\/td>\n<td>Security levels, Under Attack mode, IP and country blocking, DDoS protection<\/td>\n<td>Similar features managed at Cloudflare<\/td>\n<\/tr>\n<tr>\n<td>SSL<\/td>\n<td>Handled automatically by Hostinger<\/td>\n<td>Managed in the Cloudflare dashboard<\/td>\n<\/tr>\n<tr>\n<td>Availability<\/td>\n<td>Premium Web, Business Web, Cloud, and Agency hosting plans<\/td>\n<td>Any hosting provider<\/td>\n<\/tr>\n<\/tbody>\n<\/table><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">Hostinger CDN is available on Premium Web, Business Web, Cloud, and Agency hosting plans, and is not available for VPS (Virtual Private Server) hosting. Websites built with Hostinger AI Builder are optimized automatically.<\/div><h2 id=\"h-why-only-one-cdn-should-be-active-for-a-website\">Why only one CDN should be active for a website<\/h2><p>Running Cloudflare in front of Hostinger CDN is not a supported setup &mdash; avoid the combination. There are three common problems with a double-CDN setup: redirect loops from conflicting HTTPS rules, stale content because two separate caches must be purged, and incorrect visitor IP addresses in analytics and security tools.<\/p><p>Hostinger CDN requires the domain to <a href=\"https:\/\/www.hostinger.com\/support\/1863967-how-to-point-a-domain-to-hostinger\/\">use Hostinger nameservers<\/a>, while <a href=\"https:\/\/www.hostinger.com\/support\/4741545-how-to-use-cloudflare-in-hostinger\/\">Cloudflare requires its own nameservers<\/a>, so the two services cannot proxy the same website at the same time. Keeping the domain on Cloudflare nameservers, even with proxying turned off, prevents Hostinger CDN from routing traffic.<\/p><h2 id=\"h-how-to-switch-from-cloudflare-to-hostinger-cdn\">How to switch from Cloudflare to Hostinger CDN<\/h2><ol>\n<li>Open the <strong>DNS<\/strong> (Domain Name System) records of the domain in the Cloudflare dashboard and copy every record you still need, such as MX records for email and TXT records for verification.<\/li>\n<li>Recreate the copied records in <a href=\"https:\/\/hostinger.com\/support\/1583249-how-to-manage-dns-records-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">the Hostinger DNS zone<\/a>, and confirm the A record points to <a href=\"https:\/\/www.hostinger.com\/support\/4407303-where-to-find-the-a-record-of-your-hosting-plan-at-hostinger\/\">the IP address of your hosting plan<\/a>.<\/li>\n<li>Point the domain <code>domain.tld<\/code> to <a href=\"https:\/\/www.hostinger.com\/support\/1863967-how-to-point-a-domain-to-hostinger\/\">Hostinger nameservers<\/a> at your domain registrar. Nameserver changes take up to 24 hours to <a href=\"https:\/\/www.hostinger.com\/support\/4146975-what-is-dns-propagation-at-hostinger\/\">propagate<\/a>.<\/li>\n<li>After the domain resolves through Hostinger nameservers, go to <strong>hPanel &rarr; Websites &rarr; Dashboard &rarr; Performance &rarr; CDN<\/strong>.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16170\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\" alt=\"\" width=\"266\" height=\"667\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png 266w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28-120x300.png 120w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/li>\n<li>Click <strong>Enable<\/strong>.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16193\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_2.png\" alt=\"\" width=\"1146\" height=\"361\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_2.png 1146w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_2-300x95.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_2-1024x323.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_2-768x242.png 768w\" sizes=\"(max-width: 1146px) 100vw, 1146px\" \/><\/li>\n<li>Verify the switch by checking the response headers of your website: responses delivered through Hostinger CDN include the <code>x-hcdn-cache-status<\/code> header.<\/li>\n<\/ol><h2 id=\"h-how-to-switch-from-hostinger-cdn-to-cloudflare\">How to switch from Hostinger CDN to Cloudflare<\/h2><ol>\n<li>Go to <strong>hPanel &rarr; Websites &rarr; Dashboard &rarr; Performance &rarr; CDN<\/strong>.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16170\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\" alt=\"\" width=\"266\" height=\"667\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png 266w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28-120x300.png 120w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/li>\n<li>Click <strong>Disable<\/strong>.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16192\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_1.png\" alt=\"\" width=\"1143\" height=\"376\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_1.png 1143w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_1-300x99.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_1-1024x337.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_1-768x253.png 768w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/li>\n<li>Set up Cloudflare for the domain following the guide <a href=\"https:\/\/www.hostinger.com\/support\/4741545-how-to-use-cloudflare-in-hostinger\/\">How to set up Cloudflare for a domain hosted on Hostinger<\/a>.<\/li>\n<li>During the Cloudflare setup, review the DNS records Cloudflare imports and confirm the A, MX, and TXT records are complete before switching nameservers, so the website and email keep resolving.<\/li>\n<\/ol><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">Disable Hostinger CDN before pointing the domain to Cloudflare nameservers. Skipping this step can cause redirect loops and SSL errors during the transition.<\/div><p>Both services keep your website fast and protected &mdash; Hostinger CDN with zero-configuration integration in hPanel, Cloudflare with management in its own dashboard. With one CDN active at a time, your website avoids cache conflicts and redirect loops.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Compare Hostinger CDN and Cloudflare and learn why only one should be active<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[262],"tags":[],"class_list":["post-16184","post","type-post","status-publish","format-standard","hentry","category-cdn"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/16184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=16184"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/16184\/revisions"}],"predecessor-version":[{"id":17413,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/16184\/revisions\/17413"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=16184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=16184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=16184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}