Check 31.11 · AI crawler access and data policy

Check automatic blocking and CAPTCHAs

Find the JavaScript challenges, CAPTCHAs and automatic bans that stop AI search crawlers, then exempt the verified crawlers you allow.

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

A crawler does not solve a CAPTCHA and does not, as a rule, run the JavaScript of a challenge page. Automatic protections therefore stop AI search crawlers without any rule naming them: anti-bot modes of CDNs (Content Delivery Networks), challenges, fail2ban bans, security plugins, host protections. This check consists of finding these mechanisms layer by layer, then exempting the verified crawlers your policy allows. Expected result: these crawlers receive the page's real content, and the protections stay active for everything else.

Why it matters

Automatic protections do not read your robots.txt. They judge a request on signals: coming from a data center, no cookies, no JavaScript execution, a regular pace, many 404 errors. A crawler ticks all these boxes by design.

Blocking takes four forms, from the most visible to the most insidious:

Form What the crawler receives Difficulty of detection
Refusal 403 code or dropped connection low: visible in the logs
Throttling 429 code after a few requests medium: depends on the pace
Challenge or CAPTCHA 403 or 503 code with a “Checking your browser” page medium: the page body gives it away
Challenge served with a 200 an almost empty page, without your content high: the response code looks correct

The last case is the most costly: the engine believes it has read your page and retains nothing from it. Automatic banning adds another trap: a crawler banned by its IP address disappears from the web server's logs, since its requests are rejected before reaching it.

Googlebot and Bingbot are generally recognized and exempted by these tools. AI search crawlers, being more recent, are less systematically recognized: they are the focus of this check.

What it improves

  • Crawling by generative engines Allowed crawlers read the real content, not a challenge page.
  • Citations in AI answers Indirect effect; access is a prerequisite, not a guarantee.
  • Index quality No more pages recorded as empty because of a challenge served with a 200.
  • Security Exemptions rely on verified identities; protection stays complete against impostors.
  • Diagnosis You know which layer blocks, which shortens every subsequent investigation.

How to check

1. Is the content served to the crawler the real one? Compare the response code and size between a browser and a crawler:

for ua in "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" \
          "Mozilla/5.0 (compatible; OAI-SearchBot/1.4; +https://openai.com/searchbot)" \
          "Mozilla/5.0 (compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)" \
          "Mozilla/5.0 (compatible; Claude-SearchBot/1.0; [email protected])"; do
  curl -s -o /dev/null -w "%{http_code} %{size_download} bytes\n" -A "$ua" https://example.com/
done

Compliant result: the same 200 code and a similar size on all four lines. A much smaller size for a crawler signals a challenge page.

2. Does the response contain a challenge?

curl -s -D - -A "Mozilla/5.0 (compatible; OAI-SearchBot/1.4; +https://openai.com/searchbot)" https://example.com/ \
  | grep -i -E "cf-mitigated|x-amzn-waf-action|captcha|challenge|turnstile|just a moment|access denied"

No line should come out. The cf-mitigated: challenge (Cloudflare) and x-amzn-waf-action (AWS WAF) headers point to a challenge set at the edge.

3. Does the block depend on the pace? Send twenty requests in quick succession and watch for a 429 or a 403:

for i in $(seq 1 20); do
  curl -s -o /dev/null -w "%{http_code} " -A "Mozilla/5.0 (compatible; OAI-SearchBot/1.4; +https://openai.com/searchbot)" https://example.com/
done; echo

4. Are any crawlers banned on the server?

sudo fail2ban-client status
sudo fail2ban-client status nginx-limit-req

Cross-check the banned addresses against the crawlers' official ranges: see verify crawler identity against official IP ranges (opens in a new tab).

Warning: these tests come from your IP address and only imitate the crawler's name. They reveal protections based on the user agent and on the pace. Blocks based on the address or the network's reputation can only be seen in each layer's logs.

How to implement

Before you start

Work from the outside in: CDN, web application firewall (WAF), web server, application. For each layer, three questions: is there an automatic anti-bot mode? Where are its logs? How do you exempt a crawler based on its verified identity?

Prepare the list of official ranges, which serves for every exemption:

