ZenWeb - Blog - Cloudflare Error 522 on Your Site? How to Fix the Timeout

Cloudflare Error 522 on Your Site? How to Fix the Timeout

November 5, 2026

Share this post:

Cloudflare Error 522 on Your Site? How to Fix the Timeout
TL;DR: Cloudflare error 522 means Cloudflare reached out to your web server and got no reply in time. Cloudflare itself is usually fine. The most likely cause is your hosting firewall blocking Cloudflare’s IP addresses, followed by an overloaded or suspended server and a wrong IP in your Cloudflare DNS. Check the server is up, confirm the DNS IP, ask your host to allow Cloudflare’s IP ranges, then retest.

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.

How to Fix Cloudflare Error 522 (Step-by-Step Guide 2026)

Source video: Watch on YouTube (Learn With Igor)

1. What Does Cloudflare Error 522 Mean?

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:

Cloudflare 52x Errors and Where Each One Points
Meaning of Cloudflare errors 520 to 525 from Cloudflare’s 5xx error documentation, with the first place a Malaysian site owner should look for each, compiled by ZenWeb.
Error codeCloudflare’s meaningLook here first
520Web server returned an unknown errorServer error logs, crashing plugins
521Web server is downWeb service stopped, or connection refused
522Connection timed outFirewall, server load, DNS IP
523Origin is unreachableRouting or a wrong IP address
524A timeout occurredSlow pages, long database queries
525SSL handshake failedServer 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.

Key takeaway: A 522 is a “no answer” problem between Cloudflare and your host. Do not spend time on browser cache or Cloudflare settings until you know the server is reachable.

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 →


2. Is Error 522 Hitting Everyone or Just Some Visitors?

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:

  1. Test from two networks. Open the site on office Wi-Fi and on your phone with mobile data. A 522 on both confirms a server-side problem.
  2. Check Cloudflare’s status. The Cloudflare System Status page shows whether there is a wider incident, including at the Kuala Lumpur data centre.
  3. Note the pattern. Does the error appear on every page, all day? Or only during campaigns, flash sales or certain hours?
  4. Copy the Ray ID. It sits at the bottom of the error page. Your host or Cloudflare support can use it to trace the failed request.
  5. Check your hosting account. Log in to your hosting client area. An overdue RM invoice or a suspension notice explains everything at once.

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.

Key takeaway: Constant errors usually mean a block or a wrong address. On-and-off errors usually mean the server is struggling. Write down which one you see before calling your host.

3. What Causes Cloudflare Error 522? Ranked by Likelihood

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 Causes of a Cloudflare 522: Share of ZenWeb Cases
Share of Cloudflare 522 timeout cases by root cause, from ZenWeb client tracking across Malaysian SME websites, 2024 to 2026.
Root causeShare 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:

  • Firewall blocks. Server security tools see thousands of requests from a few Cloudflare addresses and treat them as an attack. They block Cloudflare, and every visitor gets a 522.
  • Overloaded server. A sale, a viral post or a slow plugin pushes a small shared plan past its limits. WordPress sites that also log a memory limit exhausted error often fall into this group.
  • Wrong origin IP. You moved hosts, but the A record in Cloudflare still points to the old server. This is common after a rushed site migration that crashes traffic.
  • Suspended account. The company card expired or the renewal invoice went to a former staff member’s inbox, so the host switched the server off.
Key takeaway: Start with the firewall and the server’s health. Together they explain most 522 errors, and both are things your host can check within minutes.

4. How to Fix Cloudflare Error 522 Step by Step

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:

  1. Settle the hosting account. Pay any overdue invoice in your host’s client area and confirm the account shows as active. Nothing below works on a suspended server.
  2. Check the origin IP. In the Cloudflare dashboard, open your domain, then go to DNS > Records. Compare the IP on your main A record (and www) with the server IP shown in your hosting panel. Fix any mismatch.
  3. Allow Cloudflare’s IP ranges. Send your host the official Cloudflare IP ranges list and ask them to allowlist all of it in every firewall layer and to remove any rate limits on those addresses.
  4. Check server load. Ask your host whether the server hit CPU, memory or connection limits at the times the error appeared. If it did, disable heavy plugins or move to a larger plan.
  5. Confirm keepalives are on. Cloudflare’s documentation says keepalives must be enabled on the origin web server. Your host can confirm this in one check.
  6. Test the server directly. In Cloudflare, go to Overview > Advanced Actions > Pause Cloudflare on Site, as described in Cloudflare’s pause guide. If the site still fails, the server is the problem. Resume Cloudflare once you have your answer.
  7. Escalate with evidence. If the error remains, give your host the Ray ID, the times of failure and a traceroute. Cloudflare support asks for the same details.

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.

