Why Cloudflare Blocks Monitoring Tools
If your website uses Cloudflare and your uptime monitor shows Blocked (403), Cloudflare Error (520-524), or Connection Refused, Cloudflare's security features are likely blocking the monitoring requests.
This happens because Cloudflare treats automated HTTP requests from monitoring tools the same way it treats bots, with challenge pages, rate limiting, or outright blocks.
Common Cloudflare Error Codes
| Code | Meaning | Solution |
|---|---|---|
| 403 | Blocked by WAF or firewall rule | Whitelist monitoring IP |
| 520 | Web server returned unknown error | Check origin server logs |
| 521 | Web server is down | Origin server not responding |
| 522 | Connection timed out | Origin server too slow to respond |
| 523 | Origin is unreachable | DNS or network issue at origin |
| 524 | A timeout occurred | Origin took too long (>100s) |
| 525 | SSL handshake failed | SSL config mismatch between Cloudflare and origin |
| 526 | Invalid SSL certificate | Origin SSL cert expired or invalid |
How to Whitelist Visual Sentinel in Cloudflare
Method 1: IP Access Rules (Recommended)
- Log in to your Cloudflare Dashboard
- Select your domain
- Go to Security → WAF → Tools
- Under IP Access Rules, click Add
- Add the Visual Sentinel monitoring IPs (add each one as its own rule):
157.180.59.176(EU check node)5.78.139.24(US check node)
- Set action to Allow for each
- Add a note: "Visual Sentinel Monitoring"
- Click Add
Method 2: Firewall Rules (More Granular)
If you want to allow monitoring only for specific paths:
- Go to Security → WAF → Custom Rules
- Create a new rule:
- Rule name: Allow Visual Sentinel
- Expression:
(ip.src eq 157.180.59.176) or (ip.src eq 5.78.139.24) - Action: Skip (select all remaining custom rules)
- Save and deploy
Method 3: Allow the User-Agent
Visual Sentinel uses a custom User-Agent header. You can whitelist it:
- Go to Security → WAF → Custom Rules
- Create a rule:
- Expression:
(http.user_agent contains "VisualSentinel") - Action: Allow
- Expression:
- Save and deploy
Cloudflare Bot Management
If you're on a Cloudflare plan with Bot Management (Business or Enterprise):
- Go to Security → Bots
- Under Configure Bot Management, add an exception for Visual Sentinel's IP
- Alternatively, set the bot score threshold higher for monitoring IPs
Under Attack Mode
If you have Cloudflare's Under Attack Mode enabled, it will block ALL automated requests including monitors. Options:
- Temporarily disable Under Attack Mode for monitoring
- Use IP Access Rules (Method 1 above). These override Under Attack Mode
- Use a Cloudflare Worker to bypass challenge pages for known monitoring IPs
Verifying It Works
After whitelisting:
- Go to your monitor in Visual Sentinel
- Click Refresh to trigger a manual check
- You should see Operational with a 200 status code
- If still blocked, check Cloudflare's Security → Events to see if the request is still being challenged
Monitoring Behind Cloudflare: Best Practices
- Always whitelist by IP. User-Agent whitelisting can be spoofed by attackers
- Monitor from both regions. Ensure both Visual Sentinel check locations (Europe and the US) are whitelisted
- Use Follow Redirects. Cloudflare may redirect HTTP to HTTPS; enable "Follow Redirects" in your monitor settings
- Set appropriate timeouts. Review observed response times; for example, set a 10-second timeout and test it against the site
- Check your origin too. If Cloudflare returns 521/522, the issue is your origin server, not Cloudflare
Frequently Asked Questions
Why does my monitor show Blocked (403) even though my site is up?
Cloudflare's Web Application Firewall (WAF) blocks requests it considers suspicious. Monitoring tools make frequent, automated HTTP requests which trigger Cloudflare's bot detection. The solution is to whitelist the monitoring IP address in your Cloudflare dashboard.
Do I need to whitelist all Visual Sentinel IPs?
Yes. Visual Sentinel monitors from two check nodes today:
157.180.59.176(EU check node)5.78.139.24(US check node)
When you enable both EU and US regions for a monitor, requests originate from each respective IP, so both should be on your allowlist to avoid intermittent 403s as checks rotate between regions.
Will whitelisting the monitoring IP create a security risk?
An allowlist changes how requests from the allowed IP are handled. Review the rule's scope and verify that the intended security controls remain in place.
Need Help?
If you're still having issues after following this guide, contact our support team or check your Cloudflare security events log for the specific block reason.
Ready to try it on the site you run? Start with checks for your own site and the alerts they send.
Check your site while you read
Run a free check for regional reachability, response time, redirect handling, TLS evidence, and DNS resolution. No account is required.
Check a site free

