AI crawlers now visit most websites every day. Some collect pages to train models. Others fetch pages live so ChatGPT, Claude or Perplexity can answer a user's question and cite you.
That makes one small file very important: robots.txt. A single wrong line can either hand your content to every AI model or quietly remove your business from AI answers.
This guide shows how a robots.txt AI block works, which bots matter, and how to choose what to block and what to allow.
The AI user agents you should know
| Bot | Company | What it does |
|---|---|---|
| GPTBot | OpenAI | Collects pages for model training |
| OAI-SearchBot | OpenAI | Finds pages for ChatGPT search results |
| ChatGPT-User | OpenAI | Opens a page when a user asks ChatGPT to |
| ClaudeBot | Anthropic | Collects pages for model training |
| PerplexityBot | Perplexity | Indexes pages for Perplexity answers |
| Google-Extended | Controls use of your content for Gemini training | |
| CCBot | Common Crawl | Builds the open web dataset many models use |
| Applebot-Extended | Apple | Controls use of your content for Apple AI training |
One important detail: Google-Extended does not control Google Search or AI Overviews. Those still use normal Googlebot. Blocking Google-Extended only opts you out of Gemini training.
Example 1: Block all AI training bots, keep AI search
This is the most common choice for businesses. Your content is not used for training, but you can still be found and cited in AI search.
User-agent: GPTBot Disallow: / User-agent: ClaudeBot Disallow: / User-agent: CCBot Disallow: / User-agent: Google-Extended Disallow: / User-agent: OAI-SearchBot Allow: / User-agent: ChatGPT-User Allow: / User-agent: PerplexityBot Allow: / Example 2: Block AI bots from one folder only
Useful when you have paid content, client areas or internal docs.
User-agent: GPTBot Disallow: /members/ Disallow: /internal/ User-agent: ClaudeBot Disallow: /members/ Disallow: /internal/ Example 3: Allow everything
If you want maximum visibility in AI answers, you do not need any AI specific rules. A clean file is enough:
User-agent: * Allow: / Sitemap: https://example.com/sitemap.xml Mistakes we see all the time
- Blocking everything by accident. A leftover
Disallow: /underUser-agent: *from a staging site blocks every bot, AI and Google included. - Blocking AI search bots while wanting AI traffic. Many sites copy a "block all AI" list from a forum and then wonder why ChatGPT never mentions them.
- Thinking robots.txt is security. It is a polite request. Good bots follow it, bad scrapers ignore it. Use logins or firewall rules for private data.
- Firewall rules that override robots.txt. Some CDN "bot fight" settings block AI crawlers even when robots.txt allows them. Check both.
- Typos in user agent names.
GPT-BotorClaude-Botwill not match anything.
How to test your robots.txt
Do not guess. After every change, test the live file:
- Run your domain through a free robots.txt tester to see which bots are allowed or blocked on each path.
- Then use an AI crawler checker to confirm GPTBot, ClaudeBot, PerplexityBot and others can actually reach your pages, not just read your rules.
Both tools are free on MyWebRank, which also checks whether ChatGPT, Gemini and Perplexity mention your business at all.
Quick decision guide
- You sell products or services and want leads: allow AI search bots, block training bots only if you have a strong reason.
- You publish premium content: block training bots, allow search bots on public pages, block member folders.
- You run a news or media site: decide per bot, and review every few months because new bots appear often.
robots.txt takes five minutes to edit, but it decides whether AI tools can see you. Check yours today.
