I have a 521 Error

I am getting a 521 error.

If you google this error you will see this is a common issue with the Cloudflare’s servers:
Error 521: Web server is down Print

Error 521 occurs because the origin web server refuses a connection from Cloudflare. More specifically, Cloudflare tried to connect to your origin server on port 80 or 443 but received a connection refused error.

How do I resolve this issue?

Hey @shane5
A 521 error happens when we are unable to make a TCP connection to your origin server, typically because the connection was refused which often can be caused by security or firewall software.

Because Cloudflare operates as a reverse proxy the IP address your server will see is one of a limited number of Cloudflare IPs. In that sense, many actual visitors may all come from the same IP address, which can cause firewalls or security software that is not appropriately allowlisting the Cloudflare IP ranges to block this traffic as it may see it as excessive or malicious. We publish a full list of our IP ranges here so that you can allowlist:

I would make sure that your hosting provider confirm that the Cloudflare IP ranges listed in the URL above are fully allowlisted from any security software, firewall etc to ensure there is no rate limiting or blocking of our edge servers. This should ensure that Cloudflare can consistently make a connection to your origin server to retrieve content and serve it to your visitors


This topic was automatically closed after 30 days. New replies are no longer allowed.