Should I block AI crawlers in robots.txt?
Block the training crawlers if you'd rather your pages weren't used to train models. Leave the answer crawlers open, or you vanish from the answers people get about businesses like yours.
Let the answer crawlers in
Paste this at the top of your robots.txt file:
User-agent: OAI-SearchBot Allow: / User-agent: ChatGPT-User Allow: / User-agent: Claude-SearchBot Allow: / User-agent: Claude-User Allow: / User-agent: PerplexityBot Allow: / User-agent: Perplexity-User Allow: /
Optional: keep your pages out of training
This is your call and it costs you nothing in live answers:
User-agent: GPTBot Disallow: / User-agent: ClaudeBot Disallow: / User-agent: Google-Extended Disallow: / User-agent: Applebot-Extended Disallow: / User-agent: CCBot Disallow: /
Where the file lives
Shopify: Online Store, Themes, Edit code, robots.txt.liquid. WordPress: your SEO plugin's robots editor. Squarespace and Wix: a crawler setting in the SEO panel. Anywhere else: a plain text file at the root of your site.
Two things robots.txt can't do
It is a request, not a lock, so it only works on crawlers that honor it. And it does nothing about a firewall that blocks bots before they ever read the file. The sight check tests both.
For what each name does, see the AI crawler list.