Check 31.10 · AI crawler access and data policy

Check CDN, Cloudflare and WAF

Check that Cloudflare, AWS WAF or your CDN do not block AI search crawlers, and write rules that let verified crawlers through.

Priority
Critical
Difficulty
Advanced
Estimated time
1 to 3 h
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Between an AI crawler and your server there is often a CDN (Content Delivery Network) and a WAF (Web Application Firewall). These layers decide before your robots.txt does: they can refuse OAI-SearchBot, PerplexityBot or Claude-SearchBot even though your file allows them. This check consists of reading each layer's AI crawler settings, aligning them with your policy and writing exceptions based on the crawlers' verified identity. Expected result: allowed search crawlers receive a 200 code and refused crawlers are blocked deliberately.

Why it matters

robots.txt expresses a preference; the firewall enforces its own. When the two diverge, the firewall wins and nothing flags it: the crawler receives a 403 error or a challenge page, then leaves.

Three reasons make these blocks frequent:

  • Default settings change. CDNs now offer one-click AI crawler policies, whose initial state depends on when the site was created and on the plan. Cloudflare currently states that new domains allow search, agent and training crawlers by default; an older domain may carry a block enabled at another time.
  • Managed rule groups target “AI” wholesale. In AWS WAF, the Bot Control CategoryAI rule blocks all AI bots by default, verified or not, whereas the other categories spare verified bots.
  • AI crawlers crawl from data centers. That is exactly the profile that protections against content scrapers refuse.

A good configuration distinguishes the families (search, training, user-triggered access) and verifies identity: a user agent can be faked, an official IP address or a verified bot status far less so.

What it improves

  • Crawling by generative engines AI search crawlers actually reach your pages.
  • Citations in AI answers Indirect effect. An inaccessible page cannot be cited; an accessible page can be, with no guarantee.
  • Consistency Robots.txt, CDN and firewall apply the same policy.
  • Security Exceptions rely on verified identity, not on a name any script can spoof.
  • Costs The training crawlers you refuse are stopped at the edge, before they consume origin resources.

How to check

1. Which layer responds? Query the site with each crawler's user agent and read the headers:

for ua in "OAI-SearchBot/1.4; +https://openai.com/searchbot" \
          "PerplexityBot/1.0; +https://perplexity.ai/perplexitybot" \
          "Claude-SearchBot/1.0; [email protected]" \
          "GPTBot/1.4; +https://openai.com/gptbot"; do
  echo "== $ua"
  curl -s -o /dev/null -D - -A "Mozilla/5.0 (compatible; $ua)" https://example.com/ \
    | grep -i -E "^HTTP|^server:|^cf-mitigated:|^x-amzn-waf-action:|^x-sucuri|^x-iinfo"
done

Compliant result: 200 for allowed crawlers. A 403 with server: cloudflare, a cf-mitigated: challenge header or x-amzn-waf-action point to the edge, not to your server.

2. Does the crawler reach the origin? Compare the CDN's logs with the server's. A crawler present in the CDN's security events and absent from the origin logs is being stopped at the edge.

3. What do the dashboards say? In Cloudflare, filter the security events on the crawler's user agent: each event shows the service and the rule that acted. In AWS WAF, look at the web ACL's sampled requests in the AWS WAF console and the terminatingRule field in the logs.

Warning: your curl test comes from your address, not from the crawler's. A firewall that verifies origin may refuse your imitation and let the real crawler through. The test detects blocks by name; only the logs prove what the real crawler receives. See test HTTP responses for each crawler (opens in a new tab).

How to implement

Before you start

Start from your decision matrix (opens in a new tab) and apply three principles on every platform:

  1. An exception requires a name and proof of origin: a verified bot status provided by the CDN, or an official address range. Never the user agent alone.
  2. The exception goes before the blocking rules, and its scope is limited to the protections that get in the crawler's way.
  3. Each rule is named and commented with the decision it applies.
Crawler Official ranges
OAI-SearchBot https://openai.com/searchbot.json
PerplexityBot https://www.perplexity.ai/perplexitybot.json
Claude-SearchBot https://claude.com/crawling/bots.json (list shared by Anthropic's crawlers)
Googlebot https://developers.google.com/static/crawling/ipranges/common-crawlers.json
Bingbot https://www.bing.com/toolbox/bingbot.json

