Your marketing team wants the site to show up in ChatGPT. Your legal team doesn't want it used to train models. Both requests land on you, in one file: robots.txt.
The good news: most AI companies now run separate crawlers for training and for search. So you can say yes to one and no to the other.
The crawlers that matter
| User agent | Company | What it does |
|---|---|---|
| GPTBot | OpenAI | Collects content that may be used to train models |
| OAI-SearchBot | OpenAI | Indexes pages for ChatGPT search results |
| ChatGPT-User | OpenAI | Fetches a page when a user asks ChatGPT to |
| ClaudeBot | Anthropic | Collects content for model training |
| Claude-SearchBot | Anthropic | Indexes pages for Claude's search |
| Claude-User | Anthropic | Fetches a page when a user asks Claude to |
| PerplexityBot | Perplexity | Indexes pages for Perplexity answers |
| Perplexity-User | Perplexity | Fetches a page during a user's query |
| Google-Extended | Not a crawler: a token that controls use of your content for Gemini training and grounding | |
| CCBot | Common Crawl | Builds an open dataset many model builders use |
Vendors add and rename these from time to time, so check each company's crawler docs before you ship. We keep a longer explainer in how AI crawlers work, and short definitions such as GPTBot in our glossary.
Pattern 1: allow AI search, block training
This is what most businesses want. You stay visible in AI answers but opt out of model training:
# AI search and user-triggered fetches: allowed User-agent: OAI-SearchBot User-agent: ChatGPT-User User-agent: Claude-SearchBot User-agent: Claude-User User-agent: PerplexityBot User-agent: Perplexity-User Allow: / # Model training: blocked User-agent: GPTBot User-agent: ClaudeBot User-agent: Google-Extended User-agent: CCBot Disallow: / Stacking several User-agent lines over one set of rules is valid robots.txt and keeps the file short.
Pattern 2: allow everything except private paths
User-agent: * Disallow: /app/ Disallow: /api/ Allow: / If you don't name AI bots at all, they follow the * rules. That's fine for most marketing sites.
Pattern 3: block all AI crawlers
Some publishers want out entirely:
User-agent: GPTBot User-agent: OAI-SearchBot User-agent: ClaudeBot User-agent: Claude-SearchBot User-agent: PerplexityBot User-agent: Google-Extended User-agent: CCBot Disallow: / Be sure that's what you want. Blocking the search crawlers means your pages can't be cited in those engines' answers.
Three gotchas
Blocking Google-Extended doesn't remove you from Google Search. It's a usage token, not a crawler. Googlebot still crawls your site, and Google says the token doesn't affect Search ranking or inclusion.
User-triggered fetchers may play by different rules. Some vendors treat a fetch that a user asked for like a browser visit rather than a crawl. If you need a hard block, use your firewall or CDN, not robots.txt.
Many AI crawlers don't run JavaScript. If your content only appears after client-side rendering, a crawler may see an empty shell. Server-render or pre-render the pages you want cited. You can check what a bot actually receives with the AI search crawler token inspector.
See who's actually visiting
Count AI bot hits in an nginx or Apache access log:
grep -Eio "gptbot|oai-searchbot|chatgpt-user|claudebot|claude-searchbot|claude-user|perplexitybot|perplexity-user|ccbot" access.log \ | tr 'A-Z' 'a-z' | sort | uniq -c | sort -rn The output is a count per bot, highest first. User agents can be faked, so if a number looks odd, check the IP addresses against the ranges each vendor publishes.
Quick checklist
[ ] Decide: AI search yes or no, model training yes or no
[ ] Name the bots explicitly in robots.txt
[ ] Make sure key pages render without JavaScript
[ ] Check your logs monthly for new bot names
Want the rules written for you? Use the free robots.txt generator, and see our glossary note on robots.txt for AI crawlers.
What does your team allow today: search only, training too, or nothing? Let me know in the comments.
Written by the team at Track My Visibility, where we track how brands show up in AI search.


