{"id":19315,"date":"2026-10-01T07:53:01","date_gmt":"2026-10-01T07:53:01","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=19315"},"modified":"2026-10-01T07:56:25","modified_gmt":"2026-10-01T07:56:25","slug":"how-to-fix-a-cloudflare-520-error-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-fix-a-cloudflare-520-error-at-hostinger\/","title":{"rendered":"How to fix a Cloudflare 520 error at Hostinger"},"content":{"rendered":"<p>A Cloudflare 520 error means Cloudflare could not get a valid response from your origin server. Common causes include a null-routed IP, an outage on Cloudflare&rsquo;s side, a broken .htaccess file, overloaded hosting resources, or a mismatched SSL\/TLS encryption mode.<\/p><h2 id=\"h-check-for-a-null-routed-ip-or-hosting-downtime\">Check for a null-routed IP or hosting downtime<\/h2><p><a data-click-id=\"hgr-post-content-link-ping-your-websites-ip-address\" href=\"https:\/\/www.hostinger.com\/tutorials\/linux-ping-command-with-examples\/\">Ping your website&rsquo;s IP address<\/a>. If it times out, the IP may be null-routed, which usually happens during a DDoS mitigation. See <a data-click-id=\"hgr-post-content-link-what-is-a-ddos-attack-and-how-to-prevent-it-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/5634639-what-is-a-ddos-attack-and-how-to-prevent-it-at-hostinger\/\">What is a DDoS attack and how to prevent it at Hostinger<\/a> for what this means.<\/p><p>A null-routed IP or hosting-side downtime is not something you can confirm or resolve yourself. If you suspect either, skip ahead and <a data-click-id=\"hgr-post-content-link-contact-hostinger-support\" href=\"https:\/\/www.hostinger.com\/support\/1583780-how-to-contact-hostinger-support\/\">contact Hostinger support<\/a> directly so the team can confirm the status and give you an update, rather than continuing through the remaining steps below.<\/p><p><strong>NOTE<\/strong><\/p><ul>\n<li>Find your hosting IP in <a data-click-id=\"hgr-post-content-link-how-to-find-your-hostinger-hosting-ip-address\" href=\"https:\/\/www.hostinger.com\/support\/4407303-where-to-find-the-a-record-of-your-hosting-plan-at-hostinger\/\">How to find your Hostinger hosting IP address<\/a> if you do not already know it.<\/li>\n<\/ul><h2 id=\"h-check-cloudflares-own-status\">Check Cloudflare&rsquo;s own status<\/h2><p>Visit <a data-click-id=\"hgr-post-content-link-cloudflares-status-page\" href=\"https:\/\/www.cloudflarestatus.com\/\" target=\"_blank\" rel=\"noopener\">Cloudflare&rsquo;s status page<\/a> to see if Cloudflare is reporting an active incident. If so, the 520 error is on their side, and you only need to wait for it to resolve.<\/p><h2 id=\"h-temporarily-disable-your-htaccess-file\">Temporarily disable your .htaccess file<\/h2><p>A broken or conflicting .htaccess file can prevent your origin server from responding correctly.<\/p><ol>\n<li>Open <a data-click-id=\"hgr-post-content-link-file-manager\" href=\"https:\/\/www.hostinger.com\/support\/4548688-basic-actions-in-the-file-manager-in-hostinger\/\">File Manager<\/a> from your Hostinger dashboard.<\/li>\n<li>Locate the .htaccess file in your website&rsquo;s root folder.<\/li>\n<li>Rename it, for example to .htaccess-disabled, so it stops applying.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-19320\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-50.png\" alt=\"\" width=\"1588\" height=\"792\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-50.png 1588w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-50-300x150.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-50-1024x511.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-50-768x383.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-50-1536x766.png 1536w\" sizes=\"(max-width: 1588px) 100vw, 1588px\" \/><\/li>\n<li>Reload your website. If it loads normally, the original .htaccess file contained the issue. Review it for errors before restoring it.<\/li>\n<\/ol><h2 id=\"h-enable-cloudflare-development-mode-to-test\">Enable Cloudflare Development Mode to test<\/h2><p>Cloudflare Development Mode temporarily bypasses Cloudflare&rsquo;s cache so you can see your origin server&rsquo;s actual response. Turn this on while troubleshooting, then turn it off once the issue is resolved. See <a data-click-id=\"hgr-post-content-link-how-to-enable-cloudflare-development-mode-for-a-website-on-h\" href=\"https:\/\/www.hostinger.com\/support\/5782198-how-to-enable-cloudflare-development-mode-at-hostinger\/\">How to enable Cloudflare development mode for a website on Hostinger<\/a>.<\/p><h2 id=\"h-stop-overloaded-processes-on-your-hosting\">Stop overloaded processes on your hosting<\/h2><p>If your hosting resources are overloaded, your origin server may not respond in time.<\/p><ol>\n<li>On web or cloud hosting plan, go to the Websites page, click on <strong>Dashboard<\/strong> next to any website added to the hosting, on the sidebar click on <strong>Hosting plan<\/strong> &rarr; <strong>Resources Usage<\/strong>.<\/li>\n<li>Select <strong>Stop running processes<\/strong>.<\/li>\n<\/ol><p><img decoding=\"async\" class=\"alignnone size-full wp-image-19319\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-49.png\" alt=\"\" width=\"1906\" height=\"853\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-49.png 1906w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-49-300x134.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-49-1024x458.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-49-768x344.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_14-49-1536x687.png 1536w\" sizes=\"(max-width: 1906px) 100vw, 1906px\" \/><\/p><h2 id=\"h-check-your-cloudflare-ssl-tls-encryption-mode\">Check your Cloudflare SSL\/TLS encryption mode<\/h2><p>If the steps above do not resolve the error, check for a mismatch between your Cloudflare SSL\/TLS encryption mode and your origin&rsquo;s actual SSL setup.<\/p><p>Open your Cloudflare dashboard, then go to <strong>SSL\/TLS<\/strong> &gt; <strong>Overview<\/strong> for your domain. Confirm which encryption mode is selected: <strong>Off, Flexible, Full, <\/strong>or<strong> Full (strict).<\/strong><\/p><ul>\n<li><strong>Full <\/strong>and <strong>Full (strict)<\/strong> require your origin server to present a valid SSL certificate that Cloudflare can verify. If your hosting plan&rsquo;s SSL is not set up the way Cloudflare expects, requests fail at the origin and Cloudflare returns a 520 error instead.<\/li>\n<li><strong>Flexible<\/strong> only requires a working connection between Cloudflare and your origin over HTTP, without validating an origin certificate.<\/li>\n<\/ul><p>If you are using Full or Full (strict) and seeing intermittent 520 errors, switch to <strong>Flexible<\/strong> as a test. If the error stops, your origin SSL setup is the cause.<\/p><p><strong>NOTE<\/strong><\/p><ul>\n<li>Flexible mode means traffic between Cloudflare and your origin server is not encrypted. Use<strong> Full <\/strong>or <strong>Full (strict)<\/strong> instead once your origin SSL certificate is confirmed working, rather than leaving <strong>Flexible<\/strong> mode in place long-term.<\/li>\n<\/ul><p>For broader Cloudflare SSL issues not specific to a 520 error, see <a data-click-id=\"hgr-post-content-link-troubleshooting-cloudflare-universal-ssl-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/6299503-troubleshooting-cloudflare-universal-ssl-at-hostinger\/\">Troubleshooting Cloudflare Universal SSL at Hostinger<\/a>, <a data-click-id=\"hgr-post-content-link-introduction-to-ssl-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/1583278-introduction-to-ssl-at-hostinger\/\">Introduction to SSL at Hostinger,<\/a> and <a data-click-id=\"hgr-post-content-link-troubleshooting-5xx-errors-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/4714113-troubleshooting-5xx-errors-at-hostinger\/\">Troubleshooting 5xx Errors at Hostinger<\/a>.<\/p><h2 id=\"h-if-the-error-continues\">If the error continues<\/h2><p>If none of the steps above resolve the error, <a data-click-id=\"hgr-post-content-link-contact-hostinger-support-2\" href=\"https:\/\/www.hostinger.com\/support\/1583780-how-to-contact-hostinger-support\/\">contact Hostinger support<\/a> with what you have already checked, so the team can investigate further. For general 520 troubleshooting beyond these Hostinger-specific steps, see <a data-click-id=\"hgr-post-content-link-how-to-fix-error-520\" href=\"https:\/\/www.hostinger.com\/tutorials\/how-to-fix-error-520\/\">How to Fix Error 520<\/a>.<\/p><p>Once you find and resolve the specific cause, your website loads normally through Cloudflare again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fix a Cloudflare 520 error at Hostinger by ruling out common causes, from a null-routed IP to a broken .htaccess file.<\/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":[180],"tags":[],"class_list":["post-19315","post","type-post","status-publish","format-standard","hentry","category-website-troubleshooting"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/19315","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=19315"}],"version-history":[{"count":3,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/19315\/revisions"}],"predecessor-version":[{"id":19324,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/19315\/revisions\/19324"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=19315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=19315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=19315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}