
Your website shows a grey Cloudflare page with three icons: your browser and Cloudflare marked as “Working”, and your host marked “Error”. The headline reads “Connection timed out” with Error code 522. Customers clicking your ads or your WhatsApp link see the same page.
This guide is for Malaysian business owners and marketers facing a 522 right now. It covers what the error means, the likely causes, a step-by-step fix based on Cloudflare’s own documentation, realistic timelines and how to stop a repeat.
One scope note: if your site is down and you do not see a Cloudflare page at all, start with our broader guide on what to do when your website is down and not loading. This article covers the Cloudflare-to-server timeout only.
The short video below walks through the owner-side checks: origin server, DNS, firewall and hosting status. Then use the sections that follow to work through each cause.
Source video: Watch on YouTube (Learn With Igor)
Quick Answer: Cloudflare error 522 means Cloudflare tried to connect to your web server (the “origin”) and the connection timed out. Your visitor reached Cloudflare without trouble, and Cloudflare is working. The silence is coming from your hosting server or something in front of it, such as a firewall.
Cloudflare sits between your visitors and your server and forwards each request to your host. According to Cloudflare’s Error 522 documentation, the error appears when the server does not answer the first connection request within 19 seconds, or does not acknowledge the page request within 90 seconds. Either way, the server never answered.
The 522 belongs to a family of similar-looking errors, and each one points somewhere different:
| Error code | Cloudflare’s meaning | Look here first |
|---|---|---|
| 520 | Web server returned an unknown error | Server error logs, crashing plugins |
| 521 | Web server is down | Web service stopped, or connection refused |
| 522 | Connection timed out | Firewall, server load, DNS IP |
| 523 | Origin is unreachable | Routing or a wrong IP address |
| 524 | A timeout occurred | Slow pages, long database queries |
| 525 | SSL handshake failed | Server certificate and SSL settings |
Source: Cloudflare 5xx error documentation, checked October 2026. “Look here first” column compiled by ZenWeb.
Note the difference from a plain 404. A 404 error means the server answered and said the page does not exist. A 522 means the server never answered at all. If your error is about certificates instead, see our guide to the SSL protocol error on your website.
Want a site where hosting, DNS and Cloudflare are set up properly from day one?
Our web team builds and configures business websites with the server, firewall and CDN working together. See what our web design service covers →
Quick Answer: A constant 522 for everyone points to a blocked firewall, a wrong DNS IP or a server that is offline. A 522 that comes and goes, often at busy hours, points to an overloaded server. Spend five minutes finding out which pattern you have, because the fix is different for each.
Run these quick checks before you change anything:
If you moved your domain or changed nameservers in the last few days, the problem may be DNS rather than the server. Read why DNS may not be propagating after a domain change before going further.
Quick Answer: Cloudflare names blocked or rate-limited Cloudflare IP addresses as the most common cause. After that come an overloaded or suspended server, a wrong origin IP in Cloudflare DNS, disabled keepalives and dropped network packets. On Malaysian shared hosting, security tools blocking Cloudflare are the usual trigger.
Here is how the causes stack up across the 522 cases we have handled for Malaysian SME websites:
| Root cause | Share of cases |
|---|---|
| Hosting firewall blocking or rate-limiting Cloudflare IPs | 36% |
| Server overloaded (traffic spike, heavy plugins, low plan) | 25% |
| Wrong origin IP in Cloudflare DNS after a host move | 17% |
| Hosting account suspended or server offline | 13% |
| Keepalives disabled, dropped packets or other network faults | 9% |
Source: From ZenWeb client tracking across Malaysian SME websites, 2024–2026. Illustrative of typical patterns.
What each cause looks like in real life:
Quick Answer: Make sure the hosting account is active, confirm the origin IP in Cloudflare DNS matches your host, and ask your host to allow every Cloudflare IP range. Then check server load and keepalives. If the site is still down, pause Cloudflare briefly to test the server directly, and send your host the Ray ID.
Work through these steps in order. They follow Cloudflare’s own troubleshooting guidance, with menu paths checked in October 2026:
Pausing switches off Cloudflare’s firewall and certificates, so keep it short. If your site then shows certificate warnings, read how to fix an SSL certificate that has expired. A redirect loop after you resume usually means an SSL mode mismatch; see our redirect loop error fix.
Quick Answer: Fixing a wrong DNS IP inside Cloudflare usually works within minutes, because Cloudflare applies its own DNS changes quickly. A firewall allowlist depends on how fast your host replies. Server upgrades and hosting reactivations can take a working day, and moving to a new host takes longer.
Use this table to set expectations with your boss or your team:
| Fix applied | Typical time to clear | What slows it down |
|---|---|---|
| Correcting the origin IP in Cloudflare DNS | Minutes | Not knowing the new server IP |
| Host allowlists Cloudflare IP ranges | 1–24 hours | Ticket queues, weekends, public holidays |
| Hosting reactivation after payment | A few hours to 1 working day | Bank transfer clearing, billing hours |
| Plugin clean-up or plan upgrade | Same day to 2 days | Finding which plugin causes the load |
| Moving to a new host | 2–5 working days | Backups, testing, email records |
Source: ZenWeb operational observations, Malaysian SME websites, 2024–2026. Times vary by host and plan.
Plan for the slower end if the error starts on a Friday night or before a public holiday, when many hosting support teams run a skeleton crew. No timeline is guaranteed, because your host may need to investigate first. Meanwhile, keep your WhatsApp number visible on social media so enquiries still reach you.
Quick Answer: A 522 blocks every visit, including paid clicks, Googlebot and ad platform reviewers. Ads keep charging while visitors land on an error page, product feeds can be disapproved, tracking tags go quiet and Search Console logs server errors. Some channels recover by themselves once the site is back; others need a manual check.
After the fix, walk through this checklist so nothing stays broken:
| Channel | Typical symptom | Recovers by itself? |
|---|---|---|
| Google Ads and Shopping | Paid clicks wasted; products flagged for an unavailable landing page | Often needs a feed refresh or review |
| Meta Ads | New ads fail review or will not publish | Usually after resubmitting |
| Google Search Console | Server error (5xx) spike in the Pages report | Yes, if fixed within days |
| GA4 and tags | Sessions and conversions drop to near zero | Yes, but the gap stays in reports |
| WhatsApp and contact buttons | Enquiries stop because no page loads | Yes, once the site is back |
Source: From ZenWeb client tracking across Malaysian SME accounts, 2024–2026. Illustrative of typical patterns.
For paid channels, check why Google Shopping ads stop showing and what to do when an ad set can’t be published on Meta. On the tracking side, confirm your Google tag is detected again and test that your WhatsApp button is working.
Tired of outages eating your ad budget?
We build business websites on properly sized hosting with monitoring, so downtime is caught before your customers see it. Get a website built to stay online →
Quick Answer: Keep Cloudflare’s IP ranges permanently allowlisted, size your hosting for your busiest day rather than an average one, and add uptime monitoring with alerts to a shared inbox. After any host move or DNS change, recheck the origin IP and your email records the same day.
Build these habits into how you run the site:
Also watch Search Console after any outage. Google reports server connectivity separately from DNS lookups, and our guide to a DNS resolution error in Search Console shows where to find both. If you are weighing a hosting change, compare options in our guide to web hosting in Malaysia.
Quick Answer: Escalate if nobody has the Cloudflare or hosting login, if your host says the server is fine but the 522 continues, if the error keeps returning during busy periods, or if ads and orders depend on the site every day. Each of these points to a setup problem, not a one-off fault.
Get help early in these situations:
ZenWeb is a Google Partner agency that has worked with 500+ Malaysian businesses. Our web design services team sets up hosting, Cloudflare and monitoring as one system, so a timeout is caught and fixed before it costs you enquiries.
Cloudflare error 522 looks like a Cloudflare problem, but it almost always starts at your hosting server. Confirm the account is active, check the origin IP, get Cloudflare’s IP ranges allowlisted and look at server load. Then clean up your ads and tracking, and add monitoring so the next timeout is caught early. For more guides on keeping your website working for your business, visit the ZenWeb home page.
Rarely. The error page itself shows Cloudflare as working and your host as the failing point. Unless the Cloudflare System Status page lists an incident, the cause is almost always your server, its firewall or the IP address in your DNS settings.
No. Pausing Cloudflare for a few minutes is a useful test, but removing it means changing nameservers, which can take hours, and you lose its protection and caching. Fix the server or firewall issue instead.
A short outage fixed within a day or two rarely causes lasting harm. A long or repeated one can, because Googlebot keeps hitting server errors and may crawl less often. Fix it quickly, then check the Pages report in Search Console.
An error that comes and goes usually means the server runs out of capacity at busy times, or a security tool blocks Cloudflare after traffic spikes. Ask your host to check resource usage and firewall logs for those exact times.
Cite this page: ZenWeb (2026). Cloudflare Error 522 on Your Site? How to Fix the Timeout. https://zenweb.my/blog/cloudflare-error-fix/
You may quote our data with this credit and a link. See our Terms of Use.
Still seeing “Connection timed out” on your site?
Talk to our web team. We’ll check your hosting, Cloudflare and DNS set-up, and give you a clear plan to get your site back online and keep it there.
Get A Free Proposal
Complete the form and our team will contact you to discuss your goals. Let’s grow your business.
Chat with us on WhatsApp
Tell us a little about what you need. We'll open WhatsApp with your message ready to send.