robots.txt for AI Crawlers: Which Bots to Allow (and Which You Can Block)
Copy-paste robots.txt configuration that allows AI search & citation bots (OAI-SearchBot, PerplexityBot, Claude-SearchBot) while optionally blocking training scrapers.
Not all AI bots do the same job. Some crawl the web to train future foundation models; others crawl the web to cite and link to businesses in live search answers.
If your goal is to generate leads and sales from AI search, blocking search bots in robots.txt cuts off your own visibility.
Search bots vs. training bots
| User-Agent | Operator | Role | Recommendation for businesses |
|---|---|---|---|
OAI-SearchBot |
OpenAI | ChatGPT Search results & citations | Allow |
ChatGPT-User |
OpenAI | Live user-triggered page fetches in ChatGPT | Allow |
PerplexityBot |
Perplexity | Perplexity search answers & citations | Allow |
Claude-SearchBot |
Anthropic | Claude web search citations | Allow |
Bingbot |
Microsoft | Bing index (also feeds ChatGPT & Copilot) | Allow |
Googlebot |
Google Search & AI Overviews | Allow | |
GPTBot |
OpenAI | Model training corpus | Optional (Allow for maximum brand recall) |
ClaudeBot |
Anthropic | Model training corpus | Optional |
Google-Extended |
Gemini training opt-out control | Optional | |
CCBot |
Common Crawl | Open training dataset | Safe to block if desired |
Copy-paste robots.txt for maximum AI search visibility
User-agent: *
Allow: /
# Explicitly allow AI search & citation crawlers
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: Bingbot
Allow: /
Sitemap: https://yourdomain.com/sitemap.xml
Watch out for Cloudflare and WAF "Block AI Bots" toggles
Even when your robots.txt file allows OAI-SearchBot and PerplexityBot, some CDN and firewall dashboards include a one-click "Block AI Scrapers" toggle that challenges or drops requests from all AI user agents at the edge. After updating your robots.txt, verify in your firewall logs that OAI-SearchBot, PerplexityBot, and Bingbot receive HTTP 200 responses rather than 403 or CAPTCHA challenges.
Test your live robots.txt right now with our AI Crawler Checker.