Website is down
Cloudflare errors 520–526
When your site runs through Cloudflare, visitors see Cloudflare, not your server. If the two stop getting along — the server doesn’t answer, refuses the connection or the certificate doesn’t match — a grey page with a 52x code appears. Cloudflare itself is almost always fine: the problem is on the server or in the settings between them.
Access to the Cloudflare account and the hosting (panel, logs; faster with SSH).
This is for you if
520 — “Web server is returning an unknown error”
The server replied with something Cloudflare didn’t understand, or dropped the connection.
521 and 522 — the server is down or not responding
The site crashed, or the hosting firewall blocks Cloudflare.
524 — a timeout occurred
The page takes longer to build than Cloudflare is willing to wait.
525 and 526 — SSL error
The server certificate is missing, expired or doesn’t fit the SSL mode in Cloudflare.
What is included
Testing the server directly
Whether the site works bypassing Cloudflare — that splits the problem in half right away.
Firewall and hosting protection
Whether Cloudflare’s addresses are blocked as “too many requests”.
SSL between Cloudflare and the server
The certificate on the server and the right SSL mode in Cloudflare.
DNS records
Whether the records in Cloudflare point to the right server after a move.
Slow pages
What takes longer than the limit and how to speed it up or move it to the background.
How I work
- Send the error code and the address — A screenshot of the Cloudflare page with the code and Ray ID helps.
- I test the server bypassing Cloudflare — To see whose side the failure is on.
- I fix it — Server, firewall, certificate or Cloudflare settings.
- I test from different countries — Cloudflare works through different nodes — I check the site opens everywhere.
Price
Usually 1–3 hours. If the server crashes under load, reducing the load or speeding up the site is separate work.
Not included: paid Cloudflare plans, website speed optimisation.
Can I fix it myself?
Temporarily switch the site’s record in Cloudflare to “DNS only” (grey cloud) and open the site: if it works, the problem is in the Cloudflare–server link; if not, it’s on the server itself. Don’t forget to switch the orange cloud back. Check whether the server certificate was recently renewed or the site was moved.
Questions and answers
Can I just turn Cloudflare off?
That brings the site back quickly if the problem is in the link, but you lose protection and caching. And if the server itself is down, it won’t help. Better to find the cause.
Is it a Cloudflare outage?
Rarely. Cloudflare outages happen, but then thousands of sites are down and it makes the news. Nine times out of ten the cause is your server or settings.
Why do I get 524 only on some pages?
Those pages take longer to build than Cloudflare’s limit: a heavy report, an import, search. They need speeding up, or the long work moved to the background.
More in «Website is down»
Contact
Let’s discuss your website
Message me in any messenger about the project and what you need — I’ll reply within a business day. The initial audit and estimate are free.