# GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot: what to block and allow in 2026

> GPTBot trains models, OAI-SearchBot feeds ChatGPT search, ChatGPT-User fetches for users. robots.txt for each policy, and the Cloudflare traps.

Source: https://seofix.ai/blog/block-gptbot-robots-txt  
Published: 2026-10-17  
Updated: 2026-10-09  
Author: SEOFix Team  
Category: AI search  
Tags: AI agents, Technical SEO, Guides  
Length: 1,878 words, 9 min read

To block GPTBot in robots.txt, add `User-agent: GPTBot` followed by `Disallow: /`. That stops OpenAI from using your pages to train its models, and nothing else: ChatGPT search uses a different crawler, OAI-SearchBot, and links users open in ChatGPT are fetched by a third, ChatGPT-User. Anthropic, Perplexity, Google and Apple split their bots the same way. So decide what you want (no training, no AI search, or no AI at all), then block the matching user agents. The table below lists them, with a robots.txt for each policy.

All vendor facts below were checked against the vendors' own documentation on 8 October 2026. These pages change often, so the links are worth a second look before you ship a policy.

## The AI user agents and what each one does

| User agent | Company | Purpose | Obeys robots.txt? | Docs |
| --- | --- | --- | --- | --- |
| `GPTBot` | OpenAI | Training: content "may be used in training our generative AI foundation models" | Yes | [OpenAI](https://developers.openai.com/api/docs/bots) |
| `OAI-SearchBot` | OpenAI | Search: surfaces sites "in search results in ChatGPT's search features" | Yes | [OpenAI](https://developers.openai.com/api/docs/bots) |
| `ChatGPT-User` | OpenAI | Live fetch for "certain user actions in ChatGPT and Custom GPTs" | "robots.txt rules may not apply" | [OpenAI](https://developers.openai.com/api/docs/bots) |
| `OAI-AdsBot` | OpenAI | Checks pages submitted as ads on ChatGPT | No (visits only submitted ad pages) | [OpenAI](https://developers.openai.com/api/docs/bots) |
| `ClaudeBot` | Anthropic | Training: collects content that "could potentially contribute to their training" | Yes | [Anthropic](https://support.claude.com/en/articles/8896518) |
| `Claude-SearchBot` | Anthropic | Search: improves "search result quality for users" | Yes | [Anthropic](https://support.claude.com/en/articles/8896518) |
| `Claude-User` | Anthropic | Live fetch when a user asks Claude a question | Anthropic says its bots honor robots.txt | [Anthropic](https://support.claude.com/en/articles/8896518) |
| `PerplexityBot` | Perplexity | Search: surfaces and links sites in Perplexity; Perplexity says it is not used for training | Yes | [Perplexity](https://docs.perplexity.ai/guides/bots) |
| `Perplexity-User` | Perplexity | Live fetch to answer a user's question | "generally ignores robots.txt rules" | [Perplexity](https://docs.perplexity.ai/guides/bots) |
| `Google-Extended` | Google | Token only, no crawler: controls Gemini training and grounding | Yes (it is a robots.txt token) | [Google](https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers) |
| `Applebot-Extended` | Apple | Token only, no crawler: controls training of Apple's foundation models | Yes (it is a robots.txt token) | [Apple](https://support.apple.com/en-us/119829) |
| `CCBot` | Common Crawl | Builds the Common Crawl public web archive | Yes | [Common Crawl](https://commoncrawl.org/ccbot) |

Three details in that table are easy to get wrong.

**OpenAI's settings are independent.** OpenAI says so directly: ["a webmaster can allow OAI-SearchBot in order to appear in search results while disallowing GPTBot"](https://developers.openai.com/api/docs/bots). Blocking GPTBot does not remove you from ChatGPT search. Blocking OAI-SearchBot does, although OpenAI notes such sites ["can still appear as navigational links"](https://developers.openai.com/api/docs/bots). For OAI-SearchBot, OpenAI says a robots.txt change can take about 24 hours to take effect.

**Google-Extended is not a crawler.** Google says it ["doesn't have a separate HTTP request user agent string"](https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers), so you'll never see it in your logs. Googlebot does the fetching and the token decides what Google may do with the content afterwards. Blocking it ["does not impact a site's inclusion in Google Search"](https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers). It also doesn't control AI Overviews or AI Mode. For those, Google points to `nosnippet`, `data-nosnippet`, `max-snippet` and `noindex`, and a page must be ["indexed and eligible to be shown in Google Search with a snippet"](https://developers.google.com/search/docs/appearance/ai-features) to appear as a link there. Apple's `Applebot-Extended` works the same way: Apple says it ["does not crawl webpages"](https://support.apple.com/en-us/119829).

**User-triggered fetchers are a different category.** ChatGPT-User and Perplexity-User act for a person who asked about your page, and both vendors say robots.txt may not apply. If you need to stop them, robots.txt is the wrong tool. Use your WAF or CDN (covered below).

## How to block GPTBot in robots.txt: four policies

A crawler obeys only the group that matches its name. RFC 9309 says crawlers ["MUST use case-insensitive matching to find the group that matches the product token and then obey the rules of the group"](https://www.rfc-editor.org/rfc/rfc9309.html), and fall back to `User-agent: *` only when no group matches. In practice, the moment you add a `User-agent: GPTBot` group, GPTBot ignores your `*` rules, so repeat any private paths there.

### Policy 1: allow everything (the default)

If your robots.txt has no AI-specific groups and your `*` group allows the site, every crawler above can fetch it. You don't need to list them.

```
User-agent: *
Disallow: /account/
Disallow: /cart/

Sitemap: https://example.com/sitemap.xml
```

### Policy 2: stay in AI search, opt out of training

Appear in ChatGPT, Claude and Perplexity answers, but keep content out of training sets.

```
# Training crawlers and training tokens
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Google-Extended
User-agent: Applebot-Extended
Disallow: /

# Search and user-triggered bots follow the * group
User-agent: *
Disallow: /account/
Disallow: /cart/

Sitemap: https://example.com/sitemap.xml
```

Stacking several `User-agent` lines over one set of rules is valid. OAI-SearchBot, Claude-SearchBot and PerplexityBot have no group of their own, so they follow `*` and can crawl the public site.

### Policy 3: no AI at all, but stay in Google and Bing

```
User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: ClaudeBot
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: CCBot
User-agent: Google-Extended
User-agent: Applebot-Extended
Disallow: /

User-agent: *
Disallow: /account/
```

Listing `ChatGPT-User` and `Perplexity-User` costs nothing, but by their vendors' own docs they may not follow it. If "no AI at all" is a hard requirement, enforce it at the edge.

### Policy 4: block training everywhere except your docs

Sometimes you want to keep documentation or a public API reference open to everything, because coding agents read it, while keeping the rest of the site out of training. Use `Allow` inside the training group:

```
User-agent: GPTBot
User-agent: ClaudeBot
Allow: /docs/
Disallow: /
```

RFC 9309 says the most specific match, the one with the most octets, wins, so `/docs/` stays crawlable and everything else is disallowed.

## Common mistakes

- **Blocking GPTBot and expecting to disappear from ChatGPT.** GPTBot is training only. ChatGPT search reads OAI-SearchBot's index.
- **Blocking OAI-SearchBot by accident.** A blanket `User-agent: *` with `Disallow: /` on a staging rule that reached production, or a "block all bots" plugin, takes you out of ChatGPT search along with everything else.
- **Blocking Google-Extended to keep out of AI Overviews.** It has no effect on AI Overviews. Those follow Googlebot and snippet controls.
- **Forgetting subdomains.** robots.txt is per host. Anthropic's guidance says: ["Please do this for every subdomain that you wish to opt out from"](https://support.claude.com/en/articles/8896518).
- **Blocking by IP instead of robots.txt.** Anthropic warns that IP blocking ["may not work correctly or persistently guarantee an opt-out"](https://support.claude.com/en/articles/8896518), partly because it stops the bot from reading the robots.txt that holds your actual preference.

## When your CDN overrides your robots.txt

robots.txt is a request. CDNs enforce. If Cloudflare sits in front of your site, its settings decide who gets through, whatever your robots.txt says.

Since 1 July 2026 Cloudflare groups AI traffic into **Search**, **Agent** and **Training**, each with Allow, Block, or Block on pages with ads, on every plan ([Cloudflare](https://blog.cloudflare.com/content-independence-day-ai-options/)). The settings are under **Security → Settings → Configure AI bot policies** ([docs](https://developers.cloudflare.com/bots/additional-configurations/block-ai-bots/)). What they mean for the user agents above:

| Your goal | robots.txt | Cloudflare setting |
| --- | --- | --- |
| Everything allowed | Policy 1 | Search, Agent, Training: Allow |
| AI search yes, training no | Policy 2 | Search: Allow. Agent: Allow. Training: **Disallow AI Training** |
| No AI, keep Google and Bing | Policy 3 | Agent: Block. Training: **Disallow AI Training**. Leave Search on Allow and block the AI search crawlers individually in AI Crawl Control |

Two choices in that panel are traps. Cloudflare's Search category covers ["any behavior that collects or indexes your content"](https://blog.cloudflare.com/content-independence-day-ai-options/), which is a description that fits Googlebot as well as OAI-SearchBot, so we wouldn't set Search to Block on a site that needs Google traffic; AI Crawl Control lets you ["Set allow or block rules for individual crawlers"](https://developers.cloudflare.com/ai-crawl-control/) instead. The other trap is **Block** under Training. Since 15 September 2026, Cloudflare says ["Block and 'Block on pages with ads' apply to](https://blog.cloudflare.com/accountable-mixed-use-ai-crawlers/) [*all*](https://blog.cloudflare.com/accountable-mixed-use-ai-crawlers/) [training crawlers, including mixed-use crawlers"](https://blog.cloudflare.com/accountable-mixed-use-ai-crawlers/), and Googlebot, Bingbot and Applebot are mixed-use, so Block takes you out of Google search. Disallow AI Training keeps those three crawling for search while Cloudflare blocks ["the training-only crawlers run by Amazon, Anthropic, Meta, and OpenAI"](https://blog.cloudflare.com/accountable-mixed-use-ai-crawlers/) at the edge. [Search Engine Journal's write-up](https://www.searchenginejournal.com/cloudflare-lets-sites-disallow-ai-training-without-blocking-googlebot/589559/) of the change is a good short summary, and our article on [whether Cloudflare is blocking Googlebot](https://seofix.ai/blog/cloudflare-blocking-googlebot) covers how to check and undo it.

Two more Cloudflare features change what crawlers see:

- **Managed robots.txt** prepends its own groups to your file, with `Disallow: /` for Amazonbot, Applebot-Extended, Bytespider, CCBot, ClaudeBot, Google-Extended, GPTBot and meta-externalagent, plus `Content-signal: search=yes, ai-train=no, use=reference` ([Cloudflare](https://developers.cloudflare.com/bots/additional-configurations/managed-robots-txt/)). If you turned it on, your public robots.txt is no longer only the file in your repository. Fetch `https://yoursite.com/robots.txt` to see what crawlers really get.
- **Edge blocks win over** **`Allow`****.** If Training is set to block GPTBot at the edge, an `Allow` for GPTBot in robots.txt changes nothing. The bot gets a `403`.

Other CDNs and WAFs have their own bot rules, and the principle is the same: the edge decides first, robots.txt second.

## How to check that the bots obey

### 1. Read the robots.txt crawlers actually get

```bash
curl -s https://example.com/robots.txt
```

Do this from outside your network. CDN-managed additions only show up on the public URL.

### 2. Count AI crawler hits in your access logs

For nginx or Apache combined logs, the user agent is the sixth quote-delimited field:

```bash
awk -F'"' '{print $6}' /var/log/nginx/access.log \
  | grep -oE 'GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-SearchBot|Claude-User|PerplexityBot|Perplexity-User|CCBot' \
  | sort | uniq -c | sort -rn
```

After you disallow a bot, its hits on disallowed paths should fall to zero once it has re-read robots.txt (OpenAI gives about 24 hours for OAI-SearchBot). A few hits on `/robots.txt` itself are expected: that's how it learns the new rules.

### 3. Check the IP addresses

User agents are easy to fake. OpenAI publishes ranges per bot (`https://openai.com/gptbot.json`, `searchbot.json`, `chatgpt-user.json`) and Anthropic publishes one list at `https://claude.com/crawling/bots.json`. Both use the same `{"prefixes": [{"ipv4Prefix": …}]}` format, so one script covers both:

```python
import ipaddress, json, sys, urllib.request

url, ip = sys.argv[1], ipaddress.ip_address(sys.argv[2])
data = json.load(urllib.request.urlopen(url))
nets = [ipaddress.ip_network(p.get("ipv4Prefix") or p.get("ipv6Prefix")) for p in data["prefixes"]]
print("official" if any(ip in n for n in nets) else "NOT in the published ranges")
```

```bash
python3 check_ip.py https://openai.com/gptbot.json 20.171.206.10
```

A "GPTBot" that ignores your Disallow from an IP outside OpenAI's list isn't GPTBot. Block it at the WAF.

### 4. Use your CDN's view

Cloudflare's AI Crawl Control is available on all plans and can ["Track which crawlers follow your directives"](https://developers.cloudflare.com/ai-crawl-control/), which saves you the log work if you're already on Cloudflare.

### 5. Audit it

SEOFix runs an `AI_CRAWLER_BLOCKED` check on every audit, free previews included. It reads your robots.txt the way the bots do (each bot's own group, or `*` when it has none) and raises a warning, one per bot, when `GPTBot`, `ClaudeBot`, `PerplexityBot`, `Google-Extended` or `CCBot` is disallowed from your home page. The issue includes the matching `Disallow` line. If blocking training is your policy, expect warnings for GPTBot, ClaudeBot, Google-Extended and CCBot, and ignore them. The check exists to catch the accidental case, like a staging robots.txt or a managed robots.txt nobody remembers turning on. Details: [AI visibility and rendering checks](https://seofix.ai/help/checks-ai-and-rendering).

## FAQ

### Does blocking GPTBot hurt my SEO?

Not in Google or Bing. GPTBot is OpenAI's training crawler and has nothing to do with search engines' indexes. It also doesn't affect ChatGPT search, which uses OAI-SearchBot.

### Should I block ChatGPT-User?

Usually not. It fetches a page because a person in ChatGPT asked about it, which is the closest thing AI assistants have to a referral. OpenAI also says robots.txt may not apply to it, so a Disallow line may do nothing.

### Is Google-Extended the way to opt out of AI Overviews?

No. Google says Google-Extended controls Gemini training and grounding and does not affect Search. AI Overviews and AI Mode use the normal search index and follow `nosnippet`, `max-snippet`, `data-nosnippet` and `noindex` ([Google](https://developers.google.com/search/docs/appearance/ai-features)).

### I set Allow for GPTBot but my logs show 403s. Why?

Something in front of your server is blocking it. On Cloudflare, check the Training setting and Security Events. If your firewall challenges SEOFix as well, [Let SEOFix through your firewall](https://seofix.ai/help/firewall-allowlisting) shows a header-based rule that doesn't open the door to everyone else.

---

Want to know which AI crawlers your robots.txt blocks right now? [Run a free audit](https://seofix.ai/): the AI-crawler check runs on every audit, including the 50-page preview.
