Bot Management — rate-based bot challenges
Bot Management (also called Bot Challenge) mitigates floods and bots using a background verification cookie combined with rate thresholds (for verified and unverified clients), then gradually escalates the response when a client exceeds the threshold:
Allow (and set the verification cookie) → Challenge (returns 429) → Block (hard block, 403).
A client that keeps the verification cookie is treated as verified and uses the higher Verified threshold. API clients (sending Accept: application/json) receive a retryable 429 with Retry-After instead of a challenge page, so apps should honor Retry-After.
The escalation levels are: Level 1 cookie challenge (429) → Level 2 JavaScript challenge (429) → Level 3 hard block (403).
When JS Challenge is enabled for your account, Levels 1 and 2 use the JS Challenge page, with the display and TTL settings from the "JS Challenge defaults" card below.
Use it to: fight floods and sophisticated scraping with fewer false positives than a hard block. Example: your home page is hit by a bot sending 500 req/min from one IP. Bot Management challenges it with JS while real people (who keep cookies) continue to browse smoothly.
Before you start
- The domain has been added and points to VNIS.
- The organization must be granted WAF and the domain must have WAF enabled. Otherwise, the Bot Challenge tab (and the Bot Analytics tab) is locked in the console, with a prompt to go to the WAF tab to enable it. If you call the API directly when the organization does not have WAF, saving (
PUT/DELETE) returns 403 "WAF is not enabled for this organization".
How to configure
- Go to Domains → select a domain → Bot Challenge (Bot Management) tab.

- Turn on Enable.
- Set the Threshold window and the Unverified / Verified and Level 1/2/3 thresholds.
- (Optional) Add Bypass CIDRs for trusted IPs and turn on Bypass verified bots. (Optional) adjust the JS Challenge defaults card, which holds the defaults for every JS challenge on the domain (see the "JS Challenge defaults" card section below).
- Click Save and wait a few seconds for the change to sync. See the results in the Bot Analytics tab.
Configuration fields
| Field | Description | Values | Default | Notes |
|---|---|---|---|---|
| Enable | Enables bot management | On/off | Off | Organization WAF must be enabled to save |
| By host | Counts buckets per actual hostname (wildcard domains) | On/off | Off | The verification cookie still follows the configured domain |
| Threshold window | Window (seconds) used to count all thresholds | 1–3600 seconds | 60 | Setting 0 → automatically set to 60 |
| Unverified threshold | Requests per window threshold for unverified IPs | 1 – 1,000,000 | 100 | Must be ≤ Level 1 |
| Verified threshold | Threshold for verified IPs (with a valid cookie) | 1 – 1,000,000 | 1000 | Must be ≥ Level 3 |
| Unverified burst | Instant burst allowance for unverified clients | 0 – 1,000,000 | 0 (=auto) | 0 = calculated automatically (rate×1.5, minimum 2) |
| Verified burst | Burst allowance for verified clients | 0 – 1,000,000 | 0 (=auto) | 0 = calculated automatically (rate×2) |
| Level 1 count | Escalation threshold 1 → cookie challenge | ≤ 1,000,000 | 100 | Unverified ≤ L1 ≤ L2 |
| Level 2 count | Threshold 2 → JavaScript challenge | ≤ 1,000,000 | 200 | L1 ≤ L2 ≤ L3 |
| Level 3 count | Threshold 3 → hard block 403 | ≤ 1,000,000 | 500 | L2 ≤ L3 ≤ verified |
| Block duration | Reserved for future use | 1 – 86400 seconds | 300 | Currently has no effect; changing this value does not change behavior. Level 3 blocking is controlled by Level 3 count |
| Cookie TTL | TTL of the verification cookie | 60–86400 seconds | 3600 | Higher → clients stay "verified" longer. Setting 0 → 60 |
| Bypass verified bots | Lets verified bots (Googlebot and others) skip bot management | On/off | On | Based on the Bot Providers catalog |
| Bypass CIDRs | IP ranges that always skip bot management | List of CIDRs (one per line), ≤256 | — | CIDRs broader than v4 /8 or v6 /16 are rejected on save. A malformed line → the console shows "Invalid: …" and disables Save |
| Path rules | Override/bypass rules by path+method | ≤128 rules | — | The console only lets you view and delete them, not create new ones; first match by priority, high → low |
"JS Challenge defaults" card (domain JS Challenge defaults)
The Bot Challenge tab has a "JS Challenge defaults" card. These are the default values for every JS challenge on the domain: Firewall rules, Rate Limit rules, the DDoS interstitial and Bot Management challenges. There is no on/off switch here: a rule with the JS Challenge action is what turns the challenge on, and each rule can override the display, delay and TTL.