Cloudflare

Versions Cloudflare dashboard, all plans, November 2026. Super Bot Fight Mode: Pro plans and above; pay per crawl: private beta.

Five settings act on AI crawlers. Go through them in this order.

1. AI crawler and agent policies. Security > Settings, Bot traffic filter, AI Crawler and Agent access policies (setting formerly called “Block AI bots”). Three behaviors are set separately:

Behavior What it covers Possible actions
Search crawlers that collect or index to answer later Allow (do not block), Block, Block on pages with ads
Agent real-time activity on a person's behalf the same
Training training crawlers, including mixed-use ones the same, plus Disallow

For a “search yes, training no” policy: Search and Agent on Allow (do not block), Training on Block. Each policy applies to the verified bots with that behavior and to the unverified bots that match them.

2. Managed robots.txt. The Training policy's Disallow action, with the Bot Preference Sync option, adds refusals for a list of training crawlers at the top of your robots.txt and blocks those crawlers at the edge, except mixed-use crawlers. If you enable it, reread the public file: it no longer matches the origin's.

3. AI Crawl Control (formerly AI Audit), available on all plans. The Crawlers tab lists each AI crawler detected, with an Allow or Block action per crawler and the number of violations of your robots.txt. Blocking a crawler here creates or updates a WAF custom rule. A third action, Charge, belongs to pay per crawl, in private beta: the crawler receives a 402 Payment Required response with a price. A block by the WAF or bot management takes precedence over this billing.

4. Bot Fight Mode and Super Bot Fight Mode. The first, on the Free plan, cannot be bypassed by any custom rule. The second accepts exceptions. The settings are detailed in check automatic blocking and CAPTCHAs (opens in a new tab).

5. Custom rules. In Security > Security rules, first create the exception, at the very top of the list:

(cf.client.bot and (http.user_agent contains "OAI-SearchBot" or http.user_agent contains "PerplexityBot" or http.user_agent contains "Claude-SearchBot" or http.user_agent contains "Googlebot" or http.user_agent contains "bingbot"))

Skip action, checking All remaining custom rules, All rate limiting rules, All managed rules and All Super Bot Fight Mode rules. The cf.client.bot field is true only for a bot whose origin Cloudflare has verified. If a crawler on your list is not recognized as verified on your zone, add a branch based on its addresses, saved in an account-level list:

(http.user_agent contains "PerplexityBot" and ip.src in $perplexitybot)

Then, below it, the refusal of training crawlers if you do not use the policies from step 1:

(http.user_agent contains "GPTBot") or (http.user_agent contains "ClaudeBot") or (http.user_agent contains "CCBot") or (http.user_agent contains "Bytespider")

Block action. The ClaudeBot pattern affects neither Claude-SearchBot nor Claude-User. Verified bot categories remain usable in expressions, for example cf.verified_bot_category in {"Search Engine Crawler" "AI Search"}, but Cloudflare states that recent search crawlers are classified by behavior and that these behaviors are not rule fields: check each crawler's actual category in the events before relying on it.

AWS

Versions AWS WAF in front of CloudFront, Application Load Balancer or API Gateway, Bot Control group (AWSManagedRulesBotControlRuleSet), November 2026 console.

With AWS WAF in front of CloudFront, an Application Load Balancer or API Gateway, the Bot Control managed rule group (AWSManagedRulesBotControlRuleSet) labels each bot and applies one rule per category. All of them spare verified bots except one: CategoryAI blocks AI bots, verified ones included.

The method documented by AWS to let a specific bot through takes two rules. The first loads Bot Control with CategoryAI switched to count:

{
  "Name": "AWS-AWSManagedRulesBotControlRuleSet",
  "Priority": 10,
  "Statement": {
    "ManagedRuleGroupStatement": {
      "VendorName": "AWS",
      "Name": "AWSManagedRulesBotControlRuleSet",
      "ManagedRuleGroupConfigs": [
        { "AWSManagedRulesBotControlRuleSet": { "InspectionLevel": "COMMON" } }
      ],
      "RuleActionOverrides": [
        { "Name": "CategoryAI", "ActionToUse": { "Count": {} } }
      ]
    }
  },
  "OverrideAction": { "None": {} },
  "VisibilityConfig": {
    "SampledRequestsEnabled": true,
    "CloudWatchMetricsEnabled": true,
    "MetricName": "AWS-AWSManagedRulesBotControlRuleSet"
  }
}

