Unblocking OAI-SearchBot, GPTBot & ClaudeBot in Cloudflare and robots.txt
Thousands of SaaS companies, e-commerce stores, and publishers wonder why their brand never appears in ChatGPT Search or Perplexity — unaware that Cloudflare Bot Fight Mode, managed WAF rules, or overbroad robots.txt snippets are returning HTTP 403 Forbidden or JavaScript CAPTCHA walls to legitimate AI search-citation crawlers. Separating live search-indexing bots from bulk corpus-training scrapers restores high-converting referral traffic immediately.
The silent revenue leak: Cloudflare 403 blocks overriding robots.txt
Many engineering teams check https://yourdomain.com/robots.txt in a desktop browser, see User-agent: * Allow: /, and assume ChatGPT Search and Perplexity can index their website. In reality, edge security layers execute before robots.txt is ever read. When Cloudflare's 'Block AI Bots' toggle, Super Bot Fight Mode ('Definitely Automated' -> Block/Managed Challenge), or AWS CloudFront Bot Control is enabled with aggressive defaults, headless HTTP GET requests from cloud data-center ASNs hit an immediate HTTP 403 or Turnstile challenge.
Unlike human browsers, OAI-SearchBot, ChatGPT-User, PerplexityBot, and Claude-SearchBot cannot solve interactive Turnstile CAPTCHAs or execute client-side proof-of-work scripts. If an edge firewall challenges their fetch of /robots.txt, /llms.txt, or your pricing page, the crawler marks your host unreachable and cites competing vendors whose pages return clean HTTP 200 status codes.
Distinguishing AI Search-Citation bots from Foundation-Model Training bots
Every major AI lab now separates real-time search attribution from foundation-model pre-training. OpenAI operates three distinct user agents documented with published IP CIDR ranges (openai.com/searchbot.json, chatgpt-user.json, gptbot.json): OAI-SearchBot indexes pages specifically to surface clickable source links inside ChatGPT Search; ChatGPT-User fetches live URLs when a user asks ChatGPT about your product in real time; and GPTBot crawls public text for training future generative models.
Anthropic and Perplexity follow a parallel split: Claude-SearchBot and Claude-User power live search citations and user-directed lookups, whereas ClaudeBot gathers training data; PerplexityBot indexes pages for footnoted answer cards. By whitelisting search-citation and user-lookup tokens while optionally restricting pure training crawlers (GPTBot, ClaudeBot, CCBot, Bytespider), legal and growth teams protect proprietary archives without sacrificing a single buyer referral.
# 1) Cloudflare Security > WAF > Custom Rules (Place above Bot/Rate-Limit blocks)
# Expression (Edit Expression):
(cf.client.bot and http.user_agent contains "OAI-SearchBot") or
(http.user_agent contains "ChatGPT-User") or
(http.user_agent contains "PerplexityBot") or
(http.user_agent contains "Claude-SearchBot") or
(cf.client.bot and http.user_agent contains "Googlebot") or
(cf.client.bot and http.user_agent contains "Bingbot")
# Action: Skip -> All remaining custom rules, Super Bot Fight Mode & Managed Challenges
# 2) Clean /robots.txt (Allow Search Citations; Optionally Restrict Training Corpus)
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: GPTBot
Disallow: /private/
User-agent: CCBot
Disallow: /
Sitemap: https://yourdomain.com/sitemap.xml
Scan Your Website Live for /llms.txt, AI Crawlers, JSON-LD & ADA/GDPR
Enter any Shopify, WordPress, Webflow, SaaS, clinic, or corporate URL below to run a free live audit — then unlock custom pre-built llms.txt, robots.txt, Schema.org JSON-LD + printable 8-Point Compliance PDF for $19.00 USD one-time (Cakto Global USD • No Subscription).
Auditing Cloudflare Security Events & Managed robots.txt injection
Log into your Cloudflare dashboard, select your zone, and check two hidden settings that routinely trip up webmasters in 2026. First, navigate to Security > Bots (or AI Audit) and inspect whether 'Block AI Scrapers and Crawlers' was toggled on during a past security review — and check whether Cloudflare's 'Managed robots.txt' feature is prepending Disallow: / blocks for AI agents on top of your origin robots.txt file!
Second, open Security > Events and filter by Path equals /robots.txt or /llms.txt, or User-Agent contains OAI-SearchBot / PerplexityBot over the past 72 hours. If you spot Action: Managed Challenge or Block triggered by Bot Fight Mode, move to a Pro/Business WAF Skip rule or disable overly broad AI-block toggles while keeping path-specific rate limiting strictly on /login, /api/, and /wp-login.php.
Avoiding IP spoofing risks when whitelisting crawlers
Security engineers rightly ask whether whitelisting a User-Agent string alone invites spoofed scrapers. Whenever your WAF plan supports it, pair User-Agent matching with Cloudflare's verified bot directory flag (cf.client.bot), HTTP Message Signatures (RFC 9421 cryptographic bot authentication supported by Cloudflare and OpenAI), or automated synchronization against official published IP ranges (openai.com/searchbot.json and perplexity.ai published ranges).
Ensure your origin server also avoids redirect chains (such as http://domain.com -> https://www.domain.com -> https://domain.com/) on /robots.txt and /llms.txt. Serving both files in a single HTTP 200 hop under 300 ms with UTF-8 encoding guarantees uninterrupted ingestion.
Test your live domain for AI crawler blocks & missing /llms.txt now
Stop guessing how external crawlers experience your perimeter firewall. Run a live external scan on /en/ right now: our diagnostic fetches your domain externally to check HTTP status codes, live /robots.txt AI rules, /llms.txt availability, Schema.org JSON-LD, and security/ADA compliance posture in 5 seconds.
Unlock the complete $19.00 USD one-time remediation package via Cakto Global USD to download a conflict-free, production-ready robots.txt, custom /llms.txt manifest, Organization/WebSite JSON-LD snippet, and printable 8-point technical audit PDF.
Technical Reference & Compliance Matrix
| Crawler User-Agent | Operator | Primary Ecosystem Role | Verification Method | Recommended Commercial Rule |
|---|---|---|---|---|
| OAI-SearchBot | OpenAI | ChatGPT Search live source links & citations | openai.com/searchbot.json + RFC 9421 | Allow: / + WAF Skip Challenge |
| ChatGPT-User | OpenAI | Real-time URL lookup requested in ChatGPT | openai.com/chatgpt-user.json | Allow: / + WAF Skip Challenge |
| PerplexityBot | Perplexity AI | Footnoted real-time answer citations | Published Perplexity IP JSON | Allow: / + WAF Skip Challenge |
| Claude-SearchBot | Anthropic | Claude web search & cited responses | Anthropic crawler documentation | Allow: / + WAF Skip Challenge |
| GPTBot / ClaudeBot | OpenAI / Anthropic | Foundation model pre-training corpus | Published IP CIDR lists | Allow or Disallow per IP policy |
| Bytespider / CCBot | ByteDance / CommonCrawl | High-volume unattributed scraping | ASN / User-Agent inspection | Disallow: / or Rate-Limit |
Primary specification references: Schema.org Structured Data • W3C WCAG 2.2 Recommendation • llmstxt.org Specification.
Get All 3 Custom Files Pre-Built for Your Domain + Printable ADA/GDPR PDF
Run our free live scanner at /en/ to detect exact gaps, then unlock ready-to-upload llms.txt, AI-friendly robots.txt, validated Schema.org JSON-LD, and an executive 8-point PDF report in one click via Cakto Global USD ($19.00 one-time) — or grab our free printable 18-point PDF checklist.
Frequently Asked Questions
Cloudflare offers a 'Managed robots.txt' toggle inside the AI Audit / Scrape Shield settings that dynamically injects Disallow rules for AI bots at the edge even if your origin server file says Allow: /. Disable Managed robots.txt if you want custom control.
No. OpenAI explicitly separates OAI-SearchBot (search indexing with clickable attribution links back to your site) from GPTBot (model training). You can allow OAI-SearchBot while disallowing GPTBot.
Yes — enormously. ChatGPT Search combines OpenAI's own OAI-SearchBot index with Microsoft Bing search infrastructure, so blocking or throttling Bingbot directly degrades ChatGPT Search discovery.
Scan your domain on /en/ in 5 seconds and unlock all three custom-generated files (robots.txt, llms.txt, and JSON-LD) plus a printable compliance report for $19.00 USD one-time.