Allowing Hit Status in the firewall and WAF — Hit Status docs
If your website or API sits behind a WAF, a CDN with anti-bot protection or a firewall with a blocklist, Hit Status checks may be stopped as if they were…
Allowing Hit Status in the firewall and WAF
If your website or API sits behind a WAF, a CDN with anti-bot protection or a firewall with a blocklist, Hit Status checks may be stopped as if they were just any bot. The monitor then reports a failure, but the website is up.
This page shows how to allow Hit Status safely. For non-technical readers: just forward this page to the team that manages the website or security.
!Check from the cloud passing through the WAF to your website
How we recognize that we were blocked
When the response looks like a WAF or anti-bot protection (Cloudflare 403, captcha challenge, AWS "Request blocked", Akamai "Access Denied", 429 rate limit), the monitor shows the warning "The site seems to be blocking Hit Status", with the name of the protection when we can identify it, and a button to generate the allow header. The message also appears in the incident and in alerts.
Three ways to allow Hit Status
Pick one. The most secure is the secret header; the simplest is the IP.
1. Allow the source IPs
Checks run from the Hit Status cloud come from fixed addresses. Always get the current list in one of these formats:
A new address is added to the list before it starts being used, so it is worth automating reading it in your WAF or firewall instead of copying the IPs by hand. In the examples below, 203.0.113.10 is just an example address: replace it with the IPs from the list.
Checks run by a collector come from the IP of the network where the collector is installed, not from this list. See [Collector](collector).
2. Secret header per monitor (recommended)
An IP can be shared and a browser identity can be imitated; a secret that is yours alone cannot.
- In the monitor, open Edit → Advanced HTTP options.
- Click Generate allow header. Hit Status creates a random value and starts sending
X-HitStatus-Token: <valor> on every check of that monitor. - Copy the rule shown on screen and create an exception in the WAF that allows requests with that header and that value.
Use a different value per website, and rotate it by generating a new one if it leaks.
3. Recognize the bot's identity
Our checks identify themselves like this:
User-Agent: HitStatus/1.0 (+https://hitstatus.pro/docs/liberacao)
It is useful for recognizing the traffic in logs and in "known bots" rules. On its own, it is not a good allow rule, because anyone can copy that text; combine it with the IP or the header.
Step by step in the most common WAFs
Cloudflare
- By IP: Security → WAF → Tools → IP Access Rules → add each IP from ips.txt with the Allow action. For many IPs, create an IP List in Manage Account → Configurations → Lists and use it in a rule.
- By header: Security → WAF → Custom rules → *Create rule*. Expression:
any(http.request.headers["x-hitstatus-token"][*] == "SEU_VALOR"). Action: Skip, checking *All remaining custom rules*, *Rate limiting*, *Managed rules* and *Super Bot Fight Mode*. - If Under Attack mode or Bot Fight Mode is on, the rule above must exist, otherwise the checks get the challenge.
AWS WAF (CloudFront, ALB, API Gateway)
- By IP: create an IP set with the IPs from ips.txt, each with
/32, and an Allow rule with priority above the managed rules. - By header: a rule with a String match *Statement* on the
x-hitstatus-token header, type *Exactly matches string*, value SEU_VALOR, action Allow, priority above *Bot Control* and *rate-based*.
Akamai
In Client Lists, create a list with the IPs from ips.txt and use it as an exception in the Bot Manager policy and in the rate control rules. For the header, create a *Match target* exception on the X-HitStatus-Token header.
Imperva, Sucuri, FortiWeb and others
They all offer a list of allowed IPs (*allowlist*, *whitelist* or *trusted IPs*) and header-based exceptions. Use the same values: the IPs from ips.txt or the X-HitStatus-Token header.
nginx and Apache with ModSecurity
# nginx: do not apply the request limit to Hit Status
# one IP per line, taken from https://hitstatus.pro/ips.txt
geo $hitstatus { default 0; 203.0.113.10 1; }
# ModSecurity: turns off the rule engine for the allow header
SecRule REQUEST_HEADERS:X-HitStatus-Token "@streq SEU_VALOR" "id:1000100,phase:1,allow,nolog,ctl:ruleEngine=Off"
When allowing is not possible: try other approaches
Some websites refuse any unknown bot (HTTP 403) but serve browsers. On the blocked monitor's screen, the Try other approaches button repeats the check from the Hit Status cloud in four ways:
- Hit Status identity: the default, with
User-Agent: HitStatus/1.0. - Browser identity: headers from a regular Chrome.
- Port 443: TCP connection, outside the application.
- SSL certificate: TLS handshake, also outside the application.
If the browser identity gets through, one click on Use this switches the monitor to it. The same option is in Edit monitor → Advanced HTTP options → Identity in checks. Allowing Hit Status in the WAF is still the most stable path, because anti-bot protections change their rules without notice.
If nothing gets through, monitor a health or API route that is not behind the anti-bot (/health, /status), keep port 443 and SSL monitors to know whether the server is up, or use a collector inside the network.
Hex Tests and Hex Stress
Hex Tests runs (browser and API) leave from the same IPs in ips.txt and identify themselves as HitStatus/1.0 Testes (+https://hitstatus.pro/docs/liberacao): the same allowance as the monitors covers them. Hex Stress is different: every load test launches temporary machines, in more than one region, whose IPs change on every run. Allowing by IP is not possible. The generators identify themselves as HitStatus/1.0 Stress (+https://hitstatus.pro/docs/liberacao) and send whatever headers you define in the test steps; allow them by a secret header (set a fixed header in the flow steps, for example X-HitStatus-Token, and create the WAF exception that permits that value) or by the bot identity, only during the test window. For load tests, also raise or pause the WAF rate limit: the load comes from a few IPs, and a per-IP limit knocks the test down before your site.
Network firewall
If the target filters by IP at the edge (firewall, security group, ACL), allow the IPs from ips.txt on the monitored port: 443 for HTTPS, 80 for HTTP, the configured TCP port and ICMP *echo request* for ping.
When the target should not even be on the internet
For internal systems, private IPs and services that cannot be exposed, do not allow anything: install a [collector](collector) inside the network. It runs the checks from there and only opens outbound connections to Hit Status.
Checking
After allowing it, click Test now on the monitor. If it is still blocked, the warning comes back with the name of the protection; send the incident message to contato@hitstatus.pro and we will help adjust the rule.