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.
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
Frequently asked questions
Which crawlers should I block to opt out of training?
Does blocking Google-Extended keep my site in Google Search?
Will AI crawlers obey the file?
Related tools
Open Graph Visualizer
Preview how your website links will look when shared on Google, Twitter, Facebook, and Discord.
Use toolSSL Checker
Check a site's certificate, TLS versions, HTTP/2 and HTTP/3 support, post-quantum key exchange, HSTS and redirects, or compare two sites.
Use toolDNS Lookup
Look up a domain's DNS records on Cloudflare or compare several resolvers at once, and read its SPF, DMARC and DKIM records in plain words.
Use tool