{
  curl -s https://openai.com/searchbot.json
  curl -s https://www.perplexity.ai/perplexitybot.json
  curl -s https://claude.com/crawling/bots.json
  curl -s https://developers.google.com/static/crawling/ipranges/common-crawlers.json
  curl -s https://www.bing.com/toolbox/bingbot.json
} | jq -r '.prefixes[] | .ipv4Prefix // .ipv6Prefix' | sort -u > robots-recherche.txt

Schedule its weekly regeneration. Anthropic's list is shared by its three crawlers: exemption from a ban is not an authorization; robots.txt still says which one may crawl.

Keep challenges where they protect something: login, sign-up, forms, cart, internal search. A public content page does not need one.

Cloudflare

Versions Cloudflare dashboard (current Security navigation), all plans, November 2026. Super Bot Fight Mode: Pro plans and above.

All settings are in Security > Settings, Bot traffic filter, unless stated otherwise.

Bot Fight Mode (Free plan). It challenges traffic that looks like known bots and can be neither adjusted nor bypassed by a custom rule or a Page Rule. The only documented exception: it does not trigger if an IP access rule matches the request first. Two ways out if a crawler you allow is being challenged:

  • turn Bot Fight Mode off;
  • or create IP Access Rules (in Security > Security rules, Create rule > IP access rules) in allow mode for the crawler's official ranges.

Super Bot Fight Mode (Pro plans and above). Set each group: Definitely automated to Block or Managed Challenge, Verified bots to Allow. Leave Static resource protection off if crawlers need to load your CSS and JavaScript files. Unlike Bot Fight Mode, it accepts exceptions: create a custom rule placed at the top.

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

Skip action, All Super Bot Fight Mode rules option, plus All rate limiting rules and All managed rules if those protections also come into play.

“I'm Under Attack” mode. It presents a JavaScript challenge to every visitor. Reserve it for ongoing attacks and turn it off afterwards; for a specific area, prefer a rule limited to a path.

Challenges in your custom rules. Any rule whose action is Managed Challenge, JS Challenge or Interactive Challenge must exclude verified bots and be limited to sensitive paths:

(starts_with(http.request.uri.path, "/connexion") and not cf.client.bot)

Turnstile. Cloudflare's CAPTCHA widget goes on a form, not on a content page.

Diagnosis. In the security events, filter on the crawler's user agent. The service field shows which protection acted (Bot Fight Mode, custom rule, managed rule, rate limiting): it tells you which setting to change.

AWS

Versions AWS WAF with the Bot Control managed rule group (common and targeted levels), November 2026 console.

In AWS WAF, three mechanisms produce automatic challenges or blocks.

  • Bot Control, targeted level. Rules prefixed TGT_ apply the Challenge or CAPTCHA actions to clients without a valid token or with abnormal behavior (TGT_VolumetricIpTokenAbsent, TGT_VolumetricSession, TGT_SignalAutomatedBrowser). They inspect requests that do not come from verified bots: an AI crawler not recognized as verified is subject to them.
  • Bot Control, common level. SignalNonBrowserUserAgent and SignalKnownBotDataCenter block unverified clients whose user agent is not a browser's or that come from a known data center.
  • Your own rules with the CAPTCHA or Challenge action, and rate-based rules.

Fix: identify the rule at fault in the logs (terminatingRule field) or in the sampled requests in the AWS WAF console, switch it to Count, then add after Bot Control a rule that restores the original action except for allowed crawlers. The full JSON template is in check CDN, Cloudflare and WAF (opens in a new tab). Limit CAPTCHA actions to specific paths with a condition on the URI.

Nginx

Versions Nginx 1.18 and later, including 1.30 (stable) and 1.31 (mainline).

Three protections are common: limit_req, limit_conn and cookie-based challenge modules. Exempt crawlers whose name and address match:

sed 's/$/ 1;/' robots-recherche.txt | sudo tee /etc/nginx/snippets/robots-recherche-ips.conf
# http context
geo $robot_recherche_ip {
    default 0;
    include /etc/nginx/snippets/robots-recherche-ips.conf;
}

