Wrong origin IP
- Where to look
- A and AAAA records in Cloudflare DNS
- Fix
- Confirm the correct origin IP address is listed
Cloudflare error 523 means it has no route to your origin server. See the routing and DNS causes, including the AWS 172.64.0.0/13 trap, and fixes.
Cloudflare error 523 means Cloudflare cannot contact your origin web server, usually because a network device between them has no route to the origin's IP address. It is a Cloudflare-defined status, not standard HTTP. Check the origin IP in your Cloudflare DNS records, then check routing, such as an overly broad AWS VPC route.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
A 523 is a Cloudflare status, not a standard one: IANA lists 512 to 599 as unassigned. Cloudflare's documentation says it "occurs when Cloudflare cannot contact your origin web server." Unlike a 521, where the origin refuses the connection, or a 522, where it times out, a 523 says the way to the origin is missing.
Cloudflare says this typically occurs when a network device between Cloudflare and the origin does not have a route to the origin's IP address. That makes the cause a routing or address problem, which belongs to the site owner, the host or the network team. A visitor cannot change it.
Cloudflare's fix is to review the VPC route tables and make sure 172.64.0.0/13 is not sent toward a private destination. If required, add a more specific route for 172.64.0.0/13 to your Internet Gateway.
# List routes for a route table, then look for 172.0.0.0/8 or similar
aws ec2 describe-route-tables --route-table-ids rtb-0123456789abcdef0 \
--query 'RouteTables[].Routes[].[DestinationCidrBlock,GatewayId]' --output tableA reload costs nothing, but a 523 that persists needs the owner or host to fix the route.
If the page loads on mobile data or on someone else's connection, the problem is local. If it fails everywhere, the site has the fault.
Send the exact URL, the time with your timezone and the error code. Cloudflare lists those details for owners to give a hosting provider. Add the Ray ID if the error page shows one, since Cloudflare's log tools can filter by it.
If none of that fixes it, Cloudflare asks your host or administrator for an MTR or traceroute from the origin web server to a Cloudflare IP address that most commonly connected to the origin before the issue, plus the connecting Cloudflare IP taken from the origin's logs. See Cloudflare IP addresses for the published ranges.
If the hostname does not resolve at all, Cloudflare returns a 530 with a 1xxx code in the body instead.
Google treats 5xx responses as server errors: its crawlers slow down, content returned with them is ignored, and URLs already indexed are kept for a while but eventually dropped if the errors persist. A 523 reaches crawlers as a 5xx, so persistent routing faults can drop pages from the index. See 5xx server errors for how to trace the pattern and confirm recovery, and Google's documentation on how HTTP status codes affect its crawlers.
4 questions people ask next, answered from the sources on this page.
Confirm the origin IP in your Cloudflare A or AAAA records, then check routing between Cloudflare and the origin. In AWS, make sure no VPC route sends 172.64.0.0/13 to a private destination. Contact your host with an MTR if it persists.
A Cloudflare-specific status meaning origin is unreachable: Cloudflare cannot contact the origin web server. It is not defined in the HTTP standard.
With a 521 the origin refuses Cloudflare's connection. A 523 means Cloudflare cannot contact the origin, typically because a network device has no route to its IP address.
A 523 means Cloudflare cannot contact the origin, typically because a network device has no route to the origin's IP address. A 522 means Cloudflare timed out contacting it: no SYN+ACK within 19 seconds, or no acknowledgment of its request within 90 seconds after connecting.
Run the free audit, then approve the fixes. Every change can be undone.