robots.txt for AI: allow ChatGPT, Claude, Perplexity and Gemini

BlackForgeX · Updated 3 December 2026

Short answer

To let AI answer tools read your website, your robots.txt must not disallow their bots. The simplest safe file is User-agent: * with Allow: / and a Sitemap: line. If you want to appear in AI answers but not be used for AI training, block only the training bots (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot) and leave the rest open.

Where robots.txt lives

It is a plain text file at the top of your website: yourwebsite.com/robots.txt. Bots read it before anything else. Where you change it depends on how your site is built:

Option A: let every bot in

Best for most shops, clinics, factories and service businesses that want to be found anywhere.

User-agent: *
Allow: /

Sitemap: https://yourwebsite.com/sitemap.xml

Option B: show up in AI answers, but opt out of AI training

Training bots collect pages to build future AI models. Answer bots read your pages when someone asks a question. You can say no to the first and yes to the second.

User-agent: *
Allow: /

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: CCBot
Disallow: /

Sitemap: https://yourwebsite.com/sitemap.xml

Google says Google-Extended does not affect whether you appear or rank in Google Search. Google's AI Overviews come from normal Google Search crawling (Googlebot).

Free, no sign-up, about 15 seconds.

The AI bots, in one list

Bot name (User-agent)CompanyWhat it is for
Answer tools: read your site when people ask a question
OAI-SearchBotOpenAIChatGPT search answers
ChatGPT-UserOpenAIChatGPT opening a page for a user
Claude-SearchBotAnthropicClaude search answers
Claude-UserAnthropicClaude opening a page for a user
PerplexityBotPerplexityPerplexity search answers
Perplexity-UserPerplexityPerplexity opening a page for a user
DuckAssistBotDuckDuckGoDuckDuckGo AI answers
Search engines: also feed AI Overviews, Gemini and Copilot
GooglebotGoogleGoogle Search and AI Overviews
bingbotMicrosoftBing and Microsoft Copilot
Training: blocking these is your choice
GPTBotOpenAITraining OpenAI models
ClaudeBotAnthropicTraining Claude models
Google-ExtendedGoogleA rule name only: use of your pages for Gemini
Applebot-ExtendedAppleA rule name only: use of your pages for Apple Intelligence
meta-externalagentMetaMeta AI
AmazonbotAmazonAlexa and Amazon AI
CCBotCommon CrawlOpen web archive used to train many AI models
BytespiderByteDanceByteDance AI

Mistakes we see most

robots.txt is only half the story. If your rules say yes but your firewall says no, the bot still can't read you. See Is Cloudflare blocking ChatGPT? For more bots and what each does, see the AI crawler list.

Questions people ask

Does allowing AI bots slow my website down?

For a normal business site, no. AI answer bots visit a few pages when someone asks about you. If a bot ever visits too often, you can slow it down at your firewall instead of blocking it.

Should I block AI training bots?

It is a business choice. Blocking training bots such as GPTBot or CCBot does not remove you from ChatGPT, Claude or Perplexity answers. Many businesses that want more customers simply allow everything.

How do I check my robots.txt is working?

Run the free AI Visibility Check. It reads your robots.txt the way the bots do and shows each bot as allowed or blocked, with the exact line that blocks it.

Do I need a separate rule for each AI bot?

No. If User-agent: * allows everything and nothing else blocks them, every bot is allowed. Separate rules are only needed to block specific bots.

More guides

Want us to fix it for you?

BlackForgeX makes business websites readable to ChatGPT, Gemini, Perplexity and Google, usually in a day or two.