Why robots.txt and your WAF disagree on AI crawlers
Across 167 sites scanned on CrawlWise 0.4.35, 23 allowed AI bots in robots.txt while the edge blocked them. Causes, log checks and WAF fixes.
Published · 4 min read
Marketing and SEO teams edit robots.txt to allow OAI-SearchBot, ChatGPT-User and PerplexityBot so their site appears in AI search answers. Meanwhile the CDN or WAF in front of the origin runs a managed bot rule or rate limit that returns HTTP 403, 429 or a JavaScript challenge to those same user agents.
On 25 November 2026 we ran CrawlWise checkset 0.4.35 across four cohorts totaling 240 homepages: Forbes Cloud 100, Global E-commerce 100, Poland E-commerce 20 and Poland B2B SaaS 20. Out of 167 scored homepages (64 more were blocked outright before checks finished), 23 triggered agent.ai-policy-consistency warnings. All 23 conflicts had the same code (robots_allows_but_edge_blocks), where robots.txt permitted the crawler while the HTTP response blocked or challenged it.
How often the mismatch shows up across four cohorts
Our agent.ai-policy-consistency check compares six layers: robots.txt rules, Content-Signal and Content-Usage directives, tdm-reservation headers or /.well-known/tdmrep.json, noai and noindex directives, and the live HTTP status returned to six AI user agents (OAI-SearchBot, ChatGPT-User, PerplexityBot, Claude-User, GPTBot and ClaudeBot). Across all 167 scored sites, zero sites triggered declaration-vs-declaration conflicts such as noindex paired with search=yes. All 23 warnings came from the gap between robots.txt and the edge.
Cohort (checkset 0.4.35, 25 Nov 2026) |
Scored / blocked | agent.ai-policy-consistency warn |
Share of scored | Most frequently edge-blocked bots |
|---|---|---|---|---|
| Forbes Cloud 100 | 84 / 15 | 3 | 3.6% | PerplexityBot (3), GPTBot (3), ClaudeBot (3) |
| Poland B2B SaaS 20 | 18 / 2 | 2 | 11.1% | Claude-User (1), ClaudeBot (1) |
| Global E-commerce 100 | 55 / 37 | 13 | 23.6% | OAI-SearchBot (13), ChatGPT-User (13), PerplexityBot (13), GPTBot (13) |
| Poland E-commerce 20 | 10 / 10 | 5 | 50.0% | ClaudeBot (5), PerplexityBot (4), OAI-SearchBot (3), ChatGPT-User (3) |
| Combined (4 cohorts) | 167 / 64 | 23 | 13.8% | 23 of 23 are robots_allows_but_edge_blocks |
E-commerce sites hit this mismatch far more often than SaaS sites. Half of the scored Polish online stores and nearly a quarter of the scored global e-commerce sites had an open robots.txt paired with an edge block on at least one AI user agent.
Two reasons an edge blocks an allowed user agent
Before changing any firewall rule, separate two causes. CrawlWise sends AI User-Agent probes from our own scanner IP rather than from OpenAI, Anthropic or Perplexity IP ranges, so a 403, 429 or challenge page can mean one of two things.
1. Anti-spoofing verification (usually intentional)
Cloudflare, Akamai and Fastly maintain verified-bot lists backed by published IP ranges and reverse DNS. If your WAF checks whether a request claiming to be OAI-SearchBot comes from OpenAI’s published IPs and rejects spoofed requests with HTTP 403, a probe from a third-party scanner gets blocked while the real crawler gets HTTP 200. That setup works as intended as long as your server logs confirm real verified crawlers receive 200.
2. Broad WAF or bot-fight rules (usually accidental)
The common problem on retail and content sites is a blanket toggle such as Cloudflare’s “Block AI Scrapers and Crawlers”, a legacy custom WAF expression blocking any User-Agent containing Bot, or an aggressive per-ASN rate limit returning HTTP 429 to Claude-User or PerplexityBot while robots.txt stays at Allow: /. When SEO owns robots.txt in Git or the CMS and infrastructure owns the WAF dashboard, neither team sees the contradiction.
How to verify which one is happening on your domain
- Run your domain through the AI crawler checker to compare
robots.txtrules against the HTTP status returned for all six AI user agents, and validate syntax in the robots.txt checker. - Filter the last 7 days of CDN or origin logs by
OAI-SearchBot,ChatGPT-User,PerplexityBot,Claude-User,GPTBotandClaudeBot. Check the HTTP status codes served to verified bot IPs. If verifiedOAI-SearchBothits get 403, 429 or Managed Challenge, the block is accidental. - Separate search and citation bots (
OAI-SearchBot,ChatGPT-User,PerplexityBot,Claude-User) from training crawlers (GPTBot,ClaudeBot,CCBot) inrobots.txt(see our AI crawlers and robots.txt guide) and mirror that exact split in your WAF custom rules (see our Cloudflare AI crawlers guide). - On Cloudflare, place an explicit allow rule above blanket scraping blocks using
cf.verified_bot_categoryor exact verified bot IDs, so legitimate search bots pass while unverified spoofing still gets stopped.
After updating your WAF rules, run the AI crawler checker again and recheck 24 hours of verified-bot logs to confirm both layers agree.
Check your own site
Run a free 25-page preview of the whole-site audit. No account needed.
More from the blog
Last updated .