We use cookies to enhance user experience, personalize content, and analyze traffic. Cookie Policy

← Back to all articles

Cloudflare Error 523: Origin Is Unreachable

Cloudflare Error 523 means Cloudflare cannot reach the origin server. Learn causes, fixes, and how it differs from Errors 521 and 522.

by Unknown Proxies

7 min read

May 21, 2026

Cloudflare Error 523: Origin Is Unreachable

Cloudflare Error 523 means Cloudflare cannot reach the origin web server at the network route or address level.

For visitors, Error 523 usually means the website owner, host, or network provider needs to fix an origin reachability issue. Refreshing may help if the route recovers quickly, but there is usually nothing meaningful to change in your browser.

For website owners, Error 523 is a Cloudflare 52x origin error. Cloudflare has a configured origin address, but the network path to that origin is unreachable, misrouted, or pointing somewhere that cannot be contacted.

Diagram showing Cloudflare unable to reach an origin server route

Quick Answer: How to Fix Cloudflare Error 523

Start with the role that matches you:

Situation Best first step
You are a visitor Refresh once, wait, and contact the site owner if it continues
You own the site Confirm Cloudflare DNS points to the correct origin IP address
DNS changed recently Check A and AAAA records for stale, private, or wrong addresses
Hosting changed recently Verify routing from Cloudflare to the new host with the provider
AWS routing is involved Review broad VPC route table entries that may capture Cloudflare IP ranges
Similar errors appear Compare 523 with 521 and 522 before changing app settings

Error 523 is different from Cloudflare Error 521, where the origin refuses the connection, and Cloudflare Error 522, where the connection attempt times out. With 523, Cloudflare cannot route to the origin successfully.

What Is Cloudflare Error 523?

Cloudflare Error 523 is an origin reachability error. It appears when Cloudflare cannot contact the origin web server because the route, DNS target, or network path is not reachable.

The request path usually looks like this:

  1. A visitor requests a Cloudflare-protected website.
  2. Cloudflare receives the request at the edge.
  3. Cloudflare checks the configured DNS record for the origin.
  4. Cloudflare tries to route traffic to that origin address.
  5. The origin cannot be reached through the network path.
  6. Cloudflare returns Error 523.

That means Cloudflare is reachable from the visitor's side, but Cloudflare cannot reach the origin address it is supposed to contact.

Cloudflare Error 523 vs. 521 and 522

Cloudflare 521, 522, and 523 all involve the origin, but they point to different connection states.

Error Meaning First place to check
521 Web server is down Origin service, refused connections, closed port, firewall rejects
522 Connection timed out Firewall drops, overload, slow connection setup, network path
523 Origin is unreachable DNS target, route table, origin IP, host network reachability

With 521, Cloudflare reaches something that refuses or cannot accept the connection. With 522, Cloudflare waits for the connection but it does not complete in time. With 523, Cloudflare cannot reach the origin through the route it has.

That distinction keeps debugging focused. Restarting Nginx may fix 521, but it will not fix a wrong DNS record or host route that causes 523.

If the hostname is backed by Cloudflare Tunnel, also compare the symptoms with Cloudflare Error 1033. A tunnel with no healthy cloudflared connector is different from a public origin route that Cloudflare cannot reach.

Cloudflare 52x Origin Error Overview

Use the exact 52x code to isolate the layer that failed.

Error Meaning First place to check
520 Web server returned an unknown error Origin logs, crashes, malformed responses, headers
521 Web server is down Origin service, refused connections, firewall blocks
522 Connection timed out Origin reachability, network path, firewalls, overload
523 Origin is unreachable DNS, routing, origin IP, network reachability
524 A timeout occurred Slow origin response after a connection was made
525 SSL handshake failed TLS handshake, certificate chain, cipher support
526 Invalid SSL certificate Origin certificate validity in Full strict mode

If the failure is about route or address reachability, start with 523. If the route works but the origin refuses or drops the connection, move to 521 or 522.

