Cloudflare Error 520 WordPress: How to Troubleshoot and Fix It

When visitors try to access your content, they may see the message “Error 520: The web server returned an unknown error.”

When your website visitors see the 520 error in their browsers, it means that Cloudflare is sending a message because your server returned an empty, unknown, or unexpected response.

This is a general response from Cloudflare indicating that their website did something unexpected, resulting in an empty response. This can happen for a variety of reasons, from web server configuration to invalid HTTP responses.

Cloudflare Error 520

What Causes Cloudflare Error 520?

Cloudflare Error 520 occurs when a web server receives an invalid or misinterpreted request, resulting in an empty response. As a result, the visited website is loaded with the message “The web server is returning an unknown error”.

The issues of this error code 520 include system PC freezing, crashing, and possible virus infection. This 520 error also indicates a problem with the origin server, possibly a request timeout error.

How to Fix Cloudflare Error 520 Code Problem Issue

Let’s Start To Fix it

Remove unwanted Extensions from your web browser.

  • Go to the start menu
  • Search or go to your Browser
  • Click on it and opens it there
  • After that, click on the three dots signs there
  • & click on ‘More Tools‘ there
  • Now, click on the ‘Extensions‘ option there
  • Click on the extension which you do not want.
  • Click on the Trash sign there to remove it from the browser
  • After removing, close the tab
  • That’s it, done

Make sure Cloudflare DNS records are correct

DNS records play a vital role in the functionality of a website, supplying information such as what IP address corresponds to a particular domain. Improper DNS entry can result in an empty or unexpected response by the domain name server.

See your organization s DNS website editor to find your organization s domain name system IP address. Then, consult with your Cloudflare dashboard to reconfirm your organization’s domain name system IP address.

Track Headers and Cookies to check their status

Cloudflare’s overall limit of request headers is 32 KB, with a maximum entry of 16 KB for each header. If the total exceeds the limit, the server will issue a 520 response. Examine your website’s headers using HAR (HTTP Archive).

  • Right-click the web page where the error 520 is displayed and click on Inspect to open the developer tools.
  • Click on the Network tab.
  • Click on the small round button if it’s gray.
  • Check the Preserve log box.

Refresh the page and reopen the network tab.

  • Right-click anywhere on the developer tools window.
  • Select Save all as HAR with Content.

Disable Cloudflare

Before you troubleshoot, you need to disable Cloudflare. By doing this, you can rule out Cloudflare as a possible cause of the problem.

Start by logging into Cloudflare. Then, find your site on the list and click on it.
Next, click on the DNS tab, then on the orange cloud under the Proxy status section in the table. You’ll know Cloudflare was disabled because the cloud will have turned gray.

Cloudflare Support can help you

Ask for additional assistance by contacting Cloudflare support by submitting a ticket. Typically, you will need to provide the URL, Cloudflare Ray ID, and HAR files of Cloudflare being enabled and disabled to Cloudflare support.

Change Windows Proxy and Firewall Settings on your Windows PC

  • Go to the start menu
  • Search or go to the PC settings there
  • Click on the ‘Show advanced settings option
  • Now, click on the ‘Network Settings‘ there
  • & click on the ‘Change Proxy Settings‘ option there
  • Now, a Pop-up will open there &
  • Go to the Connections tab there
  • Click on their ‘LAN Settings‘ there &
  • Tick the “Use a Proxy Server for this connection.”
  • After completing, close the tab
  • That’s it, done


if you experience an Error 520 when trying to activate Cloudflare on your WordPress site, there are a few steps that you can take to resolve the issue. First, make sure that Cloudflare is installed and activated on your server. If that fails, try disabling any caching plugins that might be interfering with Cloudflare. Finally, if all else fails, contact Cloudflare support for assistance.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: