Bot Detection — identifying bots by User-Agent
This section (the Bot Detection tab, sometimes labeled Verified Bots in the console) uses a single On/Off switch at the top instead of separate Create/Delete/Save buttons and an Enable box. Off = delete the domain's entire bot detection configuration. The options (category switches, custom patterns, verified bypass) only appear after you switch it On.
Bot Detection classifies requests by their User-Agent (UA) string and decides whether to let them through or block them (403). Bots are grouped as scanners (vulnerability scanning tools), crawlers (generic scraping bots), search engines, social and monitors. It also includes:
- A list of UAs you block yourself (
custom_block_patterns), - And Verified bypass: verified legitimate bots (Googlebot and others) skip the domain's Bot Management / Managed Challenge and Rate Limit. Firewall Rules, the WAF and UA blocking still run for these bots.
Use it to: block scanning tools (Nmap, sqlmap, Nikto and so on) and junk bots while still letting Googlebot/Bingbot and legitimate monitoring bots in. Example: your site is constantly probed by sqlmap. Turn on block scanners to return 403 to those UAs, and keep allow search engines on so SEO is not affected.
Bot Detection is a domain-wide configuration; there are no per-path rules. To challenge bots based on request rate instead of hard-blocking them, see the Bot Management page. To let a bot straight through safely, use Verified bypass (see Configuration examples).
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 Detection 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". - Verified bypass relies on the Bot Providers catalog (the list of UAs and IP ranges for Google, Bing, Facebook and others), which is managed by the platform. You do not configure this catalog.
How to configure
This section uses a single On/Off switch at the top: switching it On creates a configuration with default values and enables it right away (the options below only appear after it is On); Off deletes the domain's bot detection configuration. Click Save when you are done editing.
- Go to Domains → select a domain → Bot Detection tab.

