robots.txt for AI: allow ChatGPT, Claude, Perplexity and Gemini
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:
- WordPress: the file editor in Yoast or Rank Math. See WordPress steps.
- Wix: SEO, Tools and settings, Robots.txt Editor. See Wix steps.
- Shopify: a
robots.txt.liquidtemplate in your theme code. See Shopify steps. - Squarespace: no editor, only the AI crawler switch under Settings, Crawlers. See Squarespace steps.
- A hand-made site: a file called
robots.txtin the top folder.
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).
The AI bots, in one list
| Bot name (User-agent) | Company | What it is for |
|---|---|---|
| Answer tools: read your site when people ask a question | ||
| OAI-SearchBot | OpenAI | ChatGPT search answers |
| ChatGPT-User | OpenAI | ChatGPT opening a page for a user |
| Claude-SearchBot | Anthropic | Claude search answers |
| Claude-User | Anthropic | Claude opening a page for a user |
| PerplexityBot | Perplexity | Perplexity search answers |
| Perplexity-User | Perplexity | Perplexity opening a page for a user |
| DuckAssistBot | DuckDuckGo | DuckDuckGo AI answers |
| Search engines: also feed AI Overviews, Gemini and Copilot | ||
| Googlebot | Google Search and AI Overviews | |
| bingbot | Microsoft | Bing and Microsoft Copilot |
| Training: blocking these is your choice | ||
| GPTBot | OpenAI | Training OpenAI models |
| ClaudeBot | Anthropic | Training Claude models |
| Google-Extended | A rule name only: use of your pages for Gemini | |
| Applebot-Extended | Apple | A rule name only: use of your pages for Apple Intelligence |
| meta-externalagent | Meta | Meta AI |
| Amazonbot | Amazon | Alexa and Amazon AI |
| CCBot | Common Crawl | Open web archive used to train many AI models |
| Bytespider | ByteDance | ByteDance AI |
Mistakes we see most
- A leftover
Disallow: /underUser-agent: *from when the site was being built. It hides you from every search engine and AI. - WordPress "Discourage search engines" ticked under Settings, Reading. It adds a noindex tag to every page.
- The file in the wrong place. It only works at the top:
/robots.txt, not/blog/robots.txt. - Thinking robots.txt is a lock. It is a request. Well-behaved bots follow it. Perplexity says its
Perplexity-Userfetcher, which acts for a person, generally does not. And a firewall can still block a bot your robots.txt allows.
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.