Skip to content

False Positives (Works for You, Down for DownBad)

DownBad says your site is down, but it opens fine when you try it. One of you is wrong, and this page helps you find out which in a few minutes. Most of the time the site is fine and something in front of it is turning DownBad away.

An incident is open for a URL monitor (one that asks for a web page) or a port monitor (one that connects to a port on a server, a numbered door that one kind of service answers at). The incident shows one of these reasons:

  • Expected status codes 200 but got 403, with the failure type http status (HTTP is the language browsers and servers use). Your server answered, but with an error code instead of a page. 403 means “forbidden”, 429 means “too many requests” and 503 means “service unavailable”.
  • Request timeout: timeout of 10000ms exceeded, with the failure type timeout. The page didn’t arrive in full within the monitor’s time limit: either nothing answered, or the answer came too slowly. The number is that limit in milliseconds (thousandths of a second), so 10000ms is 10 seconds.
  • Connection refused: connect ECONNREFUSED 203.0.113.10:443, with the failure type network. Your server, or a firewall on it (software that decides which connections get through), refused the connection outright.
  • Port connection refused: Port 443 is not listening on example.com, with the failure type connection refused. The same refusal, on a port monitor.
  • socket hang up or read ECONNRESET, with the failure type unknown. Something accepted the connection and then closed it without answering.
  • Port connection timeout: Port 443 connection timed out to example.com, with the failure type timeout. DownBad tried to connect to the port and got no answer at all.

If the incident shows a different reason, the reason itself says what failed, and this page may not be the one you need.

When the site works for you, these usually mean that something between the internet and your site treats DownBad differently from you. That can be a firewall, a CDN (a service such as Cloudflare that sits in front of your site and delivers it from its own servers) or bot protection (a CDN or firewall feature that challenges visitors it thinks are automated). Any of them can turn DownBad away while letting your browser in.

What DownBad’s checks look like to your site. A request for a web page usually carries a user agent (a short label that says what sent it). A URL monitor’s checks send DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/), unless the monitor’s HTTP Headers setting (extra details a check sends along with its request) has a User-Agent entry. Then every check sends that instead, the re-checks too: the checks DownBad sends from other places before it opens an incident. The monitor’s User Agent setting doesn’t change what DownBad sends yet, which is DownBad’s to fix. Port monitors ask for no page, so their checks carry no user agent.

No check comes from a fixed IP address (the number that identifies each computer on the internet). The first check comes from DownBad’s servers at DigitalOcean, a hosting company, in New York. The re-checks come from Amazon Web Services (AWS), Amazon’s cloud service, in up to three of four of its US regions (the areas of the world where it keeps its servers): Northern Virginia (us-east-1), Ohio (us-east-2), Northern California (us-west-1) and Oregon (us-west-2). These addresses can change at any time. So let your checks in by your account’s X-DownBad-Check header, which every check and re-check of a URL monitor sends with a secret value of your own (About DownBad’s checker explains it). If your firewall can’t match a header, let a URL monitor’s checks in by their user agent, or by the page they check, never by a list of IP addresses. A port monitor can’t be let in reliably by a list of addresses either, as Your server only lets in addresses it knows explains.

Before you change anything, find out whether the site is down for other people too.

  1. Turn off Wi-Fi on your phone and open the site over mobile data. That puts you on a different network from the one you usually use.

  2. Check the site from other countries with a free tool such as check-host.net. Enter your address and read the result from each location. These checks come from data centres (buildings full of servers), just as DownBad’s do.

  3. Read the results:

    • It fails on your phone or from most locations: your site really is down. The reason on the incident says what failed; fix that first.
    • It works everywhere else: something is turning DownBad away in particular. Carry on below.

When a check fails with one of the reasons above, DownBad doesn’t open an incident straight away. It first checks again from up to three other places in the United States, and opens the incident only when at least half of the places that answered failed too.

These commands check your site from your own computer. The first asks for your page the way DownBad does, with DownBad’s user agent, and the second asks the way a browser does, to compare. Put your own address in place of https://example.com/ in each command.

1. Ask for the page as DownBad does:

Terminal window
curl -sS -L -o /dev/null -w "%{http_code}\n" -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" https://example.com/
If it works
200
If DownBad is turned away
403

2. Ask for the same page as a web browser does, to compare:

Terminal window
curl -sS -L -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" https://example.com/
If it works
200
If browsers are turned away too
403

What the two answers tell you:

  • The first shows an error and the second shows 200: your site is turning away DownBad’s user agent. Go to the first cause.
  • Both show 200: from where you are, nothing is blocked. The block probably depends on where the request comes from, so the check-host.net test above is the one to trust.
  • Both show an error: your site is failing for everyone who asks this way. Fix the error the incident names.

3. If the incident shows a timeout, time a request. This command gives up after 10 seconds. If the incident’s reason says timeout of 23000ms, change --max-time 10 to --max-time 23 so it waits as long as DownBad did:

Terminal window
curl -sS -L -o /dev/null -w "%{http_code} after %{time_total} seconds\n" --max-time 10 https://example.com/
If it works
200 after 0.059805 seconds
If a firewall drops the connection
curl: (28) Connection timed out after 10010 milliseconds
000 after 10.010528 seconds

4. If it’s a port monitor, try to connect to the port. This example uses 443, the port for HTTPS (the secure way browsers fetch web pages); use your monitor’s port:

Terminal window
nc -vz -G 5 example.com 443
If it works
Connection to example.com port 443 [tcp/https] succeeded!
If it fails
nc: connectx to example.com port 443 (tcp) failed: Operation timed out

Without a terminal (the window where you type commands): check-host.net runs the same kinds of check from many countries. Use its HTTP tab for a URL monitor and its TCP port tab for a port monitor (TCP is the kind of connection web pages and most services use).

The causes below run from most to least likely, so start with the first.

Bot protection or a firewall rule turns DownBad away

Section titled “Bot protection or a firewall rule turns DownBad away”

This is the usual cause when the incident shows 403, 429 or 503 and your site works in a browser. Your host, your CDN or a firewall sees an automated visitor and blocks it, or shows it a challenge page (a “prove you’re a human” check) that DownBad can’t pass. The code then comes from that service, not from your site.

Bot Protection or a CDN Turns DownBad Away shows how to tell which service answered, and how to let your checks through by your account’s X-DownBad-Check header wherever the service can match one. It has a section for each of Vercel, Cloudflare, AWS WAF (Amazon’s firewall for websites), Sucuri (a firewall service that filters visitors before they reach your site), Wordfence (an add-on that protects WordPress, a system many websites are built with, from attacks), and any other CDN or firewall.

Don’t add the code the incident shows under the monitor’s Expected Status Codes to close the incident: the service keeps answering with that code while your site behind it is down, so the monitor would report an outage as up.

Your site limits how often it can be asked

Section titled “Your site limits how often it can be asked”

If the incident shows but got 429, your site or its CDN limits how many requests one visitor may make, and DownBad’s checks went over the limit. A limit set in nginx (a web server, the program that answers requests for your pages) answers but got 503 instead, unless its settings choose another code (nginx’s guide).

  1. Exempt requests whose user agent contains DownBad/1.0 from the limit.

    • Cloudflare: add a custom rule with the Skip action that skips rate limiting rules (Cloudflare’s guide). The limits themselves are under rate limiting rules (Cloudflare’s guide).
    • AWS WAF: give the rate-based rule (the AWS WAF rule that counts each visitor’s requests) a scope-down statement (a condition that narrows which requests it counts) that leaves out requests whose User-Agent header contains DownBad/1.0 (AWS’s guide).
    • nginx: follow the nginx steps below.
    • Wordfence: it can’t leave out a user agent, so raise the limit instead, in the Rate Limiting section of Wordfence’s Firewall → Firewall Options page (Wordfence’s guide). Wordfence turns DownBad away covers its other blocks.
    • Anything else: look in its rate-limit settings for an exception by user agent.

    Anyone can send this label, so the exemption also covers anyone who pretends to be DownBad.

  2. Or point the monitor at a small page that isn’t rate limited, such as one your app serves only to show that it is up.

  3. Or check less often: open the monitor, press Edit, and choose a longer Check Interval under General Settings. A monitor that checks every minute asks 60 times an hour.

