Skip to main content
All Engineering Playbooks/Playbook 03 · Edge Access & WAF Security·Verified 2026-12-05·8 min read

Allowing OAI-SearchBot & ClaudeBot Without Exposing Training Data (robots.txt + Cloudflare WAF)

Answer-First Summary Verdict

Never toggle blanket "Block All AI Scrapers" rules in your CDN if you want ChatGPT Search or Perplexity citations. Separate live retrieval crawlers (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, PerplexityBot: Allow /) from training crawlers (GPTBot, Google-Extended, CCBot, Bytespider) in robots.txt, and verify real HTTP 200 delivery at the edge.

Live search retrieval bots vs. pre-training corpus crawlers explained cleanly

Model labs deliberately publish separate HTTP User-Agent tokens for foundation-model training scrapes versus real-time user-facing web search. Confusing the two costs publishers either complete invisibility inside AI answers or unwanted exposure of proprietary databases.

Blocking OAI-SearchBot or ChatGPT-User immediately cuts off real-time link snippets, pricing updates, and product page citations inside ChatGPT Search. Conversely, blocking GPTBot or Google-Extended signals an opt-out from pre-training weight updates without stripping live link inclusion from ChatGPT Search or Google AI Overviews.

Under RFC 9309, crawlers do not evaluate robots.txt sequentially top-to-bottom: they pick the single most specific matching User-agent block (falling back to `*` only if no explicit rule matches) and evaluate competing Allow vs Disallow prefixes by longest character match. A subtle bug appears frequently when developers declare `Disallow: /` inside `User-agent: GPTBot` while forgetting that an overly broad `User-agent: *` block containing `Disallow: /tools/*?*` or omitting explicit `Allow: /press` paths can silently block static assets needed for rich page verification.

Remember too that ChatGPT Web Search pulls grounding candidates heavily from the Bing search index in addition to direct OAI-SearchBot fetches. Ensuring Bingbot enjoys clean HTTP 200 crawling alongside IndexNow instant notifications directly accelerates freshness inside ChatGPT citations.

When auditing Cloudflare Managed Rules or CDN WAF exceptions across tool directories, verify static delivery of every /press screenshot, CSS chunk, and JSON-LD FAQ endpoint under simulated crawler headers. Even if your /robots.txt passes static linting cleanly, accidental WAF rate-limit blocks or JavaScript Turnstile interstitials targeting automated datacenter IPs quietly eliminate search snippet extraction and ChatGPT referral traffic until explicitly whitelisted.

  • Inspect longest-prefix character lengths when combining Allow and Disallow paths inside a single crawler group.
  • Never disallow CSS, JS chunks (`/_next/`), or official `/press/` UI screenshots required by search renderers.
  • Keep private workspaces (`/app/`, `/auth/`, `/v1/`, `/t/`) explicitly disallowed so crawl budget targets evergreen public URLs.
  • Pair clean robots.txt syntax with live first-party edge logs (`/t/edge`) to verify real HTTP 200 delivery continuously.

Policy matrix across 12 major AI search, assistant & training bots

Use this reference table when deciding which User-Agent tokens to allow openly versus rate-limit or disallow:

12 Key Crawlers Categorized by GEO Search Value vs Training Intent
Bot User-AgentOperatorPrimary RoleRecommended GEO Policy
OAI-SearchBotOpenAIChatGPT Search index & citationsAllow: / (critical for ChatGPT Search links)
ChatGPT-UserOpenAILive on-demand browsing fetchesAllow: / (powers live link verification)
Claude-SearchBot / ClaudeBotAnthropicClaude web search & citationsAllow: / on public docs, tools & pricing
PerplexityBotPerplexityReal-time answer citationsAllow: / on public articles & tools
Googlebot & BingbotGoogle / MicrosoftSearch, AI Overviews & Bing RAGAllow: / (Bing feeds ChatGPT Web index)
GPTBotOpenAIFoundation model pre-training corpusAllow for max reach, or Disallow to opt out of training
Google-ExtendedGoogleGemini training opt-out controlOptional Disallow; never hurts Google Search/AIO
CCBot / BytespiderCommon Crawl / ByteDanceOpen crawl archives & training scrapesOptional Disallow if origin bandwidth constrained

The hidden Cloudflare WAF trap: why clean robots.txt still results in HTTP 403

Dozens of SaaS teams celebrate clean robots.txt syntax while receiving zero ChatGPT citations because Cloudflare’s security dashboard ("Block AI Scrapers and Crawlers", Super Bot Fight Mode, or managed Turnstile rules for datacenter ASNs) intercepts automated TLS fingerprints at layer 7 before requests ever reach robots.txt or origin workers.

Inside Cloudflare Security -> WAF -> Custom Rules, inspect Firewall Events filtering by status code 403 and User-Agent substrings matching OAI-SearchBot, ClaudeBot, PerplexityBot, and Bingbot. When Verified Bots (cf.client.bot) or official OpenAI/Anthropic IP ranges trigger Managed Challenges, add a tightly scoped Skip rule strictly for verified search retrieval traffic rather than disabling brute-force protection across login endpoints.

