How to Fix Cloudflare Error 523: Origin Is Unreachable


error code 523 cloudflare
Image credit: Cloudflare

Cloudflare error code 523 appears when Cloudflare cannot reach a website’s origin server. This usually happens because of incorrect DNS records, server connectivity problems, or network routing issues.

If you own the website, follow these steps to restore the connection.

How can I fix Cloudflare error code 523?

1. Check your Cloudflare DNS records

Incorrect DNS records are a common cause of error 523, especially after changing hosting providers or server IP addresses.

  1. Sign in to your Cloudflare dashboard.
  2. Select the affected website and open DNS > Records.
  3. Find the A and AAAA records for your domain.
  4. Compare their IP addresses with the current addresses from your hosting provider.
  5. Update any incorrect records and save the changes.

If your server does not support IPv6, remove any unnecessary AAAA records pointing to invalid IPv6 addresses.

2. Check whether your origin server is online

Cloudflare cannot connect to your website if its origin server or network is unavailable.

  1. Sign in to your hosting control panel.
  2. Check whether the server is running.
  3. Restart the server if it has stopped and you can safely do so.
  4. Confirm that your web server responds to requests on the expected ports.
  5. Contact your hosting provider if the server remains unreachable.

If your hosting provider reports an outage, the connection may recover once it restores service.

3. Check your server firewall settings

Firewall rules can prevent Cloudflare from reaching your origin server.

  1. Open your server’s firewall or hosting security settings.
  2. Check for rules that block Cloudflare IP addresses.
  3. Review the official Cloudflare IP ranges.
  4. Allow the necessary Cloudflare IP ranges to reach your web server.
  5. Save your changes and test the website again.

Also check security software and network firewalls that may interfere with Cloudflare connections.

4. Check for network routing issues

Error 523 can occur when a network device cannot find a valid route between Cloudflare and your origin server.

  1. Connect to your origin server using SSH or your hosting console.
  2. Run an MTR or traceroute toward a Cloudflare IP address that previously connected to your server.
  3. Look for routing failures or unreachable network destinations.
  4. Share the results with your hosting provider.
  5. Ask the provider to investigate routing problems between its network and Cloudflare.

In AWS environments, also check VPC route tables for overly broad routes that incorrectly redirect traffic intended for Cloudflare.

5. Temporarily disable the Cloudflare proxy

Disabling the proxy can help determine whether the website works without Cloudflare.

  1. Open the Cloudflare dashboard.
  2. Select your website and navigate to DNS > Records.
  3. Find the affected A or AAAA record.
  4. Change Proxy status from Proxied to DNS only.
  5. Test whether the website loads directly from your origin server.

If the website still fails, investigate the origin server and its network. If it works, examine Cloudflare-to-origin connectivity.

Restore the proxy after testing. Leaving DNS-only mode enabled can expose your origin IP address and bypass Cloudflare protection.

6. Contact your hosting provider

If error 523 continues, your hosting provider may need to investigate the connection.

  1. Contact your hosting provider’s support team.
  2. Explain that your website displays Cloudflare Error 523: Origin Is Unreachable.
  3. Provide your domain, origin server IP address, and the time the error occurred.
  4. Include the Cloudflare Ray ID from the error page.
  5. Ask the provider to verify the origin IP address and investigate network routing.

You can also follow Cloudflare’s official troubleshooting guide for additional diagnostic steps.

To fix Cloudflare error code 523, verify your DNS records, check your origin server’s availability, and review your firewall settings. Contact your hosting provider if network routing issues persist.

Other connectivity problems can trigger Cloudflare error 521, while incorrect DNS configurations can cause Cloudflare error 1001. You may also encounter the Cloudflare 403 Forbidden error when security rules or server permissions restrict access to your website.

Frequently asked questions

What does error code 523 mean on Cloudflare?

Error code 523 means Cloudflare cannot reach the website’s origin server. Incorrect DNS records, unreachable server IP addresses, and network routing failures can cause this error.

Is Cloudflare error 523 a problem with my internet?

Usually, no. Error 523 generally indicates a problem between Cloudflare and the website’s hosting server rather than your internet connection. If you are only visiting the website, contact its owner or try again later.

Can clearing the browser cache fix Cloudflare error 523?

Clearing the browser cache generally cannot fix error 523 because the problem occurs between Cloudflare and the origin server. The website owner or hosting provider typically needs to resolve it.

How long does Cloudflare error 523 last?

There is no fixed duration. The error may disappear quickly after correcting a DNS record or restoring network connectivity. Server outages and routing problems can take longer to resolve.

More about the topics: cloudflare, error, Error Code

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

User forum

0 messages