Skip to content
AnswerWell geo Documentation

Research · 9 min read · Answerwell

Bot Score, Detection Engines and Custom WAF Rules

How bot scores work, which protection tier to use, and how to write WAF rules that block bad bots while allowing verified crawlers.

This page summarizes Cloudflare documentation on identifying automated traffic, the bot score (1–99), built-in bot settings, and WAF custom rules that use cf.bot_management.* fields. AWS WAF Bot Control uses a related but separate model (managed rule group labels and protection levels); the sections below focus on Cloudflare unless noted.

Bot score: what the numbers mean and who gets them

Section titled “Bot score: what the numbers mean and who gets them”

A bot score is an integer from 1 to 99 on each request that Cloudflare evaluates for bot products. Lower values mean more automation; higher values mean more human-like traffic.

A bot score is a score from 1 to 99 that indicates how likely that request came from a bot. For example, a score of 1 means Cloudflare is quite certain the request was automated, while a score of 99 means Cloudflare is quite certain the request came from a human.

— Cloudflare, Bot scores

Cloudflare groups scores for dashboards and tuning:

Category Score range Typical use in rules
Not computed 0 Bot Management did not run (internal paths, early redirects)
Automated 1 Safe to block with low false-positive risk
Likely automated 2–29 Challenge or stricter rate limits
Likely human 30–99 Usually allow; do not blanket-block
Verified bot (separate signal) Search crawlers, monitors you choose to allow

Scores between 1 and 29 are classified as bot traffic. Scores equal or above 30 are classified as non-bot/human traffic.

— Cloudflare, Bot classes

Per-request bot scores (cf.bot_management.score) require Bot Management for Enterprise. On Pro and Business without that add-on, you still see groupings in Bot Analytics and can use Super Bot Fight Mode category actions, not arbitrary score thresholds in expressions.

A score of 0 does not mean “safe human”:

A bot score of 0 means Bot Management did not evaluate the request. This applies to internal Cloudflare service requests and requests that were redirected or handled by another feature (such as Redirect Rules) before Bot Management could run. A bot score of 0 does not indicate the request is safe or human.

— Cloudflare, Bot scores

Examples of paths that never receive a score include routes under /cdn-cgi/; see Bot Management skips.

Bot Fight Mode, Super Bot Fight Mode, and Enterprise Bot Management

Section titled “Bot Fight Mode, Super Bot Fight Mode, and Enterprise Bot Management”

Cloudflare offers three bot-specific products; pick based on whether you need a single toggle or per-request scores and path-specific rules.

If you need a simple toggle that challenges detected bots across your entire domain, use Bot Fight Mode (Free) or Super Bot Fight Mode (Pro, Business, Enterprise without Bot Management add-on). These products are included with your plan but do not allow you to write rules based on bot score or target specific endpoints.

If you need granular control — per-request bot scores, custom rules, per-endpoint handling, and detailed analytics — use Bot Management for Enterprise.

— Cloudflare, Cloudflare bot solutions

Product Plans Control Custom rules on bot score
Bot Fight Mode Free+ Domain-wide challenge for known bot patterns No; cannot Skip via WAF custom rules
Super Bot Fight Mode Pro, Business, Enterprise (no BM add-on) Per-category actions (definitely / likely / verified bots) Skip SBFM only; not per-path score rules
Bot Management Enterprise add-on Score, JA3/JA4, detection IDs, tags Full cf.bot_management.* in rules

When Enterprise Bot Management is entitled, Cloudflare disables overlapping products so you configure one stack (Plans).

AWS WAF Bot Control (different product, same problem)

Section titled “AWS WAF Bot Control (different product, same problem)”

On AWS, Bot Control is a managed rule group that labels requests (category and bot name) rather than exposing Cloudflare’s 1–99 score:

When AWS WAF evaluates a web request against the Bot Control managed rule group, it labels requests that it detects as bot-related. Labels include the bot category and bot name. You can match against these labels in your own AWS WAF rules to customize handling.

— AWS, AWS WAF Bot Control

Common conclusion: Both platforms separate “good” automated clients from abusive automation, but Cloudflare Enterprise centers policy on bot score and cf.bot_management fields, while AWS centers on rule group labels and optional targeted inspection (browser interrogation, ML on traffic statistics). Plan availability, pricing, and field names differ; expressions are not portable.

Detection engines behind the bot score (Enterprise)

Section titled “Detection engines behind the bot score (Enterprise)”

For Enterprise Bot Management, multiple engines contribute to the final score (Bot detection engines, reference architecture):

  • Heuristics — pattern matching against malicious fingerprints; can set score 1 or sometimes 29 while confidence is assessed.
  • Adaptive Intelligence (ML) — supervised model on request features; produces most scores between 2 and 99. Enable Auto-update machine learning under Bot Management settings for Adaptive Intelligence instead of a fixed model version (Machine Learning models).
  • JavaScript detections — optional client-side script for headless clients.
  • Anomaly detection — optional baseline outliers; deprecated, not onboarded for new customers (Bot scores).

Cloudflare uses the __cf_bm cookie to stabilize scores across a session (Bot scores, Cloudflare Cookies).

Built-in bot settings versus WAF custom rules

Section titled “Built-in bot settings versus WAF custom rules”

