Skip to main content

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​

  1. Go to Domains → select a domain → Bot Challenge (Bot Management) tab. Go to Domains → select a domain → Bot Challenge (Bot Management) tab
  2. Turn on Enable.
  3. Set the Threshold window and the Unverified / Verified and Level 1/2/3 thresholds.
  4. (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).
  5. Click Save and wait a few seconds for the change to sync. See the results in the Bot Analytics tab.

Configuration fields​

FieldDescriptionValuesDefaultNotes
EnableEnables bot managementOn/offOffOrganization WAF must be enabled to save
By hostCounts buckets per actual hostname (wildcard domains)On/offOffThe verification cookie still follows the configured domain
Threshold windowWindow (seconds) used to count all thresholds1–3600 seconds60Setting 0 → automatically set to 60
Unverified thresholdRequests per window threshold for unverified IPs1 – 1,000,000100Must be ≤ Level 1
Verified thresholdThreshold for verified IPs (with a valid cookie)1 – 1,000,0001000Must be ≥ Level 3
Unverified burstInstant burst allowance for unverified clients0 – 1,000,0000 (=auto)0 = calculated automatically (rate×1.5, minimum 2)
Verified burstBurst allowance for verified clients0 – 1,000,0000 (=auto)0 = calculated automatically (rate×2)
Level 1 countEscalation threshold 1 → cookie challenge≤ 1,000,000100Unverified ≤ L1 ≤ L2
Level 2 countThreshold 2 → JavaScript challenge≤ 1,000,000200L1 ≤ L2 ≤ L3
Level 3 countThreshold 3 → hard block 403≤ 1,000,000500L2 ≤ L3 ≤ verified
Block durationReserved for future use1 – 86400 seconds300Currently has no effect; changing this value does not change behavior. Level 3 blocking is controlled by Level 3 count
Cookie TTLTTL of the verification cookie60–86400 seconds3600Higher → clients stay "verified" longer. Setting 0 → 60
Bypass verified botsLets verified bots (Googlebot and others) skip bot managementOn/offOnBased on the Bot Providers catalog
Bypass CIDRsIP ranges that always skip bot managementList 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 rulesOverride/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.

Bot Challenge tab, "JS Challenge defaults" card: Clearance TTL (seconds) 1800, Challenge display (domain default) Interstitial/Transparent, Redirect delay (seconds) 0, Bypass verified bots on, Bypass CIDR ranges, with no on/off switch

FieldDescriptionValuesDefaultNotes
Clearance TTL (seconds)How long the clearance ticket is valid before the visitor is challenged again0 or 60–864001800 (30 minutes)0 = default
Challenge display (domain default)Default display styleInterstitial / TransparentInterstitialTransparent = solved in the background, redirects immediately
Redirect delay (seconds)Default time the waiting page is held0–100Also used for DDoS Under-Attack; ignored with Transparent
Bypass verified bots (Googlebot, Bingbot, etc.)Verified bots are not challengedOn/offOnApplies to every challenge source
Bypass CIDR rangesIP ranges that always skip the JS challengeCIDRs, one per line—Broader than /8 (v4) / /16 (v6) is rejected; an invalid line → "Invalid:"
Signing keyKey used to sign clearance tickets—Generated automatically when the first JS Challenge rule is savedNever 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 threshold 60; Level 1 60, Level 2 120, Level 3 300; Verified threshold 1000.
  • 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/json that 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 allow and Firewall allow/bypass run 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​

SymptomCommon causeFix
Saving returns 403 "WAF is not enabled"WAF is not enabled for the organizationEnable WAF for the organization first
Saving returns a validation errorWindow > 3600; count > 1,000,000; cookie/block > 86400; invalid CIDR; more than 128 path rules; priority outside 0–1000Fix according to the table in Configuration fields
Saving a CIDR returns an errorA bypass CIDR broader than /8 (v4) or /16 (v6)Narrow the range
The saved value differs from the value sentThresholds in the wrong order were clamped by the systemReload to see the actual values; enter them in the correct order
You cannot create a new path ruleThe console only lets you view and delete path rulesPath rules cannot be created from the console for now
A mobile app fails when it exceeds the thresholdThe app treats 429 as a fatal error429 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.