The second, placed after it, blocks requests labeled “AI” except those that are both verified and sent by a search crawler you allow:

{
  "Name": "bloquer-robots-ia-sauf-recherche",
  "Priority": 20,
  "Statement": {
    "AndStatement": {
      "Statements": [
        {
          "LabelMatchStatement": {
            "Scope": "LABEL",
            "Key": "awswaf:managed:aws:bot-control:bot:category:ai"
          }
        },
        {
          "NotStatement": {
            "Statement": {
              "AndStatement": {
                "Statements": [
                  {
                    "LabelMatchStatement": {
                      "Scope": "LABEL",
                      "Key": "awswaf:managed:aws:bot-control:bot:verified"
                    }
                  },
                  {
                    "RegexMatchStatement": {
                      "RegexString": "OAI-SearchBot|PerplexityBot|Claude-SearchBot",
                      "FieldToMatch": { "SingleHeader": { "Name": "user-agent" } },
                      "TextTransformations": [{ "Priority": 0, "Type": "NONE" }]
                    }
                  }
                ]
              }
            }
          }
        }
      ]
    }
  },
  "Action": { "Block": {} },
  "VisibilityConfig": {
    "SampledRequestsEnabled": true,
    "CloudWatchMetricsEnabled": true,
    "MetricName": "bloquer-robots-ia-sauf-recherche"
  }
}

Before relying on it, check in the sampled requests that your target crawlers do carry the bot:verified label: the list of verified bots belongs to AWS. For a crawler that lacks it, use an IP set, as in allow PerplexityBot (opens in a new tab).

Two precautions. Bot Control verifies bots from the request's origin address: behind another proxy, the real crawlers become “unverified”. And Bot Control usage is billed on top.

Google Cloud

Versions Google Cloud Armor (Standard and Enterprise tiers) and Google Cloud CLI (gcloud), November 2026.

Cloud Armor applies security policies to load balancers. List the rules and look for those that filter by user agent, by country or by reputation:

gcloud compute security-policies describe POLICY_NAME

To allow a crawler based on its name and its addresses, with a higher priority (smaller number) than the deny rules:

gcloud compute security-policies rules create 900 \
  --security-policy POLICY_NAME \
  --expression "request.headers['user-agent'].contains('OAI-SearchBot') && inIpRange(origin.ip, '192.0.2.0/24')" \
  --action allow \
  --description "OAI-SearchBot verified by address"

Create one rule per address range.

Azure

Versions Azure Front Door Premium WAF and Application Gateway WAF v2, Bot Manager 1.1 rule set, November 2026 Azure portal.

On Azure Front Door Premium (the Standard tier accepts only custom rules) and Application Gateway, the WAF offers a bot protection managed rule set (Bot Manager), which classifies traffic into good bots, bad bots and unknown bots. In the WAF logs, filter on each AI crawler's user agent and note the rule triggered. Fix it by changing that rule's action, or with a higher-priority custom allow rule that combines the User-Agent header with the official ranges.

Fastly

Versions Fastly Delivery (VCL services) and Next-Gen WAF with Bot Management, November 2026.

Two places to check: the service's VCL snippets, which sometimes contain a refusal by user agent, and the Next-Gen WAF with its bot management module, which classifies verified bots by category. To refuse only training crawlers, a recv VCL snippet is enough:

if (req.http.User-Agent ~ "(?i)(GPTBot|ClaudeBot|CCBot|Bytespider)") {
  error 403 "Forbidden";
}

Activate the new service version after the change.

Vercel

Versions Vercel Firewall (Firewall > Rules), all plans, November 2026.

The Vercel Firewall offers two managed rulesets, inactive by default and available on all plans (Firewall > Rules in the project, Bot Management section):

  • AI Bots: set by category. AI Crawlers groups crawlers that collect for training (GPTBot, ClaudeBot, CCBot), AI Assistants those that crawl for search or at a user's request (OAI-SearchBot, PerplexityBot, Claude-SearchBot). Each category is set to Allow, Log or Deny. For “search yes, training no”: AI Crawlers on Deny, AI Assistants on Allow. Check how your crawlers are classified in Vercel's directory: some mixed-use crawlers, such as Applebot, are filed among training crawlers.
  • Bot Protection: in Challenge mode, challenges traffic that does not behave like a browser. Bots in Vercel's verified bots directory are automatically excluded.