On nginx, leave DownBad out of the limit. nginx counts each request against a key, usually the visitor’s IP address, and doesn’t count a request whose key is empty (nginx’s guide). These steps give DownBad’s requests an empty key. You make them on the server itself: logged in with SSH (a way to open a terminal on another computer), or through the console (a terminal that opens in your browser) in your hosting provider’s dashboard.

  1. Find the line that sets up the limit. It starts with limit_req_zone:

Search the files in the folder that holds nginx’s settings for limit_req_zone, with your text editor’s search. To find the folder, run nginx the way you usually start it with -t added (nginx’s guide). The first line it prints names its main settings file, as the example in When a fix changes nginx’s settings shows. If no file has it, the limit isn’t nginx’s, so look at the other services listed above.

  1. In that file, put this map (a rule that sets a value from part of the request) above the limit_req_zone line. Your line’s key is the part straight after limit_req_zone. If it isn’t $binary_remote_addr, put yours in its place on the map’s default line. Then change the key in your limit_req_zone line to $limit_key, and keep the rest of that line, from zone= on, as it is:
map $http_user_agent $limit_key {
default $binary_remote_addr;
"~DownBad/1\.0" "";
}
limit_req_zone $limit_key zone=perip:10m rate=1r/m;

The map gives every request the key on its default line, your old one, except a request whose user agent contains DownBad/1.0, which gets an empty one (nginx’s guide). If the monitor sends its own User-Agent under HTTP Headers, put a word from that label in place of DownBad/1\.0. Anyone can send the label, so the limit also leaves out anyone who pretends to be DownBad. Open the file and test the change as When a fix changes nginx’s settings on the Website Returns an Error Status Code page shows, but don’t reload nginx.

  1. Restart nginx instead. A reload can’t change what an existing limit counts by. nginx keeps the old setting, though the reload itself reports no problem. It writes why to its error log (the file where it notes what went wrong). While nginx restarts, your site doesn’t answer for a moment. On Linux (the system most web servers run) this needs sudo, which runs a command as the server’s administrator and asks for your password:

Stop nginx the way you started it, with -s quit added, then start it again the way you usually do (nginx’s guide).

Your server only lets in addresses it knows

Section titled “Your server only lets in addresses it knows”

If the incident shows a timeout, a refused connection or a closed connection, and the site works from your office but not from check-host.net, a firewall or a cloud security group (your cloud provider’s firewall for a server) is probably letting in only some addresses, such as your office’s.

DownBad’s checks don’t come from fixed addresses. The first check comes from DownBad’s servers at DigitalOcean in New York, and the re-checks come from Amazon Web Services in up to three of four US regions. These addresses can change at any time, so a list of allowed addresses can’t let DownBad in reliably.

  1. If the page is meant to be public, open your monitor’s port to everyone: 443 for HTTPS, 80 for HTTP without encryption. See the guides for AWS security groups, DigitalOcean Cloud Firewalls and ufw (the firewall tool that comes with Ubuntu, a common kind of Linux) (Ubuntu’s guide).

  2. If it has to stay private, DownBad can’t check it. Monitor a public page that depends on it instead.

fail2ban (a program many Linux servers run to ban the IP addresses of visitors that misbehave) watches your server’s log files. When an address breaks one of its rules, which it calls jails, too often, it has the server’s firewall turn that address away for a while (fail2ban’s manual). This is the likely cause when fail2ban runs on your server and the incident shows a refused connection or a timeout while the site works for you. DownBad can trip a jail when, for example, nginx’s rate limit keeps turning its checks away, as in Your site limits how often it can be asked.

Each ban covers one address. DownBad’s checks come from several, and an incident opens only when the re-checks from other places fail too, so look for bans on more than one of them. fail2ban runs on Linux, so these commands are for a Linux server. Run them on the server: logged in with SSH (a way to open a terminal on another computer), or through the console in your hosting provider’s dashboard.

  1. Find the IP addresses DownBad’s checks came from. Your web server writes every request into its access log, with the address first and the user agent last. For nginx:
Terminal window
grep "DownBad/1.0" /var/log/nginx/access.log | tail -n 5
If it works
203.0.113.7 - - [01/Oct/2026:00:24:59 +0000] "GET / HTTP/1.1" 200 615 "-" "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)"
203.0.113.7 - - [01/Oct/2026:00:25:01 +0000] "GET / HTTP/1.1" 503 206 "-" "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)"
203.0.113.7 - - [01/Oct/2026:00:25:03 +0000] "GET / HTTP/1.1" 503 206 "-" "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)"
203.0.113.7 - - [01/Oct/2026:00:25:05 +0000] "GET / HTTP/1.1" 503 206 "-" "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)"
If you may not read it
grep: /var/log/nginx/access.log: Permission denied

It prints nothing when the log holds no request from DownBad. If you may not read it, run the same command again with sudo in front, which runs it as the server’s administrator and asks for your password. If your server runs Apache (another web server) on Ubuntu or Debian (two common kinds of Linux), put /var/log/apache2/access.log in place of nginx’s log.

  1. See whether fail2ban banned any of those addresses:
Terminal window
grep " Ban " /var/log/fail2ban.log
If it finds one
2026-10-01 00:25:05,134 fail2ban.actions [176]: NOTICE [nginx-limit-req] Ban 203.0.113.7

Each line is one ban: its time, the jail’s name in brackets, then the address. It prints nothing when the log records no bans. If you may not read the log, run the command with sudo in front, as in the step above.

If fail2ban isn't installed
grep: /var/log/fail2ban.log: No such file or directory
  1. Lift each ban of one of DownBad’s addresses. Put the jail and the address from step 2 in place of the ones below (fail2ban-client’s manual). This changes the server, so it needs sudo:
Terminal window
sudo fail2ban-client set nginx-limit-req unbanip 203.0.113.7
If it works
1
If that address isn't banned in that jail
0
  1. Stop fail2ban banning DownBad again. fail2ban’s own allow list, ignoreip, takes IP addresses (fail2ban’s manual), and DownBad’s change, so stop the jail counting DownBad instead. First see which log the jail reads, from the jail’s status (fail2ban-client’s manual). fail2ban answers only its administrator, so this needs sudo too:
Terminal window
sudo fail2ban-client status nginx-limit-req
If it works
Status for the jail: nginx-limit-req
|- Filter
| |- Currently failed: 0
| |- Total failed: 3
| `- File list: /var/log/nginx/error.log
`- Actions
|- Currently banned: 1
|- Total banned: 1
`- Banned IP list: 203.0.113.7
If you left out sudo
2026-10-01 00:25:23,125 fail2ban [211]: ERROR Permission denied to socket: /var/run/fail2ban/fail2ban.sock, (you must be root)

The log the jail reads is on the File list line. Then:

  • If it reads the error log, as nginx-limit-req does, the lines it counts don’t name the user agent. So fail2ban can’t tell DownBad’s apart. Stop the limit turning DownBad away instead, as Your site limits how often it can be asked shows. Then DownBad’s checks never reach that log.
  • If it reads the access log, whose lines end with the user agent, tell the jail to skip DownBad’s lines. A jail’s ignoreregex is a pattern for lines to skip: fail2ban ignores any line that matches it (fail2ban’s manual). Anyone can send DownBad’s label, so the jail then also skips anyone who pretends to be DownBad. Open /etc/fail2ban/jail.local as the administrator in a text editor, as When a fix changes nginx’s settings shows for nginx’s files. Add the line below under the jail’s name in brackets, and add the name too if the file doesn’t have it. Put your jail’s name in place of nginx-bad-request, a jail that reads nginx’s access log:
[nginx-bad-request]
ignoreregex = DownBad/1\.0

Then reload fail2ban, which needs sudo too (fail2ban-client’s manual):

Terminal window
sudo fail2ban-client reload
If it works
2026-10-01 00:29:35,863 fail2ban.configreader [435]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'
OK

The last line, OK, means it worked. Ubuntu 24.04’s fail2ban prints the WARNING line about allowipv6 before it.

If there's a mistake in the file
2026-10-01 03:25:11,369 fail2ban.configreader [595]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'
2026-10-01 03:25:17,568 fail2ban [595]: ERROR NOK: ("Unable to compile regular expression 'DownBad(1':\nmissing ), unterminated subpattern at position 7",)
Unable to compile regular expression 'DownBad(1':
missing ), unterminated subpattern at position 7

Your site blocks visitors from other countries

Section titled “Your site blocks visitors from other countries”

This is the likely cause when your site only lets in visitors from some countries and the United States isn’t one of them: every DownBad check comes from the United States.

  1. Find the rule that blocks by country. On Cloudflare it is a custom rule that matches on country (Cloudflare’s guide). On AWS WAF it is a geographic match rule (AWS’s guide).

  2. Add a rule ahead of it that lets through requests whose user agent contains DownBad/1.0. On Cloudflare, give it the Skip action with All remaining custom rules (Cloudflare’s guide). On AWS WAF, make it a rule that allows requests whose User-Agent header contains DownBad/1.0 (AWS’s guide). Anyone can send this label, so the rule also lets in anyone from a blocked country who pretends to be DownBad.

  3. On Wordfence, take the United States off the countries it blocks instead, from the Blocking tab of its Firewall page (Wordfence’s guide).

The monitor asks for more than your browser does

Section titled “The monitor asks for more than your browser does”

This is the likely cause when the incident’s reason is something your browser takes in its stride, such as a redirect code (301 or 302, which sends the visitor on to another address), or a timeout on a page that is slow but does load.

  1. The expected status code. A monitor expects 200, meaning success, unless you change it. A page that redirects (301 or 302) fails a monitor whose Follow Redirects setting is off. Turn it on, or add that code under Expected Status Codes.

  2. The time limit. A check fails when the page takes longer than the monitor’s Timeout setting. Monitors DownBad set up when you signed up wait 10 seconds. Monitors you add yourself are set to 30, but checks stop waiting after 23 seconds, whatever the setting says. If your page is slow on purpose, raise the Timeout, up to 23 seconds.

  1. Fix the cause first. A check that still fails while you work only adds to the time the incident takes to close.

  2. Open the incident and press Test Now. DownBad checks again within a few seconds instead of waiting for the next scheduled check.

  3. Wait a minute, then reload the incident page, which doesn’t update by itself. The incident closes by itself once enough checks in a row pass. You can’t close an incident by hand.

How many passing checks it takes. While an incident is open, DownBad checks less often after repeated failures. This is called back-off. Each failed check adds one step of back-off, up to 14. Each passing check takes one step away and asks for the next check straight away. When no steps are left, one more passing check closes the incident. So after a steady outage it takes one more passing check than there were failed checks while the incident was open, counting the one that opened it, and never more than 15.

These are the defaults. The monitor’s notification profile can change them for each monitor type under Backoff Config, and its settings are the ones that count: Recovery is how many passing checks in a row, with no back-off left, close the incident (2 by default, counting the check that takes the last step away), and Start after, Rate and Max interval decide when back-off starts and how far it goes. If the profile changes them, the step counts above and the waits below change with them.

How long that takes. After you press Test Now, those passing checks run back to back, a few seconds apart, so the incident usually closes within a minute. It takes longer when checks are slow to finish, such as a page that takes several seconds to load.

If you don’t press Test Now, the first passing check waits for the next scheduled one. With the default settings, from the third failed check on, DownBad waits 5 more minutes for each failure, up to an hour more than the monitor’s usual interval:

Monitor checks everyAfter 1 or 2 failed checksAfter 3After 6After 14 or more
1 minute1 minute6 minutes21 minutes61 minutes
5 minutes5 minutes10 minutes25 minutes65 minutes
1 hour1 hour1 hour 5 minutes1 hour 20 minutes2 hours
1 day1 day1 day 5 minutes1 day 20 minutes1 day 1 hour

Before you ask for help, collect:

  • the link to the incident, and the reason it shows, word for word
  • the output of the commands in Check it yourself, with the time you ran them and your time zone
  • the link to your check-host.net results
  • any line in your CDN’s or firewall’s log showing a request from DownBad/1.0
  • any line in fail2ban’s log banning one of DownBad’s addresses

Then send all of it to us through Contact Us.