Why Cloudflare Error 523 Happens

Common causes include:

The practical pattern is usually DNS or routing. If a migration happened recently, check records first. If nothing changed in Cloudflare, ask the host to verify routing and traceroute/MTR data between the origin network and Cloudflare.

How to Fix Error 523 as a Visitor

Visitors can only do basic checks:

  1. Refresh the page once.
  2. Wait a few minutes.
  3. Try another browser or network if you want to rule out a local issue.
  4. Contact the website owner with the URL and timestamp.

Error 523 is not usually caused by browser cookies, proxy settings, or user-agent headers. It is an origin reachability problem behind Cloudflare.

How to Fix Error 523 as a Website Owner

Start with DNS and origin addressing.

Check:

Then check routing and network reachability:

Do not start by changing application code. Error 523 usually sits below the app layer. Fix the address and network path before investigating web server handlers.

How to Diagnose 523 Quickly

Use this sequence:

  1. Identify the affected hostname.
  2. Confirm the Cloudflare DNS record points to the intended origin IP.
  3. Check whether the origin IP is public and still assigned.
  4. Test IPv4 and IPv6 separately if both records exist.
  5. Compare direct origin reachability from outside your host network.
  6. Review route tables, load balancer targets, and provider network changes.
  7. Ask the hosting provider for traceroute or MTR data if the route is unclear.

If the DNS record is wrong, fix DNS first. If DNS is correct but the route fails, the hosting provider or network team is usually needed.

Can Proxies Fix Cloudflare Error 523?

Usually, no. Error 523 is not a visitor-side block, rate limit, or proxy reputation issue. It means Cloudflare cannot reach the origin address it has been configured to use.

If you are scraping or monitoring and see 523, treat it as target-side network instability. Slow down retries, log the event separately from access blocks, and avoid retry storms against a target that is already unreachable.

Proxies can help with legitimate geo testing and distributed monitoring, but they do not repair the route between Cloudflare and the target site's origin. For visitor-specific blocks, compare HTTP 403 Forbidden, HTTP 429 Too Many Requests, and Cloudflare Error 1020.

How to Prevent Cloudflare Error 523

For site owners, prevention comes from clean DNS and network-change discipline.

Use these practices:

If 523 appears after a migration, compare old and new DNS records, load balancer addresses, route tables, and provider firewall rules before touching application code.

FAQ

What does Cloudflare Error 523 mean?

Cloudflare Error 523 means Cloudflare cannot reach the origin web server through the configured network route or origin address.

Is Error 523 caused by Cloudflare?

Usually, no. Cloudflare is reachable enough to show the error page. The issue is normally the origin address, DNS record, host routing, provider network, or route table.

Is Cloudflare Error 523 the same as Error 522?

No. Error 522 means the connection attempt timed out. Error 523 means the origin is unreachable through the network route Cloudflare has.

How is Error 523 different from Error 521?

Error 521 means the origin refused or could not accept a connection. Error 523 usually means Cloudflare cannot route to the origin address in the first place.

Does changing proxies fix origin unreachable error code 523?

Usually not. The unreachable route is between Cloudflare and the origin. Changing the visitor IP does not fix wrong DNS, broken routing, unreachable IPv6, or host network problems.

Final Thoughts

Cloudflare Error 523 means Cloudflare cannot reach the origin web server through the configured address or route. Visitors can wait and report it, but site owners should check Cloudflare DNS records, origin IPs, IPv4 and IPv6 reachability, load balancers, route tables, and hosting-provider routing.

For related connectivity issues, compare this with Cloudflare Error 521 for refused connections and Cloudflare Error 522 for connection timeouts.

Technical reference: Cloudflare Error 523 documentation.

About the Author

Unknown Proxies

Proxy Infrastructure Team

Stay Unknown

High-performance dedicated proxies optimized for speed and reliability. Get uncompromising quality, 99.9% uptime, and unmatched support. Stay Unknown.

Explore Plans
Unknown Proxies
Resources