- Switch the On switch at the top of the section. A configuration is created: if the domain has no configuration yet, the defaults are used (Block scanners on; Allow search/social/monitors on); if there is an older, disabled configuration, its saved values are loaded again. The options below appear.
- Adjust the category switches: Block scanners, Block crawlers, Allow search engines, Allow social, Allow monitors.
- (Optional) Add Custom block patterns, one UA string per line.
- (Optional) Turn on Verified bypass and choose the trusted Verified categories.
- Click Save to save your changes (the Save button appears when there are unsaved changes) and wait a few seconds for the change to sync to the nodes.
Configuration fields
| Field | Description | Values | Default | Notes |
|---|---|---|---|---|
| On/Off switch (top of the section) | Turns all of bot detection on: On = create (with defaults), Off = delete | Switch | Off (not configured) | Off = both verified bypass and UA blocking stop running and the configuration is deleted; options only appear after it is On |
| Block scanners | Blocks scanning tool UAs | On/off | On | Nmap/Nikto/sqlmap/WPScan/Acunetix/Nessus/Masscan |
| Block crawlers | Blocks generic crawlers | On/off | Off | Scrapy/python-requests/Go-http-client/java/libwww-perl. Can easily block legitimate scripts |
| Allow search engines | Lets search engines through | On/off | On | Googlebot/Bingbot/Yandex/Baidu/DuckDuckBot. Off = block (403) |
| Allow social | Lets social media bots through | On/off | On | Facebookexternalhit/twitterbot/linkedinbot/whatsapp/telegrambot |
| Allow monitors | Lets uptime monitoring bots through | On/off | On | UptimeRobot/Pingdom/Site24x7/StatusCake/BetterUptime |
| Custom block patterns | UAs you block yourself | List, ≤128 entries; each entry ≤1024 bytes | — | The edge matches a case-insensitive substring, even though the system validates them as regex on save (the regex must compile) |
| Verified bypass | Lets verified bots straight through | On/off | Off | At least 1 category must be selected; skips Bot Management / Managed Challenge + Rate Limit. Does not skip the WAF or UA blocking |
| Verified categories | Bot groups trusted for bypass | ⊆ {search_engine, social_media, ai_crawler, monitoring, other}, ≤64 | Search_engine, social_media, monitoring | Adding ai_crawler/other → OpenAI, Ahrefs and similar also bypass |
Verified bypass prevents spoofing: a UA claiming to be Googlebot from an IP that is not in Google's IP ranges does not get the bypass (the edge only trusts it if the IP matches the provider's ranges). That makes verified bypass safer than an allow for a broad IP range.
Configuration examples
Example 1 — Allow Googlebot, block unknown bots.
- Switch the On switch, and keep Allow search engines on.
- Turn on Block crawlers to block generic crawlers; add Custom block patterns =
["AhrefsBot", "SemrushBot", "MJ12bot"]for SEO bots you do not want. - Result: Googlebot (
Googlebot/2.1) gets in normally; requests with a UA containingAhrefsBotget 403. - Verify:
curl -A "AhrefsBot/7.0" https://example.com/→ 403;curl -A "Googlebot/2.1" ...→ normal 200/404.
Example 2 — Block vulnerability scanners (default).
- Switch the On switch, and keep Block scanners on.
- Result: the UAs
sqlmap/1.5,Niktoandmasscanget 403 with the custom error page. - Verify:
curl -A "sqlmap/1.5.2" https://example.com/→ 403.
Example 3 — Let Googlebot straight through (Verified bypass).
- Turn on Verified bypass and set Verified categories =
search_engine. - Result: Googlebot requests from Google's real IPs skip Bot Management and Rate Limit (indexing is not rate limited) but still go through the WAF. Fake Googlebot (from an unknown IP) does not get the bypass and is still checked by the other layers.
- Verify: compare the logs of a Googlebot request from a Google IP (bypassed) with a Googlebot UA from another IP (not bypassed).
Example 4 — Block only one specific bot, without affecting other bots.
- Keep Block crawlers off; only add Custom block patterns =
["BadBot"]. - Result: only UAs containing
badbot(in any case) get 403; other UAs are not affected.
Order of evaluation
- The On/Off switch = whether the configuration exists: On = create the bot detection record; Off = delete it → the domain no longer blocks or bypasses by UA.
- Verified bypass runs very early, before Bot Management and the WAF. Verified bots are flagged so that Bot Management, Managed Challenge and Rate Limit skip them; the WAF and UA blocking do not look at this flag.
- UA blocking runs before the WAF (right after Bot Management, before Rate limit and the WAF). A blocked UA gets 403 immediately, without the cost of running WAF rules (the log records the block reason as
bot, not a WAF rule). - Access Control
allowand Firewallallow/bypassrun earlier and skip the UA blocking step entirely. - If a UA matches
custom_block_patternsand also belongs to anallowgroup, the custom pattern blocks first (it is checked first in the classification step).
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, then save again |
| Saving returns a validation error | More than 128 patterns; an empty pattern or one over 1024 bytes; a pattern that does not compile as regex; more than 64 categories | Fix according to the table in Configuration fields |
| A custom pattern does not block as expected | The edge matches a substring, not a full regex | Enter the exact part of the UA string to match (for example AhrefsBot); do not rely on advanced regex syntax |
| Googlebot is blocked | Allow search engines is off, or it is a fake Googlebot UA from an unknown IP | Turn Allow search engines back on (UA blocking runs even for verified bots, so Verified bypass does not help in this case) |
| SEO indexing drops | Block crawlers is too aggressive | Turn off Block crawlers or switch to selective blocking with custom patterns |
| Legitimate client scripts (mobile/app) get 403 | Block crawlers blocks python-requests/Go-http-client and similar | Turn off Block crawlers, or give the app its own UA string |
FAQ
- How is Bot Detection different from Bot Management? Bot Detection blocks or allows by UA (binary: 403 or pass). Bot Management challenges based on request rate (cookie, challenge, 429). See its own page.
- Are custom block patterns regex or plain strings? On save, the system validates them as regex (they must compile), but the edge matches them as case-insensitive substrings, not as regex. For example,
^AhrefsBot$is treated as a literal string and does not match the real UAAhrefsBot/2.1; enter the substringAhrefsBotinstead. - Is Verified bypass risky? Low risk, because the edge checks that the IP matches the provider's ranges (anti-spoofing). It only skips Bot Management, Managed Challenge and Rate Limit; the WAF still inspects the request. Even so, only enable it for categories you actually trust.
- Why don't I see an existing configuration when I open the Bot Detection tab for the first time? A domain that has never saved Bot Detection has no configuration yet (unlike DDoS/Bot Management, which always return defaults). Switch the On switch to create it for the first time; the options appear after it is On.
- Why do the switches only appear after I switch it On? The configuration body is hidden when Off and only appears once it is On (a configuration exists). Switching Off deletes the configuration, so the body is hidden again.