map $http_user_agent $robot_recherche_ua {
    default 0;
    "~*(OAI-SearchBot|PerplexityBot|Claude-SearchBot|Googlebot|bingbot)" 1;
}

map "$robot_recherche_ip$robot_recherche_ua" $limit_key {
    default $binary_remote_addr;
    "11" "";
}

limit_req_zone $limit_key zone=parip:10m rate=5r/s;
limit_req_status 429;

An empty key is not counted. limit_req_status 429 replaces the default 503: a crawler understands a 429 better. Test and reload:

sudo nginx -t && sudo systemctl reload nginx

Apache

Versions Apache 2.4, mod_evasive module from the libapache2-mod-evasive package (Debian, Ubuntu).

mod_evasive temporarily bans an address that exceeds a request threshold. Add the crawlers to its whitelist in /etc/apache2/mods-available/evasive.conf; the directive accepts wildcards, not CIDR notation:

<IfModule mod_evasive20.c>
    DOSWhitelist 192.0.2.*
    DOSWhitelist 198.51.100.*
</IfModule>
sudo apachectl configtest && sudo systemctl reload apache2

ModSecurity

The OWASP CRS ruleset contains rules that detect bots by user agent. Look for triggers in the audit log:

sudo grep -i -E "OAI-SearchBot|PerplexityBot|Claude-SearchBot" /var/log/apache2/modsec_audit.log | head

To disable the rule at fault (here scanner detection, ID 913100) only when the name and the address match, add before the CRS include:

SecRule REQUEST_HEADERS:User-Agent "@rx (?:OAI-SearchBot|PerplexityBot|Claude-SearchBot)" \
    "id:1000310,phase:1,pass,nolog,chain"
    SecRule REMOTE_ADDR "@ipMatchFromFile /etc/modsecurity/robots-recherche.txt" \
        "ctl:ruleRemoveById=913100"

Copy robots-recherche.txt to /etc/modsecurity/ and replace 913100 with the ID found in your log.

Fail2ban and CrowdSec

Fail2ban bans at the firewall the addresses spotted in the logs. Declare the crawlers' ranges as addresses to ignore, in /etc/fail2ban/jail.local:

[DEFAULT]
ignoreip = 127.0.0.1/8 ::1 192.0.2.0/24 198.51.100.0/24

To produce the list on one line: tr '\n' ' ' < robots-recherche.txt. Also review the filters that ban by user agent (/etc/fail2ban/filter.d/apache-badbots.conf and your custom filters) and remove the allowed crawlers from them. Then:

sudo fail2ban-client reload
sudo fail2ban-client set nginx-limit-req unbanip 192.0.2.15

CrowdSec applies ban or CAPTCHA decisions. List them with sudo cscli decisions list, then create a whitelist:

# /etc/crowdsec/parsers/s02-enrich/robots-recherche.yaml
name: example/robots-recherche
description: "Do not sanction verified search crawlers"
whitelist:
  reason: "verified search crawlers"
  cidr:
    - "192.0.2.0/24"
    - "198.51.100.0/24"
sudo systemctl reload crowdsec

Plesk

Versions Plesk Obsidian 18.0 for Linux.

Two protections are built into Plesk for Linux, in Tools & Settings:

  • Web Application Firewall (ModSecurity): check the mode (detection only or on) and the ruleset. The audit log gives the ID of the rule triggered, which you can disable per domain in Websites & Domains > Web Application Firewall.
  • IP Address Banning (Fail2Ban): the Banned IP Addresses tab lists bans; the Trusted IP Addresses tab takes the crawlers' ranges. In the Jails tab, look in particular at the jail that targets Apache “bad bots”.

cPanel

Versions cPanel & WHM 110 and later (Jupiter theme); Imunify360 in the version installed by the host.

  • ModSecurity: Security > ModSecurity lets you turn it off per domain for a test; tuning the rules is up to the host.
  • Imunify360, installed by many hosts: it challenges visitors deemed suspicious and can throttle AI crawlers. The server administrator has an IP whitelist; on a shared account, go through support.

Shared hosting