| Field | Description | Values | Default | Notes |
|---|---|---|---|---|
| Clearance TTL (seconds) | How long the clearance ticket is valid before the visitor is challenged again | 0 or 60–86400 | 1800 (30 minutes) | 0 = default |
| Challenge display (domain default) | Default display style | Interstitial / Transparent | Interstitial | Transparent = solved in the background, redirects immediately |
| Redirect delay (seconds) | Default time the waiting page is held | 0–10 | 0 | Also used for DDoS Under-Attack; ignored with Transparent |
| Bypass verified bots (Googlebot, Bingbot, etc.) | Verified bots are not challenged | On/off | On | Applies to every challenge source |
| Bypass CIDR ranges | IP ranges that always skip the JS challenge | CIDRs, one per line | — | Broader than /8 (v4) / /16 (v6) is rejected; an invalid line → "Invalid:" |
| Signing key | Key used to sign clearance tickets | — | Generated automatically when the first JS Challenge rule is saved | Never displayed; Rotate key button (every visitor with a ticket is challenged again once) |
JS challenges only run when JS Challenge has been enabled for your account by VNETWORK; contact support.
Thresholds must be in order unverified ≤ L1 ≤ L2 ≤ L3 ≤ verified. The console blocks Save if you enter them in the wrong order. If you set them through the API in the wrong order, the request still succeeds and the values are adjusted into this order, so GET the configuration again to see the values actually saved.
Configuration examples
Example 1 — Basic flood protection for the home page.
- Enable = on; Threshold window
60; Unverified threshold60; Level 160, Level 2120, Level 3300; Verified threshold1000. - Result: an IP without a cookie sending more than 60 req/min starts getting challenged (429); clients that keep exceeding the thresholds get the JavaScript challenge (429) and, past Level 3, 403. Real visitors whose browsers keep the verification cookie are treated as verified and use the higher Verified threshold, so they browse smoothly.
- Verify:
for i in $(seq 1 80); do curl -s -o /dev/null -w "%{http_code} " -H "Accept: text/html" https://example.com/; done→ you see 200, then 429 appears.
Example 2 — Exempt office IPs or monitoring systems.
- Add Bypass CIDRs =
["203.0.113.0/28"](remember: no broader than /8 for v4, /16 for v6). - Result: every IP in that range skips bot management completely.
- Verify: send rapid requests from an IP in the range → never challenged or 429.
Example 3 — Let Googlebot straight through.
- Keep Bypass verified bots on.
- Result: Googlebot (UA + Google's real IP) skips bot management and is not challenged.
- Verify: compare the logs of a Googlebot request from a Google IP (skipped) with a Googlebot UA from an unknown IP (still counted).
Example 4 — Protect an API without breaking mobile apps.
- Enable = on; set a low unverified threshold.
- Result: clients sending
Accept: application/jsonthat exceed the threshold get 429 + Retry-After and can retry; browser (HTML) clients get the challenge page. - Verify: send requests over the threshold with
curl -H "Accept: application/json"→ you see 429.
Order of evaluation
- Bot Management runs after Verified bypass (verified bots are skipped) and before Rate limit + WAF.
- Access Control
allowand Firewallallow/bypassrun earlier → they skip bot management completely. - Bypass CIDRs and path rules with action=bypass make the request skip bot management immediately.
- HTML clients and API clients receive different responses (see the top of this page).
Troubleshooting
| Symptom | Common cause | Fix |
|---|---|---|
| Saving returns 403 "WAF is not enabled" | WAF is not enabled for the organization | Enable WAF for the organization first |
| Saving returns a validation error | Window > 3600; count > 1,000,000; cookie/block > 86400; invalid CIDR; more than 128 path rules; priority outside 0–1000 | Fix according to the table in Configuration fields |
| Saving a CIDR returns an error | A bypass CIDR broader than /8 (v4) or /16 (v6) | Narrow the range |
| The saved value differs from the value sent | Thresholds in the wrong order were clamped by the system | Reload to see the actual values; enter them in the correct order |
| You cannot create a new path rule | The console only lets you view and delete path rules | Path rules cannot be created from the console for now |
| A mobile app fails when it exceeds the threshold | The app treats 429 as a fatal error | 429 is retryable: the app should retry after Retry-After |
FAQ
- What is the verification cookie? A background cookie that VNIS sets on clients. Clients that send it back are promoted to "verified" with a higher threshold. The TTL is set in Cookie TTL.
- Why do API clients get 429 instead of a challenge page? API clients cannot display a challenge page, so they get a retryable 429 to avoid breaking mobile apps and integrations.
- I set the thresholds in the wrong order through the API. Why did I still get 200? The system adjusts the order automatically (without an error). Always GET the configuration again to check the actual values.
- Block duration has no effect? Correct. It is reserved for future use. Blocking comes from the Level 3 escalation (returning 403).
- Where can I see blocked bots? The Bot Analytics tab (on the domain page), with statistics by response type (challenge, 429, JavaScript challenge, block). If you block an IP from here while the domain's Access Control is off, the console asks you to confirm "Turn on access control to block this IP?". Agreeing turns on Access Control (which also activates any saved rules) and then blocks the IP.