Key takeaway: Most 522 fixes happen on the hosting side, not in Cloudflare. Your fastest route is a clear message to your host with the IP list, the Ray ID and the times the error appeared.

5. How Long Does It Take to Fix a 522 Error?

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:

Typical Time to Clear a Cloudflare 522 by Fix Type
Typical time for a Cloudflare 522 error to clear by type of fix, from ZenWeb operational observations on Malaysian SME websites, 2024 to 2026.
Fix appliedTypical time to clearWhat slows it down
Correcting the origin IP in Cloudflare DNSMinutesNot knowing the new server IP
Host allowlists Cloudflare IP ranges1–24 hoursTicket queues, weekends, public holidays
Hosting reactivation after paymentA few hours to 1 working dayBank transfer clearing, billing hours
Plugin clean-up or plan upgradeSame day to 2 daysFinding which plugin causes the load
Moving to a new host2–5 working daysBackups, 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.

Key takeaway: The DNS fix is fast and in your control. Everything else depends on your host’s response time, which is a good reason to know their support channels before you need them.

6. What Does a 522 Break Beyond Your Home Page?

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:

Knock-On Effects of a Cloudflare 522 by Channel
Marketing channels affected by a Cloudflare 522 outage, the typical symptom and whether each recovers by itself, from ZenWeb client tracking, 2024 to 2026.
ChannelTypical symptomRecovers by itself?
Google Ads and ShoppingPaid clicks wasted; products flagged for an unavailable landing pageOften needs a feed refresh or review
Meta AdsNew ads fail review or will not publishUsually after resubmitting
Google Search ConsoleServer error (5xx) spike in the Pages reportYes, if fixed within days
GA4 and tagsSessions and conversions drop to near zeroYes, but the gap stays in reports
WhatsApp and contact buttonsEnquiries stop because no page loadsYes, 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.

Key takeaway: Pause ads pointing at the site while the 522 is live. Every paid click on an error page is budget spent with no chance of a lead.

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 →


7. How to Stop Cloudflare Error 522 Coming Back

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:

  • Make the allowlist permanent. Ask your host to note that Cloudflare must never be blocked, and recheck after server moves or security updates.
  • Plan for peaks. Before 11.11, Hari Raya or year-end sales, ask your host whether your plan can handle the traffic. Our guide to stopping hosting downtime covers what to check.
  • Monitor uptime. Use a monitor that checks every few minutes and alerts a shared inbox.
  • Keep billing current. Put RM hosting and domain invoices on a company card with a reminder before it expires.
  • Protect your email during DNS moves. Moving nameservers to Cloudflare can drop MX or SPF records if they are not copied. See why a business email stops receiving messages and how to stop someone spoofing your business email.
  • Keep registrar access. Make sure the company, not a former freelancer, owns the domain login. Our guide to getting your .my domain transfer code explains why this matters.

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.

Key takeaway: Most repeat 522s come from the same two gaps: a security tool that forgets Cloudflare, and a hosting plan that is too small for sale days. Close both and the error rarely returns.

8. When Should You Hand a 522 to a Web Team?

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:

  • No access. The Cloudflare account, hosting panel or domain is registered under a former staff member or freelancer.
  • Finger-pointing. Your host blames Cloudflare, and Cloudflare’s checks point back at the host.
  • Several faults at once. The site also shows a parked domain page or a database connection error.
  • Revenue at stake. Live campaigns, online orders or bookings depend on the website.

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.

Key takeaway: If two hours of checks have not found the cause, bring in help. A 522 page turns away every visitor for as long as it stays up.

9. Conclusion

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.


10. Frequently Asked Questions

1. Is a 522 error Cloudflare’s fault?

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.

2. Should I remove Cloudflare to fix the 522?

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.

3. Will a 522 error hurt my Google rankings?

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.

4. Why do I only get a 522 at certain times of day?

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.

Fix my 522 error →

Table of Contents
Table of Contents

Get A Free Proposal

Complete the form and our team will contact you to discuss your goals. Let’s grow your business.