Hosts add their own protections, often on by default and poorly documented: the control panel's security tool (Tiger Protect at o2switch), a web application firewall that can be enabled per site at OVHcloud, anti-bot protections built into WordPress plans. Three reflexes:

  1. Look in the control panel for a bot protection setting and read the list of what it blocks.
  2. Run the test from the “How to check” section before and after turning it off for a few minutes.
  3. If the block persists, write to support with the URL, the date and time, the user agent, the code received and the link to the crawler's official documentation. Ask for an exemption for verified search crawlers, not for the protection to be turned off.

WordPress

Versions WordPress 6.4 to 7.1; Wordfence 9.x (current version in November 2026).

Wordfence. In Wordfence > Firewall > All Firewall Options:

  • Rate Limiting: the thresholds applied to crawlers (page views per minute, 404 errors per minute) and the associated action, throttle or block. Prefer throttling and raise thresholds that are too low. The option dedicated to Google's crawlers must exempt verified Google crawlers; no equivalent exists for AI search crawlers.
  • Allowlisted IP addresses: add the official ranges of the allowed crawlers.
  • Firewall > Blocking: delete the blocks by user agent pattern that target these crawlers.
  • Tools > Live Traffic: filter on the crawler's name to see blocked requests and the reason shown.

Other security plugins. Look for the same features: “bad bot” list, blocking of fake search engine crawlers, protection against repeated 404s, challenge presented to visitors without cookies.

CAPTCHAs. Limit them to forms (login, comments, contact). A plugin that requires a check before showing the site makes it unreadable for every crawler.

Holding pages. Maintenance mode, a “coming soon” page, a blocking consent wall or a full-page age check serve the same screen to crawlers. See make public pages accessible without logging in (opens in a new tab).

Shopify

Versions Shopify, all plans, November 2026 admin.

Bot protection is managed by the platform and cannot be configured. Just check that the store is no longer password-protected and that no age verification or geo-blocking app shows an interstitial screen. Same check on Wix, Squarespace and Webflow.

Common mistakes

  • Trusting the 200 code: a challenge page can be served with this code. Compare the size and the content.
  • Turning off all protection: the goal is a targeted exemption for verified crawlers.
  • Exempting by user agent alone: you hand a free pass to any script that spoofs the name.
  • Looking for the banned crawler in the web server's logs: fail2ban rejects it upstream; look at the list of bans.
  • Forgetting a layer: CDN, firewall, server, plugin and host stack their protections; fixing the first one is not enough.
  • Leaving “I'm Under Attack” mode on after the attack: it challenges every visitor, crawlers included.
  • Putting a CAPTCHA on content pages: no crawler gets past it.
  • Not retesting after an update: a new version of a ruleset or a plugin can bring a block back.

Frequently asked questions

Can AI crawlers get past a CAPTCHA?

No, a crawler does not solve a CAPTCHA and does not, as a rule, run the JavaScript of a challenge page. Faced with a check, it leaves without your content, sometimes believing it has read the page when the challenge is served with a 200 code. So reserve CAPTCHAs and challenges for forms and sensitive paths, and exempt the verified crawlers your policy allows.

Does Cloudflare's Bot Fight Mode block AI crawlers?

Bot Fight Mode on Cloudflare's Free plan can challenge AI search crawlers, and it can be neither adjusted nor bypassed by a custom rule. The only documented exception is an IP access rule in allow mode for the crawler's official ranges. Otherwise, turn it off, or switch to Super Bot Fight Mode on the paid plans, which accepts exceptions.

Can fail2ban ban Googlebot or AI crawlers?

Yes, fail2ban bans at the firewall any address that triggers too many errors or matches a “bad bot” filter, including those of legitimate crawlers that crawl in bursts. A banned crawler then disappears from the web server's logs, since its requests are rejected before reaching it. Declare the official ranges of allowed crawlers in ignoreip and review the filters that ban by user agent.

How do I find out which protection is blocking a crawler?

Work layer by layer, from the outside in: CDN, web application firewall, web server, application, host. In Cloudflare, security events show the service that acted; in AWS WAF, the terminatingRule field in the logs names the rule; on the server, fail2ban lists its bans and ModSecurity writes the rule ID to its audit log.

Resources

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