Bot protection uses toggles in Security Settings and WAF custom rules (Custom rules).

Built-in settings (Block AI bots, Definitely/Likely automated, Verified bots, static resource protection, and others) auto-update signatures, do not count toward custom rule quotas, and apply domain-wide. Use them first (Challenge bad bots, Get started with WAF).

Write custom rules when you need:

  • Path-specific handling (e.g. stricter rules on /login only)
  • Custom thresholds (e.g. challenge below 20 instead of 30)
  • Compound conditions (country, ASN, JA3/JA4, method)
  • Actions like Log, Skip, or Interactive Challenge
  • Detection IDs (account takeover, scraping)
  • Managed Transforms to send cf-bot-score and related headers to origin

Enterprise note: Definitely and Likely automated toggles are not handled entirely by bot settings—you typically combine Security Settings with score-based custom rules (Enterprise Bot Management).

Challenge bad bots recommends learning traffic in Bot Analytics first, then layering rules—for example skip verified bots, block score 1, challenge scores 2–29, and exclude APIs with starts_with(http.request.uri.path, "/api").

Key fields are documented in Bot Management variables:

Field Purpose
cf.bot_management.score 1–99 likelihood of automation
cf.bot_management.verified_bot Cloudflare-verified good bot
cf.bot_management.static_resource Static file exemption in score rules
cf.bot_management.detection_ids Heuristic detection ID matches
cf.bot_management.ja3_hash / cf.bot_management.ja4 TLS client fingerprint (Enterprise BM)
cf.client.bot Known good bot (all plans; not identical to verified_bot)

There is no functional difference between known and verified bots. However, the known bots field (cf.client.bot) is available for all customers, while the verified bots field (cf.bot_management.verified_bot) is available for Enterprise customers.

— Cloudflare, WAF troubleshooting FAQ

Verified bots: allow crawlers without weakening login protection

Section titled “Verified bots: allow crawlers without weakening login protection”

Verified bots are automated clients Cloudflare validates (reverse DNS, ASN lists, ML, Web Bot Auth). Allowing them in bot settings or a Skip rule prevents SEO and monitoring breakage when you challenge low scores.

Example pattern from Allow traffic from search engine bots: geo-restrict traffic but exempt bots with not cf.client.bot in the expression when challenging by country.

For Enterprise, prefer cf.bot_management.verified_bot in score-based rules (Challenge bad bots). BotBase (Enterprise) lists tracked bots, behaviors, and detection IDs for targeted rules.

Managed rules also flag fake crawlers (User-Agent claims Googlebot/Bingbot but IP verification fails). Legitimate tools on non-crawler IP ranges may false-positive; create a Skip exception above the managed ruleset (Fake bot detection, Bing Site Scan blocked).

Detection IDs: account takeover, scraping, and login endpoints

Section titled “Detection IDs: account takeover, scraping, and login endpoints”

Detection IDs are static heuristic signals with no intended human overlap (Detection IDs). A request can match multiple IDs. Use any(cf.bot_management.detection_ids[*] eq <id>) in custom or rate limiting rules.

Account takeover detections:

Detection ID Meaning
201326592 Suspicious volume of login failures
201326593 Suspicious volume of login attempts
201326598 Dynamic threshold from zone-normal traffic

Not all login endpoints are automatically detected. … if you have a non-traditional login endpoint, you should label it with cf-log-in using the endpoint labeling service.

— Cloudflare, Account takeover detections

When an ID matches login abuse, Bot Management may set bot score 29 with anomaly detection as score source (same doc). Combine IDs with Managed Challenge on POST to login paths (Challenges for account takeover detections).

Scraping detections IDs 50331648 and 50331649 analyze zone-level patterns by ASN or JA4; exclude API paths if you challenge matched traffic.

Discover IDs in logs via BotDetectionIDs in Logpush HTTP Requests or filters in Security Analytics.

Use analytics before aggressive blocking (Stop malicious bots while allowing legitimate traffic):

  • Business+ without Bot Management: Bot Analytics — traffic type, detection source, top attributes; up to 72 hours per view, data up to 30 days, sampled (Bot Analytics).
  • Enterprise with Bot Management: same dashboard with bot score distribution, score source, up to one week per view (Bot Analytics, Augment default analytics).

Bot Detection Alerts notify on spikes in traffic with bot score under 30 or filtered dimensions.

Enterprise customers can report mis-scored traffic through the Bot Feedback Loop (dashboard or API) to inform the next ML model.

Bot score vs WAF attack score: Attack score finds attack variants; bot score finds automation. Cloudflare recommends combining attack-score blocks with extra filters (path, bot score) rather than blocking all attack scores below 50 (WAF attack score).

  1. Open Bot Analytics at Security → Analytics → Bot analysis and review score distribution, top paths, and (Enterprise) score sources.
  2. Confirm bot products under Security → Settings, filter Bot traffic (Security settings), match your plan (Plans).
  3. In Security → Analytics → Events, verify challenges come from the expected service (Bot Fight Mode, Super Bot Fight Mode, or custom rules) (Bot Fight Mode visibility).
  4. After rule changes, sample live requests for BotScore, BotDetectionIDs, and cf-verified-bot via Logpush or Managed Transforms (Enterprise BM).
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact wording you are asking about.