About DownBad's Checker
DownBad checks websites by asking for a page, the way a browser does, on a schedule. If your site sits behind a firewall (a service that decides which visitors get in) or bot protection (a firewall or CDN feature that challenges visitors it thinks are automated), it may turn DownBad’s checks away. Your monitor then reports the site down while it works fine for people.
This page says what the checks look like, so you can let them in. If you run a site that is being checked and did not ask for it, the next section says how to have the checks stopped.
Who runs these checks, and how to stop them
Section titled “Who runs these checks, and how to stop them”DownBad runs every check for one of its customers, who asked us to watch that address. The customer is not always the site’s owner. A check reaches the address the customer gave us, and whatever that address redirects it to: a website check asks for that page the way a browser does, sending whatever the customer set it to send, and the other kinds open one port, read its certificate or DNS records, or look up the domain’s registration.
If you run a site and want DownBad to stop checking it, write to us
through Contact Us with the host (the site’s address, such as
www.example.com) and a time you saw a check, so we can find it. We stop
checking the host on request, for every DownBad account at once, and no new
monitor can be created for it. A check that keeps arriving after that is not
ours: the user agent is only a label, so anyone can send it.
What a check sends
Section titled “What a check sends”Every check of a website (URL) monitor sends two things your firewall can match:
- A user agent (a short label that says what sent the request) that
starts with
DownBad/1.0and ends with a link to this page. Match requests whose user agent containsDownBad/1.0, so the rule keeps working if the rest of the label changes. A monitor whose HTTP Headers set its ownUser-Agentsends that instead. - The
X-DownBad-Checkheader (an extra line sent with the request), carrying a secret value that belongs to your DownBad account. Only your account’s checks carry your value. If your site redirects a check to a different site, the check goes on without the header, so your value only ever reaches the site you monitor. A redirect betweenexample.comandwww.example.comkeeps it; for any other redirect, monitor the address it lands on.
The re-checks (the checks DownBad sends from other places before it opens an incident) send the same two things.
Let the header through, not the user agent
Section titled “Let the header through, not the user agent”Anyone can send the DownBad/1.0 user agent, so a rule that allows it lets in
anyone who pretends to be DownBad. Your header value is a secret, so a rule
that allows it lets in your checks and no one else’s. Use the header whenever
your firewall can match one.
Find your header value
Section titled “Find your header value”In DownBad, open Account and go to Firewall header. It shows the header
name, X-DownBad-Check, and your value, each with a copy button.
A new website monitor sends the header from its first check, and so do the
monitors you had before the header existed. To stop one monitor sending it,
remove the X-DownBad-Check row from the monitor’s HTTP Headers. Add
DownBad header puts it back.
Regenerate gives your account a new value. Every monitor sends the new value from its next check, so update your firewall rule straight after, or it stops letting your checks in.
Cloudflare
Section titled “Cloudflare”Create a custom rule (a rule you write for Cloudflare’s firewall) that skips the protections blocking DownBad (Cloudflare’s guide). Every Cloudflare plan, the free one included, can have custom rules (Cloudflare’s guide).
-
In your site’s dashboard, go to the Security rules page and select Create rule > Custom rules (Cloudflare’s guide).
-
Under When incoming requests match, select Edit expression next to the Expression Preview, because the drop-down builder can’t write a rule with a function in it (Cloudflare’s guide). Enter the rule below, with your value in place of
YOUR_VALUE:any(http.request.headers["x-downbad-check"][*] eq "YOUR_VALUE")Cloudflare reads header names in lower case, which is why the name is written that way here.
-
Choose the Skip action, and tick the protections that blocked DownBad (for example All remaining custom rules, Rate limiting rules and Super Bot Fight Mode).
-
Deploy the rule, and drag it above any rule that blocks or challenges visitors.
Two Cloudflare settings can’t be skipped by a custom rule:
- Bot Fight Mode (Cloudflare’s simple, free bot protection). If it is what blocks DownBad, turn it off under Security → Settings, filtered to bot traffic (Cloudflare’s guide).
- Under Attack mode, which shows every visitor a challenge page. Add a configuration rule (a Cloudflare rule that changes its settings for the requests it matches) with the same expression that sets I’m Under Attack to off (Cloudflare’s guide).
Any other firewall
Section titled “Any other firewall”Look for a rule that allows requests by request header, and set it to match:
- Header name:
X-DownBad-Check - Value: your value, matched exactly
Put it ahead of the rules that block or challenge visitors. On AWS WAF (Amazon’s firewall for websites), that is a string match statement on a single header, with Exactly matches string (AWS’s guide).
If your firewall can only match the user agent, allow requests whose user
agent contains DownBad/1.0, and if that matters for your site, apply the
rule only to the page your monitor checks. Some services can match neither:
the
bot protection troubleshooting page
covers those, including
Sucuri
and
Wordfence.
It also has steps for
Vercel
and for
AWS WAF.
No fixed IP addresses
Section titled “No fixed IP addresses”DownBad does not publish fixed IP addresses (the numbers that identify each computer on the internet) for its checks. The first check comes from DownBad’s servers at DigitalOcean, and the re-checks come from Amazon Web Services in several US regions. Those addresses can change at any time, so a rule that allows them stops working without warning. Allow the header instead.
Port monitors
Section titled “Port monitors”Port monitors don’t ask for a page, so their checks carry no user agent and no header. A firewall that filters by address alone can’t tell them apart from anyone else’s traffic, and there is no rule for them to match yet.