Similarly, inspect origin Nginx or reverse-proxy limit_req_zone rules across API and documentation gateways. Because Bingbot, OAI-SearchBot, and sitemap GEO auditors fetch pages concurrently across shared proxy ASNs, aggressive 5 requests-per-minute limits placed unintentionally on public HTML paths return HTTP 429 retries right when you publish fresh tools via IndexNow. Keep strict per-IP throttling targeted strictly at heavy POST audit endpoints (/v1/public/geo-audit, /v1/public/schema-check, /auth/login) while serving static HTML, /llms.txt, /llms-full.txt, /press, and /robots.txt cleanly from public edge caches with generous burst headroom.

Finally, integrate /robots-txt-ai-checker verification directly into post-deploy smoke checks whenever launching new documentation paths or switching DNS proxies so accidental wildcard Disallow rules never blindside AI search visibility.

Always validate both policy intent and live origin reachability. Below is a copy-ready RFC-clean robots.txt policy allowing live AI search engines openly while disallowing private workspace endpoints:

  • Test real HTTP responses using OpenAI search UA strings (`curl -A "OAI-SearchBot/1.0" -sI ...`) after every Cloudflare security policy update.
  • Ensure Nginx reverse proxies trust `CF-Connecting-IP` properly before applying rate-limiting zones to public tool routes.
  • Re-run `/robots-txt-ai-checker` whenever switching domain proxies, launching new `/guides` directories, or editing Next.js `robots.ts`.
Copy-Ready robots.txt Separating AI Search vs Private App Routes
User-agent: OAI-SearchBot
Allow: /
Disallow: /app/
Disallow: /v1/

User-agent: ChatGPT-User
Allow: /
Disallow: /app/

User-agent: ClaudeBot
Allow: /
Disallow: /app/

User-agent: PerplexityBot
Allow: /
Disallow: /app/

# Optional pre-training opt-out while keeping ChatGPT Search & Google AIO live:
User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: *
Allow: /
Disallow: /app/
Disallow: /v1/
Disallow: /t/

Sitemap: https://yourdomain.com/sitemap.xml

Worked CDN + edge telemetry verification sequence

Verify your live domain allows retrieval bots cleanly end-to-end across robots.txt and Cloudflare edge Workers:

  1. 1. Paste your domain into /robots-txt-ai-checker to confirm Search Bots Allowed reads 7/7 and zero broad wildcard Disallow leaks exist.
  2. 2. Inspect Cloudflare Security -> Bots & Events for HTTP 403 Managed Challenge drops matching OAI-SearchBot or PerplexityBot user agents and create an explicit Verified Search Bots skip rule if needed.
  3. 3. Attach lightweight Cloudflare Worker ctx.waitUntil reporting to /t/edge so PrismUV logs live HTTP 200 AI crawl bursts after each publish.

Honest crawler compliance & spoofed UA boundaries

  • robots.txt relies on voluntary compliance from verified search labs (OpenAI, Anthropic, Perplexity, Google, Bing); unauthorized scrapers routinely spoof Chrome user agents instead of announcing GPTBot.
  • Use PrismUV 3-layer IVT AdGuard (/t/v) rather than robots.txt alone to shield AdSense slots and funnels against spoofed headless Chromium farms running from cloud ASNs.
  • Verify official ASN/signed-bot documentation when configuring strict CDN allowlists so benign reverse DNS lookups never fail unexpectedly.

5-second AI user-agent edge response check

Confirm your origin returns HTTP 200 rather than a 403 challenge when requested as OAI-SearchBot and inspect robots.txt:

curl -A "OAI-SearchBot/1.0" -sI https://prismuv.com/llms.txt | head -n 5 && curl -s https://prismuv.com/robots.txt | head -n 20

Technical FAQ

Will blocking GPTBot hurt my Google Search or ChatGPT Search rankings?

No. GPTBot controls OpenAI foundation model training data collection, whereas OAI-SearchBot and Bingbot drive live ChatGPT Web Search retrieval.

Does Disallow: /t/ or /_t/ inside robots.txt affect analytics telemetry?

Not at all. Human browsers executing JavaScript never check robots.txt before firing POST telemetry events, whereas blocking crawlers from telemetry endpoints saves crawl budget.

Why should /_next/ and /press/ stay allowed for bots?

Rendering bots and image crawlers inspect screenshots linked in ImageObject schemas under /press/ and public styles; blocking static folders risks partial renders.

Should I set a Crawl-delay directive for AI search bots?

Avoid setting Crawl-delay on OAI-SearchBot or ClaudeBot unless uncached origin endpoints suffer CPU exhaustion; enabling s-maxage=86400 edge caching keeps origin load near zero.

Can PrismUV detect when a scraper pretends to be Googlebot or Chrome?

Yes. PrismUV scores runtime WebDriver signals, behavioral mouse/scroll entropy, and datacenter ASNs separately from declared robots.txt user agents.

Where do I test my live robots.txt across all 12 AI bots right now?

Run a zero-signup check at /robots-txt-ai-checker to fetch your live file and preview a clean Split Policy template immediately.

Continue Reading