GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot: what to block and allow in 2026
Every AI company now runs separate crawlers for training, search and live user fetches. Which ones to block, the robots.txt for each policy, and how to check they obey.

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 |
OAI-SearchBot | OpenAI | Search: surfaces sites "in search results in ChatGPT's search features" | Yes | OpenAI |
ChatGPT-User | OpenAI | Live fetch for "certain user actions in ChatGPT and Custom GPTs" | "robots.txt rules may not apply" | OpenAI |
OAI-AdsBot | OpenAI | Checks pages submitted as ads on ChatGPT | No (visits only submitted ad pages) | OpenAI |
ClaudeBot | Anthropic | Training: collects content that "could potentially contribute to their training" | Yes | Anthropic |
Claude-SearchBot | Anthropic | Search: improves "search result quality for users" | Yes | Anthropic |
Claude-User | Anthropic | Live fetch when a user asks Claude a question | Anthropic says its bots honor robots.txt | Anthropic |
PerplexityBot | Perplexity | Search: surfaces and links sites in Perplexity; Perplexity says it is not used for training | Yes | Perplexity |
Perplexity-User | Perplexity | Live fetch to answer a user's question | "generally ignores robots.txt rules" | Perplexity |
Google-Extended | Token only, no crawler: controls Gemini training and grounding | Yes (it is a robots.txt token) | ||
Applebot-Extended | Apple | Token only, no crawler: controls training of Apple's foundation models | Yes (it is a robots.txt token) | Apple |
CCBot | Common Crawl | Builds the Common Crawl public web archive | Yes | Common Crawl |
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". Blocking GPTBot does not remove you from ChatGPT search. Blocking OAI-SearchBot does, although OpenAI notes such sites "can still appear as navigational links". 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", 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". 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" to appear as a link there. Apple's Applebot-Extended works the same way: Apple says it "does not crawl webpages".
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", 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: *withDisallow: /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".
- Blocking by IP instead of robots.txt. Anthropic warns that IP blocking "may not work correctly or persistently guarantee an opt-out", 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). The settings are under Security → Settings → Configure AI bot policies (docs). 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", 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" instead. The other trap is Block under Training. Since 15 September 2026, Cloudflare says "Block and 'Block on pages with ads' apply to all training crawlers, including mixed-use 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" at the edge. Search Engine Journal's write-up of the change is a good short summary, and our article on whether Cloudflare is 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, plusContent-signal: search=yes, ai-train=no, use=reference(Cloudflare). If you turned it on, your public robots.txt is no longer only the file in your repository. Fetchhttps://yoursite.com/robots.txtto see what crawlers really get. - Edge blocks win over
Allow. If Training is set to block GPTBot at the edge, anAllowfor GPTBot in robots.txt changes nothing. The bot gets a403.
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
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:
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:
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")
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", 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.
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).
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 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: the AI-crawler check runs on every audit, including the 50-page preview.
Keep reading

ClaudeBot, Claude-SearchBot, Claude-User: Anthropic's crawlers and how to control them
Anthropic runs three bots and documents all three as robots.txt-compliant. What each one does, the rules that control it, Crawl-delay, and how to verify a request really comes from Anthropic.
1,454 words · 7 min read

OAI-SearchBot vs GPTBot: OpenAI's four bots and what each one controls
OpenAI runs four user agents and each one answers a different question. The exact strings, the robots.txt for "ChatGPT search yes, training no", and how to check the traffic is really OpenAI's.
1,629 words · 8 min read

llms.txt in 2026: who actually reads it (mostly coding agents)
llms.txt won't move your AI search visibility. It does get read by coding agents and agent tooling. The evidence, who has adopted it, and a template for sites where it's worth 20 minutes.
1,805 words · 8 min read