Topic 4 of 5 · 4 min read
Controlling AI crawler access
Goal: Write robots.txt rules that allow AI search crawlers while blocking training crawlers, and state what the site gives up.
AI companies run different crawlers for different jobs, and you can allow some and block others, one user agent at a time. The usual split is search crawlers, which fetch pages so they can be shown and linked in answers, and training crawlers, which collect pages to build future models.
Check yourself · 1 of 3
What is the main difference between a search crawler and a training crawler?
Why it matters to you
A blanket block on "AI bots" can make your site invisible in AI search. A blanket allow means your pages may be used to train models. You decide, and the choice has a cost either way.
How it works
Your site's robots.txt file lists rules per user agent, the name a crawler uses to identify itself. The standard (RFC 9309) is a request, and well-behaved crawlers follow it. It is not a lock, so it does not stop a bot that ignores it. Sensitive pages need a login.
Examples published by the companies:
- OpenAI has
OAI-SearchBot(shows sites in ChatGPT search),GPTBot(collects content that may be used to train models) andChatGPT-User(fetches a page when a user asks ChatGPT to open it). OpenAI says these settings are independent. - Anthropic lists
ClaudeBot(training),Claude-UserandClaude-SearchBot. - Perplexity has
PerplexityBotfor search results andPerplexity-Userfor user requests. - Google uses Googlebot for Search. A token called
Google-Extendedcontrols whether content is used for Gemini training and grounding. Blocking it does not remove you from Google Search.
Names change, so read each vendor's page before you edit the file.
Before and after
Weak: User-agent: GPTBot then Disallow: /, with nothing else. The owner thinks the site is now closed to ChatGPT. ChatGPT search uses OAI-SearchBot, so it is still allowed, and the owner has not made a clear choice.
Better, for a publisher that wants citations but not training: allow OAI-SearchBot with Allow: /, and disallow GPTBot and Google-Extended with Disallow: /. Then write down what is given up: blocked training use may mean the models know less about you, with no guarantee either way.
What goes wrong
- Blocking search bots by mistake. Teams copy a block list and lose citations.
- Trusting robots.txt for privacy. It is public and voluntary. Use access control for private content.
- Never re-checking. Vendors add and rename bots. Review the file each quarter and check server logs to see who visits.
- Forgetting subdomains. Each host has its own robots.txt file.
Examples
Cited but not trained on
A recipe site wants to appear in ChatGPT search but not feed model training. Its file allows OAI-SearchBot, and it disallows GPTBot and Google-Extended. It accepts the trade-off: the models may know less about its recipes, and it gets no guarantee of more citations.
The copied block list
An agency pastes a list that disallows PerplexityBot, OAI-SearchBot and Claude-SearchBot on a client's site. Three months later the client asks why no AI answer mentions the brand. The search crawlers were blocked, so the pages could not be fetched for answers.
Key points
- AI vendors run separate crawlers for search, for training and for user-requested fetches.
- Each crawler is controlled by its own user-agent name in robots.txt.
- Blocking a training crawler does not block the same vendor's search crawler.
- Robots.txt is a public request, not security; private content needs real access control.
- Crawler names change, so check each vendor's page and your server logs regularly.
Common mistakes
- Blocking every AI-related user agent without separating search from training.
- Assuming that blocking one bot from a vendor blocks all of that vendor's bots.
- Using robots.txt to hide pages that should be private.
- Not checking server logs or vendor pages after the first setup.
Check yourself · 2 of 3
A site disallows GPTBot and nothing else. Which statement is correct?
Check yourself · 3 of 3
Why should a company not rely on robots.txt to protect a private customer area?
Practice items, not counted towards your mastery.
Start here
- AI features and your website (Google Search Central) (opens in a new tab)DocsFree
Google's own description of AI Overviews and AI Mode, including query fan-out and how pages become eligible to be linked.
- Using generative AI content (Google Search Central) (opens in a new tab)DocsFree
States that AI-generated content is acceptable when it helps people, and when it counts as spam.
- Spam policies for Google web search (opens in a new tab)DocsFree
Defines scaled content abuse and site reputation abuse with examples.
More for this topic
- Overview of OpenAI crawlers (opens in a new tab)DocsFree
Lists OAI-SearchBot, GPTBot and ChatGPT-User, and says each robots.txt setting is independent.
- RFC 9309: Robots Exclusion Protocol (opens in a new tab)StandardFree
The standard that defines robots.txt groups, user-agent matching and allow and disallow rules.
- Does Anthropic crawl data from the web, and how can site owners block the crawler? (opens in a new tab)ArticleFree
Anthropic's list of its crawler user agents and how to block each in robots.txt.