Table of Contents
This updated guide examines Fix the Error Error 521: Web Server Is Down and organizes the essential facts, background, and practical takeaways in clear American English.
Common causes of error 521

The two most common causes of error 521 are:
Web server is offline
The original web server process (eg Apache or Nginx) may not run or has failed. In that case:
- Make sure your web server is running normally.
- Review the server error log to find the cause of the error.
If you are unable to perform these tasks, contact the host provider.
Request from Cloudflare is blocked
The original web server or hosting provider network may be blocking requests from Cloudflare.
As a reverse proxy, Cloudflare connects to your server from a Cloudflare IP and all subsequent traffic to the exclusive from a smaller group of Cloudflare IPs. As a result, certain server-side security solutions can distort the increase in legitimate connections from this smaller IP group, and treat this as an attack. This results in some IP Cloudflare being blocked or restricted by speed.
To resolve this issue, whitelist all Cloudflare IP strips in the server firewall or any other original security software. List of IP ranges of Cloudflare:
IPv4
- 103.21.244.0/22
- 103.22.200.0/22
- 103.31.4.0/22
- 104.16.0.0/12
- 108.162.192.0/18
- 131.0.72.0/22
- 141,101,64.0/18
- 162.158.0.0/15
- 172.64.0.0/13
- 173.245.48.0/20
- 188,114.96.0/20
- 190.93.240.0/20
- 197.234.240.0/22
- 198.41.128.0/17
IPv6
- 2400: cb00:: / 32
- 2405: b500:: / 32
- 2606: 4700:: / 32
- 2803: f800:: / 32
- 2c0f: f248:: / 32
- 2a06: 98c0:: / 29
If you cannot whitelist the Cloudflare IP, contact your hosting provider.
Troubleshoot Error 521: Web server is down

You can use third-party tools such as cURL or Telnet to check the server's response.
For the following example commands, you need to replace the IP address 1.2.3.4 with the original server's IP address. Alternatively, you can run these tests on port 443.
Experiment with cURL
cURL allows you to simulate an HTTP request, so it is a good tool to check if your original server is working properly. You can run cURL through the Terminal command line tool on Mac OS or Linux.
Run the cURL command for your server IP with A or CNAME record for the domain displayed in the DNS application of the Cloudflare dashboard page.
curl http://1.2.3.4 -v
If successful, you will see an HTTP 200 response along with the site's HTML. The unsuccessful cURL request will look like this:
# curl 1.2.3.4
curl: (7) Failed to connect to 1.2.3.4 port 80: Connection refused
Experiment with Telnet
Windows users can check the connection using Telnet (via Command Prompt).
Run a command similar to the following:
telnet 1.2.3.4 80
Error, such as:
Unable to connect to remote host: Connection refused
means your web server is not running or blocking requests.
The connection error rejected will look like this:
# telnet 1.2.3.4 80 Trying 1.2.3.4. telnet: connect to address 1.2.3.4: Connection refused telnet: Unable to connect to remote host
:
- Quick fix "This site can't be reached" error on Chrome browser
- Quick fix error 107 net:: ERR_SSL_PROTOCOL_ERROR: SSL protocol error on Chrome browser
- Steps to fix "Your Preferences cannot be read" in Chrome browser
FAQ
What is Fix the Error Error 521: Web Server Is Down about?
It provides a structured overview of Error 521, explains the main context, and highlights practical takeaways for readers.
Why does this topic matter?
Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.
How should readers use this information?
Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.
Reader Comments 0
Sign in with email or Google to join the discussion.