How do you block AI crawlers but stay in search?

By TechCompare · Updated · How we check

Add groups for the training crawlers, like GPTBot, ClaudeBot and Meta-ExternalAgent, plus the control tokens Google-Extended and Applebot-Extended. Leave Googlebot, Bingbot and the AI search crawlers alone if you want to be found.

Each crawler reads the group that names it, so you can block the AI ones by name and leave the search ones alone. The catch is that AI companies run several names each: one for training, one for search, one for visits a person asks for. You pick which of those to allow.

Topic
Block AI, keep search
AI crawler policy
Category
AI crawlers
GPTBot, Google-Extended and the rest

How it works

The tester sorts crawlers into the same kinds the owners use. Training crawlers: GPTBot, ClaudeBot and Meta-ExternalAgent. Control tokens: Google-Extended and Applebot-Extended, which only decide how data that was already crawled gets used. Apple says pages that disallow Applebot-Extended can still be included in search results. AI search crawlers: OAI-SearchBot, PerplexityBot and Claude-SearchBot. Visits on request: ChatGPT-User, Perplexity-User and Claude-User. Blocking the search and visit names costs visibility. Anthropic says disallowing Claude-SearchBot may reduce a site's visibility and accuracy in user search results. Perplexity says PerplexityBot isn't used for AI foundation models, and that Perplexity-User generally ignores robots.txt rules since a person asked for the page. You can stack several User-agent lines above one Disallow line, so a single group can cover every training crawler. After you edit the file, test one path with a search crawler and one with a training crawler. The first should be allowed and the second blocked.

Verdict

Block the training names and the control tokens, keep the search names allowed, and decide about the AI search bots based on whether you want to be cited in AI answers. Then test each name in the tester. A typo in a name in your file blocks nothing, and the table then shows the real crawler as allowed.

More Robots.txt scenarios

Block GPTBot
Two lines tell OpenAI's training crawler to stay out. Its search crawler and its page visits use other names.
View details
Google-Extended
A token for Gemini training, not a crawler. A rule for it never reaches Googlebot or Google Search.
View details
Can Bingbot crawl a page?
A bingbot group replaces the * group, so rules meant for everyone can quietly stop applying to Bing.
View details

Frequently asked questions

Which crawlers should I block to opt out of training?
The training names from each owner's page: GPTBot for OpenAI, ClaudeBot for Anthropic and Meta-ExternalAgent for Meta, plus Google-Extended and Applebot-Extended for Google and Apple. Each company can add names, so check its page now and then.
Does blocking Google-Extended keep my site in Google Search?
Yes. Google says the token doesn't affect a site's inclusion in Google Search. Googlebot still crawls under its own group.
Will AI crawlers obey the file?
Anthropic says its bots honor robots.txt directives, and OpenAI says disallowing GPTBot signals that content shouldn't be used for training. The visit fetchers differ. OpenAI says robots.txt rules may not apply to ChatGPT-User, and Perplexity says Perplexity-User generally ignores them. For content that must stay private, use a login.