The file below reflects the policy we use on our own site: every search and training bot is allowed. Replace yourdomain.com with your own domain.
# Visibility-first policy: everyone is welcome, including AI search and training bots
User-agent: *
Allow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: GPTBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Perplexity-User
Allow: /
User-agent: ClaudeBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: Claude-User
Allow: /
User-agent: Googlebot
Allow: /
User-agent: Google-Extended
Allow: /
User-agent: Bingbot
Allow: /
Sitemap: https://yourdomain.com/sitemap.xml
An example alternative if you want to allow search bots and switch training bots off:
# Alternative: allow search and citation bots, switch training permissions off
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: Googlebot
Allow: /
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
The second file is an example only; review it with your technical team, and with legal counsel if needed, before applying it. Bot names must match exactly, and providers may add bots or rename them, so check the list periodically.