Crawlers & control files
AI Bot Blocking
Using robots.txt and server rules to decide which AI crawlers may fetch your site.
AI bot blocking is the practice of using robots.txt directives and server-level rules to stop specific AI crawlers from fetching your pages. Done precisely, it lets you keep training crawlers out while allowing the retrieval crawlers that earn citations. Done bluntly, it removes you from AI answers entirely.
The frequent mistake is a blanket disallow that catches the search and retrieval bots along with the training ones, which quietly erases a brand from ChatGPT, Perplexity and AI-Overview citations. Verify that your CDN or firewall rules agree with robots.txt, since an aggressive bot-management setting can block retrieval crawlers even when robots.txt allows them.
The recommended default for most B2B sites is to allow retrieval and search crawlers and make a deliberate, documented choice about training crawlers.
Key takeaways
- Allow retrieval and search crawlers by default; they're how assistants find and cite you, make a separate, deliberate call on training crawlers.
- Avoid blanket "block all AI" rules, they routinely catch the search bots you actually need and quietly erase your AI visibility.
- Check that your CDN or WAF isn't blocking AI bot IPs in a way that contradicts your robots.txt, since the network layer wins.
Block for a reason, not out of reflex
AI bot blocking is the practice of using robots.txt (and sometimes network rules) to deny AI crawlers. The instinct to "block all AI" is understandable and usually wrong for B2B. Retrieval and search crawlers like OAI-SearchBot and PerplexityBot are the mechanism by which ChatGPT and Perplexity find and cite you. Block them and you don't protect anything valuable; you just disappear from the answers your buyers are reading.
Training crawlers are the legitimate decision point. GPTBot, ClaudeBot, CCBot, and the Google-Extended token govern whether your content feeds future models. There are real reasons to opt out (proprietary research, licensing posture) and real reasons to stay in. Either is defensible. What isn't defensible is a single wildcard rule that treats training and retrieval as the same thing.
The trap that burns people most often lives below robots.txt. If your CDN or WAF (Cloudflare, Akamai, and similar) is blocking known AI bot IP ranges, that network rule overrides whatever your robots.txt says. You can write a perfect `Allow: /` for OAI-SearchBot and still be invisible because the edge is dropping OpenAI's requests. Before you conclude a bot "ignored" your robots.txt, confirm the request even reached your origin. If you're not sure whether AI assistants can currently reach and cite you, a recommendation check will show you where you stand.
- # Allow retrieval/search (recommended)
- User-agent: OAI-SearchBot
- Allow: /
- User-agent: PerplexityBot
- Allow: /
- # Deliberate training opt-out
- User-agent: GPTBot
- Disallow: /
A sane AI crawler policy for B2B
| Crawler type | Default stance | Why |
|---|---|---|
| Retrieval / search | Allow | This is how assistants cite you |
| User-triggered fetch | Allow | A real buyer is asking about you right now |
| Training | Deliberate choice | Weigh IP and licensing against future model presence |
Example
A client swore ChatGPT was ignoring their robots.txt because they'd allowed OAI-SearchBot but still weren't cited. The robots.txt was fine. Their Cloudflare bot-fight mode was challenging OpenAI's IPs at the edge, so the crawler never reached the page to read the Allow rule. We allowlisted the verified OpenAI IP ranges in the WAF, and the citations returned. The network layer, not robots.txt, had been the real block.
Frequently asked questions
Should I block all AI crawlers to protect my content?
For most B2B sites, no. A blanket block removes you from AI answers where buyers research vendors. Block training crawlers if you have a specific reason, but keep retrieval and search crawlers allowed.
Why is a bot ignoring my robots.txt?
Often it isn't. A CDN or WAF rule blocking the bot's IPs can stop the request before it reaches your origin, so the crawler never reads your robots.txt. Check the network layer first.
Does blocking AI bots help with copyright?
Blocking future crawls can reduce new collection, but it doesn't remove content already in training datasets, and it costs you current AI visibility. Treat it as a business decision, not a reflex.
Related terms
AI Crawler
A bot that collects pages to train or feed AI, as opposed to building a search index.
GPTBot
OpenAI's training crawler — blocking it limits training data, not ChatGPT search citations.
OAI-SearchBot
OpenAI's retrieval crawler — the one that lets ChatGPT search surface and cite your pages.
PerplexityBot
Perplexity's crawler that lets its answer engine surface and link your pages.
Google-Extended
A robots.txt token governing Gemini's use of your content, with no effect on Search.
Want to know where you stand in AI answers?
We’ll show you which engines cite you, and which don’t.
Get a free AI citation audit