When Cloudflare cannot get a good response from our server (the "origin"), it shows its own error page with a number from 520 to 526. The page also shows whether the problem is at Cloudflare, the browser, or the "Host" (our server). This guide explains what each error means and what to check.
First, a quick test: Load your site without Cloudflare to see whether our server is working. You can pause Cloudflare, or test with your hosts file. See How to Pause Cloudflare or Bypass It to Troubleshoot Your Site. If the site works without Cloudflare, the issue is a Cloudflare setting; if it fails, the issue is on our side or in your website.
Error 520: Web Server Returned an Unknown Error
- Meaning: Our server returned an empty, invalid, or unexpected response.
- Check: Website errors (cPanel Metrics > Errors and error_log files; Plesk website logs). A crashing script, a plugin sending huge headers or cookies, or a recent code change are common causes. See Troubleshooting Common WordPress Errors.
Error 521: Web Server Is Down
- Meaning: Our server refused Cloudflare's connection.
- Check: The DNS record in Cloudflare points to the correct server IP address (compare with your Welcome email or cPanel's sidebar). Then open a ticket: the web server may be down, or a firewall may be refusing the connection. Cloudflare's own addresses are allowed in our server firewall, so this needs a look from our team.
Error 522: Connection Timed Out
- Meaning: Cloudflare could not reach our server in time.
- Check: Wrong IP address in the Cloudflare DNS record (for example, an old server after a migration), the server being overloaded or offline, or a network or firewall problem. Verify the IP address, then open a ticket if it is correct.
Error 523: Origin Is Unreachable
- Meaning: Cloudflare cannot find a route to the IP address in your DNS record.
- Check: The A record almost always points to a wrong or old IP address. Correct it in DNS > Records.
Error 524: A Timeout Occurred
- Meaning: Our server accepted the connection, but the page took longer than Cloudflare's limit (100 seconds on standard plans) to respond.
- Check: A slow script, import, report, or backup plugin running in the browser. Run long jobs from a cron job instead (see Cron Jobs in cPanel), optimize the page, or use a DNS-only subdomain for long admin tasks. See Optimizing WordPress Resource Usage.
Error 525: SSL Handshake Failed
- Meaning: Cloudflare could not set up an SSL connection with our server.
- Check: The domain must have a certificate installed on our server (cPanel SSL/TLS Status; Plesk SSL/TLS certificates). Run AutoSSL or reissue Let's Encrypt, and make sure the SSL/TLS mode is Full (strict). See Choosing the Right Cloudflare SSL/TLS Mode (and Fixing "Too Many Redirects").
Error 526: Invalid SSL Certificate
- Meaning: In Full (strict) mode, the certificate on our server is expired, self-signed, or does not match the domain.
- Check: Usually an AutoSSL or Let's Encrypt renewal was blocked by a Cloudflare security rule. Follow Keeping AutoSSL and Let's Encrypt Working Behind Cloudflare, renew the certificate, then reload. Do not "fix" 526 by switching to Flexible or Full; that hides the problem and can cause redirect loops.
When to Open a Ticket:
- 521 or 522 with the correct IP address in Cloudflare.
- 520 or 524 that you cannot trace to your website code.
- 525 or 526 that continue after renewing the certificate.
- Include your domain, the error number, the time it happened, and the Ray ID shown at the bottom of the Cloudflare error page.
Blocked Visitors:
Cloudflare's addresses are allowed in our firewall, so Cloudflare itself is not blocked. However, our firewall and Imunify360 see each visitor's real IP address, so a visitor blocked on our server (for example, after repeated failed logins) can still be blocked when browsing through Cloudflare. They usually see a 403 page rather than a 52x error. See How to Remove a Blocked IP Address and Imunify360 in cPanel.
Please note: PeoplesHost is not Cloudflare and does not manage Cloudflare accounts, but we will gladly check the server side of any of these errors.
Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.