On this pageKnow the three kinds of AI traffic
AI companies now reach your site for three different reasons: to collect training data, to build a search index for their answer engines, and to fetch a page because a user asked about it right now. Each reason has its own bot, its own rules and its own trade-off. Blocking everything also removes you from AI search answers; allowing everything hands your content to every training run. Decide per category, then enforce the decision in layers, from polite to strict.
Know the three kinds of AI traffic
| Operator | Token | What it does | Follows robots.txt |
|---|---|---|---|
| OpenAI | GPTBot |
Collects content that may train OpenAI's models | Yes; disallowing it is the training opt-out |
| OpenAI | OAI-SearchBot |
Surfaces sites in ChatGPT search | Yes |
| OpenAI | ChatGPT-User |
Fetches pages when a user asks ChatGPT | OpenAI says these user-initiated visits may not follow it |
| Anthropic | ClaudeBot |
Collects content that may train Claude | Yes, including Crawl-delay |
| Anthropic | Claude-SearchBot |
Indexes pages to improve search answers | Yes |
| Anthropic | Claude-User |
Fetches pages when a Claude user asks | Yes, per Anthropic |
| Perplexity | PerplexityBot |
Builds Perplexity's search index; not used for training | Yes |
| Perplexity | Perplexity-User |
Fetches pages for a user's question | Generally no, per Perplexity |
Google-Extended |
A robots.txt token, not a crawler: controls use in Gemini training and grounding | Yes; it does not affect Google Search | |
| Apple | Applebot-Extended |
A token, not a crawler: controls use in training Apple's models | Yes; pages stay in Apple's search |
| Common Crawl | CCBot |
Builds an open web archive that many training datasets draw on | Yes |
The user-triggered fetchers behave like a browser acting for a person, which is why their operators treat robots.txt differently. If you must stop them, you need the server layer below.
Layer 1: robots.txt states your policy
Robots.txt is voluntary, but the large operators document that their crawlers honor it, and it is the signal they read first. Anthropic explicitly recommends it over IP blocking, because blocking its addresses can stop its crawlers from reading your robots.txt at all. This file blocks training while staying visible in AI search:
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Google-Extended
User-agent: Applebot-Extended
Disallow: /
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Disallow: /admin/
User-agent: *
Disallow: /admin/
Several User-agent lines may share one group, as the robots exclusion standard (RFC 9309) allows. OpenAI notes that changes can take about 24 hours to apply to its search crawler. Keep the file short and test it with a robots.txt validator before you publish.
Layer 2: the web server enforces it
For bots that ignore robots.txt, or to protect expensive pages, enforce the rules in Nginx. Put the map and limit_req_zone blocks in a file under /etc/nginx/conf.d/, which Debian and Ubuntu load in the http context:
map $http_user_agent $ai_training_bot {
default 0;
~*GPTBot 1;
~*ClaudeBot 1;
~*CCBot 1;
}
map $http_user_agent $ai_search_key {
default "";
~*(OAI-SearchBot|Claude-SearchBot|PerplexityBot) $binary_remote_addr;
}
limit_req_zone $ai_search_key zone=ai_search:10m rate=1r/s;
limit_req_status 429;
Then, inside your server block:
if ($ai_training_bot) {
return 403;
}
location / {
limit_req zone=ai_search burst=10 nodelay;
try_files $uri $uri/ =404;
}
Nginx skips requests whose key is empty, which means human visitors are never limited and only the search crawlers you listed hit the cap. Adapt the location block to your site rather than replacing what you have. Check with sudo nginx -t, then sudo systemctl reload nginx.
Then pretend to be a bot and check the answers:
curl -sI -A "GPTBot" https://example.com/ | head -n 1
curl -sI -A "Mozilla/5.0" https://example.com/ | head -n 1
The first request should get a 403 and the second a 200. For the rate limit, send a quick burst with a search crawler's user agent and watch for 429 responses, then confirm in your access log that ordinary visitors never receive one. A test from your own machine exercises the user agent rules only; genuine crawlers also arrive from their published address ranges, which the next layer checks.
CloudSat servers include DDoS filtering, which stops floods but not a polite crawler reading every page of a large site, so these limits still belong on your web server.
Layer 3: verify who is really calling
A user agent string is trivial to fake. OpenAI, Anthropic and Perplexity publish the IP ranges of their bots: OpenAI at openai.com/gptbot.json, searchbot.json and chatgpt-user.json, Anthropic at claude.com/crawling/bots.json, and Perplexity at perplexity.ai/perplexitybot.json and perplexity-user.json. Turn a list into an Nginx geo include like this:
curl -s https://openai.com/searchbot.json \
| jq -r '.prefixes[] | (.ipv4Prefix // .ipv6Prefix) + " 1;"' \
| sudo tee /etc/nginx/openai-searchbot.conf
Load it next to your maps, in the http context:
geo $openai_searchbot_ip {
default 0;
include /etc/nginx/openai-searchbot.conf;
}
A request that claims to be OAI-SearchBot while $openai_searchbot_ip is 0 is not OpenAI, and you can treat it like any other scraper, for example with a map on "$http_user_agent:$openai_searchbot_ip". Refresh the lists on a schedule, since operators add ranges.
Layer 4: read your logs
Before writing rules, measure. With the default combined log format, the user agent is the sixth field when you split each line on double quotes:
awk -F'"' '{print $6}' /var/log/nginx/access.log \
| grep -Eio 'gptbot|oai-searchbot|chatgpt-user|claudebot|claude-searchbot|claude-user|perplexitybot|perplexity-user|ccbot' \
| tr '[:upper:]' '[:lower:]' | sort | uniq -c | sort -rn
Run it weekly. A bot that suddenly multiplies its requests, or a name you have never seen, tells you which rule to write next.
Does llms.txt do anything?
llms.txt is a proposal from Jeremy Howard of Answer.AI, published in September 2024: a Markdown file at the root of a site that summarizes it and links to the pages a language model should read. It is not an access control, and as of late 2026 the crawler documentation from OpenAI, Anthropic, Google and Perplexity is built around robots.txt, not llms.txt. Publish one if your site is developer documentation that people paste into coding agents; Anthropic's own Claude Code docs, for example, point agents to an llms.txt index. For a blog or a shop, expect little effect.
Make allowed pages easy to read
If you want to appear in AI answers, serve the bots you allow something they can parse:
- Server-rendered HTML. Many fetchers do not run JavaScript, so content that appears only after client-side rendering may be invisible to them.
- Real structure. One
h1, ordered headings, tables as tables, and descriptive link text. - Structured data. Schema.org markup in JSON-LD for articles, products and FAQs.
- A current sitemap and correct status codes, so crawlers skip dead pages instead of retrying them.
One development to watch: the IETF's AI Preferences working group is defining a shared vocabulary for uses such as training, and Google's crawler documentation says it intends to support the AIPREF training signal in early 2027.
FAQ
Will blocking GPTBot remove my site from ChatGPT search?
No. OpenAI uses OAI-SearchBot for search and GPTBot for training. Block the first and you leave ChatGPT search answers (apart from plain navigational links); block the second and you only opt out of training.
Does blocking Google-Extended hurt my Google ranking?
No. Google states that Google-Extended does not affect inclusion in Google Search and is not a ranking signal.
Can I block the bots that fetch pages for users?
Yes, at the server, by user agent and by the IP ranges their operators publish. Expect that people asking those assistants about your pages will then get no answer from your site.
Should I block AI crawlers at all?
It depends on what the content is for. Documentation and marketing pages usually gain from being cited, while paid or original work may not. Many sites block training crawlers and allow search crawlers, as in the robots.txt above.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




