Skip to content

Allowlisting our checks

If your site sits behind a firewall, a WAF or bot protection, it can block or challenge our checks, and the monitor reports an outage your users never saw. Let them through with a secret header, our User-Agent, fixed IP addresses or signed requests. The secret header works from every location and proves a request came from your monitor, so start there unless your firewall can only match on addresses.

Add a header with a long random value to the monitor, then tell your firewall or bot protection to allow requests that carry it.

  1. Generate a long random value, for example with openssl rand -hex 32.

  2. Open the monitor and choose Edit monitor, then Request. Under Custom HTTP Headers, enter X-Uptime-Check as the header name and your random value as the header value. Save. Use this custom name rather than a standard metadata header such as User-Agent, whose value can remain visible in results.

    Through the API, read the monitor with GET /http/job/{job_id}, then send its complete custom_http_headers map, with X-Uptime-Check added, in PUT /http/job/{job_id}. The map replaces the stored headers, and masked values sent back unchanged keep their stored values.

  3. In your firewall, WAF or bot protection, add a rule that allows requests whose X-Uptime-Check header equals the value, or lets them skip the challenge. In Cloudflare, for example, that is a WAF custom rule with the expression any(http.request.headers["x-uptime-check"][*] eq "<your random value>") and the Skip action.

  4. Wait for the next check, or choose Check now, and confirm it passes.

Treat the value like a password. Site Qwality masks the X-Uptime-Check value when it returns a monitor or check result in the dashboard and API. If it leaks, generate a new one and update both the monitor and the rule.

Every check sends this User-Agent:

site-qwality-check/1.0

You can match on it to skip a bot challenge or a rate limit. Anyone can send the same string, though, so it identifies our checks without proving a request came from us. Use it where a false match costs little, or together with the secret header. A monitor with Web Bot Auth turned on also carries a signature that proves a request came from us.

Our standard check locations on AWS, Google Cloud and Microsoft Azure send requests from each provider’s shared address ranges, and those addresses change. If your firewall accepts only a fixed list of addresses, email hello@siteqwality.com and we will set up one of these:

  • Fixed IP addresses that Site Qwality checks run from.
  • Dedicated IP addresses that only your account’s checks use.
  • A private location: our check probe runs inside your own network, so it can also reach services that are not on the public internet.

Tell us which sites you monitor and what your firewall accepts, and we will recommend the one that fits.

An IP address shows where a request came from, not who sent it. Shared fixed addresses also carry checks for other Site Qwality accounts, so a rule based on the addresses alone also lets through a monitor someone else points at your site. Require the secret header as well, or use dedicated addresses.

Use this when the site is behind Cloudflare and you cannot change its rules, for example a client’s site.

A signed request carries a digital signature next to its usual headers. Site Qwality makes the signature with a private key only we hold and publishes the matching public key at bot.siteqwality.com. Whoever receives the request can check the signature against that key, and if it matches, the request came from Site Qwality. Anyone can copy a User-Agent, but nobody can make a valid signature without our key.

Cloudflare lists Site Qwality Monitor as a verified bot. When a signed check reaches a site behind Cloudflare, Cloudflare checks the signature and recognizes the request as ours. Its bot protection usually lets verified bots through without a challenge, unless the site’s own rules block them.

To turn it on, open the monitor, choose Edit monitor, then Advanced, and check Sign requests with Web Bot Auth. In the API, set web_bot_auth to true. It is off by default and applies to HTTP monitors only.

  • Signing adds the Signature-Agent, Signature-Input and Signature headers. The URL, method, other headers and body stay the same.
  • Site Qwality Monitor is registered with Cloudflare. Other bot-protection services may still challenge a signed check, and so can a Cloudflare rule that blocks verified bots. Use a secret header there.
  • To verify a signature yourself, see verifying a request.

When a check fails and the response carries the signature of a known bot-protection service, the result’s failure_reason is bot_protection, shown in the dashboard as Blocked by bot protection. The signatures recognized include Cloudflare challenges, AWS WAF CAPTCHA and challenge actions, Akamai, Imperva, DataDome and PerimeterX (HUMAN). The label is only applied to a check that already failed on its status code.

It still counts as a failure: the monitor goes down and alerts like any other failed check, because from the outside we cannot tell whether your users are being refused too.

What to do about it:

  • Turn on Web Bot Auth when the site is behind Cloudflare and you cannot change its rules. Each check is then signed as Site Qwality Monitor, which Cloudflare lists as a verified bot. See Web Bot Auth: signed requests.
  • Allowlist our checks with a secret header. This is the fix that lasts.
  • Add a location on another provider. Bot protection often scores cloud networks differently, so checking from another network can help. More than one location per monitor needs a paid uptime plan; see check locations.
  • Try HTTP/1.1. Some bot-management edges treat HTTP/2 and HTTP/1.1 clients differently. Set http_version to http1_1; see HTTP versions.
  • Monitor an endpoint that is not challenged, such as a health check path your protection lets through, if the page itself is always behind a challenge.