Changes take effect after Review Changes > Publish.

For trusted automated traffic that is not in this directory, create a custom rule with the bypass action.

Akamai, Imperva and Sucuri

These three services follow the same logic: a list of known bots, classified by category, with one action per category. Labels vary by plan and version; refer to the vendor's documentation.

  • Akamai (Bot Manager, App & API Protector): note the action applied to the AI bot category and the search engine category; if needed, create a custom category for AI search crawlers, defined by user agent and address ranges.
  • Imperva: check the options for blocking bad bots and challenging suspicious bots; add an exception by address and user agent.
  • Sucuri: check the firewall's access control (blocked user agents and addresses, allowed addresses) and the bot filtering options.

WordPress

Versions WordPress 6.4 to 7.1, all security plugins.

A security plugin is one more application firewall, sitting after the CDN: its settings are covered in check automatic blocking and CAPTCHAs (opens in a new tab). Several managed WordPress hosts add their own AI crawler blocking: check in their dashboard that it distinguishes search from training.

Shared hosting

You do not manage the firewall. If the curl test fails while neither your .htaccess nor your robots.txt refuses the crawler, ask support whether a protection or an optional CDN filters AI crawlers, providing the URL, the time, the user agent and the code received.

Common mistakes

  • Allowing by user agent alone: the rule lets through any script that claims to be OAI-SearchBot.
  • Turning on a global AI crawler block: a single toggle refuses search along with training.
  • Writing an overly broad pattern: contains "Claude" or contains "GPT" catches crawlers you wanted to keep.
  • Placing the exception below the blocking rule: evaluation order decides; the exception must come first.
  • Believing a Skip rule neutralizes Bot Fight Mode: it has no effect on it.
  • Forgetting CategoryAI in AWS WAF: it is the only Bot Control category that also blocks verified bots.
  • Freezing address ranges: without automatic updates, the exception goes stale.
  • Stacking two CDNs without forwarding the real address: the inner layer only sees the proxy's address and no longer recognizes any crawler.

Frequently asked questions

Does Cloudflare block AI crawlers by default?

It depends on when the domain was created and on the plan. Cloudflare states that new domains allow search, agent and training crawlers by default, but an older domain may carry a block enabled at another time. Open the AI crawler and agent access policies in the security settings and review the Search, Agent and Training settings.

Why does AWS WAF block verified AI crawlers?

In AWS WAF's Bot Control rule group, every category spares verified bots except CategoryAI, which blocks all AI bots by default, verified ones included. To let OAI-SearchBot, PerplexityBot or Claude-SearchBot through, switch this rule to count, then add after Bot Control a rule that blocks requests labeled AI, except those from the verified crawlers you allow.

Is an exception based on the user agent enough?

No, an exception based on the user agent alone benefits any script that claims to be OAI-SearchBot or Googlebot. Require both the name and proof of origin: the verified bot status provided by the CDN, such as Cloudflare's cf.client.bot field or AWS WAF's bot:verified label, or an official address range loaded into an automatically updated list.

Updated on

Topic checklist (PDF)

And now?

In the “AI crawler access and data policy” topic

  1. List the AI crawlers you target
  2. Define rules for search, training and user-triggered access
  3. Configure robots.txt to match these goals
  4. Allow OAI-SearchBot if you want ChatGPT visibility
  5. Allow PerplexityBot if you want Perplexity visibility
  6. Allow Claude-SearchBot if you want Claude visibility
  7. Check Googlebot and Bingbot
  8. Check the AI reports available in search engine tools
  9. Check Bing-specific controls
  10. Check CDN, Cloudflare and WAF
  11. Check automatic blocking and CAPTCHAs
  12. Test HTTP responses for each crawler
  13. Check geographic restrictions
  14. Check rate limits
  15. Verify crawler identity against official IP ranges if possible
  16. Analyze AI crawler logs
  17. Check nosnippet, max-snippet and data-nosnippet
  18. Check search engine-specific directives
  19. Make public pages accessible without logging in
  20. Protect private content with authentication
  21. Document the training policy and review it periodically