Technical GEO

GPTBot and robots.txt: How to Handle AI Crawlers

Why robots.txt suddenly matters again

For twenty years robots.txt was plumbing. You set it once, blocked /admin/, and forgot it existed. Then AI companies started crawling the web at scale, and this dusty little text file became the main lever you have over whether your content trains models, appears in AI search answers, or neither.

The catch is that "AI bots" isn't one thing. Some crawlers collect training data. Some build search indexes that cite you. Some fetch pages live because a user asked about your site. Handling AI crawlers well comes down to one principle: allow the search and user-request agents if you want AI visibility, and decide separately, per bot, by name, whether the training crawlers get access, because those are independent permissions. Treating them all the same is the single most common mistake I see, and it's usually an expensive one.

Who is crawling you

Here's the current cast of bots crawling you, by user-agent token. Last updated: August 2026.

Bot Owner Purpose If you block it
GPTBot OpenAI Training Content stays out of future model training. ChatGPT search unaffected
OAI-SearchBot OpenAI Search You fade out of ChatGPT's linked, cited answers
ChatGPT-User OpenAI User request Not guaranteed. OpenAI says robots.txt rules may not apply to user-initiated fetches
PerplexityBot Perplexity Search You lose Perplexity citations
Google-Extended Google Training (control token) Content excluded from Gemini training and grounding. Google search and AI Overviews unaffected
ClaudeBot Anthropic Training Content stays out of Claude training
anthropic-ai Anthropic Training (legacy token) No longer in Anthropic's bot list. Harmless to include alongside ClaudeBot
Bytespider ByteDance Training Reportedly ignores robots.txt anyway. Enforcement needs your CDN or firewall

Three footnotes to that table. ChatGPT-User isn't a crawler at all. It fetches a page live when a user asks about it. Perplexity has been credibly accused of also fetching via undeclared agents, so robots.txt may not tell the whole story there. Google-Extended is a control token, not a bot you'll see in logs. Regular Googlebot does the actual crawling either way. Anthropic also documents Claude-User (live fetches) and Claude-SearchBot (search), and CCBot (Common Crawl) deserves an honourable mention, since its dataset has fed many models' training runs over the years.

OpenAI's crawler overview now lists a fourth agent, OAI-AdsBot. It visits only landing pages submitted as ads on ChatGPT and checks them against OpenAI's ad policies. OpenAI states its data is not used to train foundation models. Unless you advertise on ChatGPT, you will not see it in your logs.

Example robots.txt setups

Here is the robots.txt setup most commercial sites actually want (stay visible in AI answers, opt out of model training):

# Opt out of AI training
User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: anthropic-ai
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Bytespider
Disallow: /

# Stay in AI search and user-requested fetches
User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: PerplexityBot
Allow: /

The scorched-earth version, if you've decided AI gets nothing:

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Bytespider
Disallow: /

And the third option is doing nothing, which allows everything. For a lot of small sites chasing visibility, that's genuinely fine.

Remember each User-agent group needs its own rules. There's no inheritance between named groups, and a bot that finds its own name listed will ignore your User-agent: * block entirely.

The AI crawler trade-off, honestly

Blocking training crawlers is a defensible stance. Publishers whose entire business is their content have real reasons not to donate it to model training. You lose little visibility by blocking GPTBot alone, since the search and user-fetch agents are separate.

Blocking the search and live-fetch bots is a different decision with different consequences. Do that and you're choosing invisibility in AI answers. No citations in ChatGPT search, no Perplexity sources, no live reads when a user pastes your URL. For most brands trying to get recommended, that's self-harm. I'd only advise it for sites whose content is the product and who'd rather be unread than uncompensated.

One more dose of honesty: robots.txt is a polite request, not a lock. Well-behaved bots honour it. Bytespider reportedly doesn't, and there will always be scrapers that never announce themselves. Enforcement, if you need it, happens at the CDN or firewall level, not in a text file.

How to check that your AI crawler rules work

To check that your AI crawler rules work, test four things in order: location, logs, origin and timing.

  1. Location. The file must sit at the root of each host, such as https://www.example.com/robots.txt. Under Google's robots.txt location rules, a file on the main domain does not cover subdomains or the http version. Anthropic asks for the same per-subdomain setup.
  2. Logs. Search your access logs for the user-agent token, such as GPTBot, not the full string. OpenAI says the version number in its strings may change. When its bots fetch robots.txt itself, the string may carry an extra robots.txt marker.
  3. Origin. A user-agent string is easy to fake. Compare the request IP with the ranges each vendor publishes. OpenAI and Perplexity's crawler page each link one JSON file per agent.
  4. Timing. OpenAI notes that ChatGPT search can take about 24 hours to reflect a robots.txt change, and Perplexity gives up to 24 hours. Judge a change the next day, not the same hour.

Search Console's robots.txt report covers the Google side. It shows which file Google fetched, when, and any parsing errors.

Serving AI crawlers clean HTML or markdown

Serving AI crawlers clean HTML or markdown is a newer question next to access control: what a bot gets once it arrives. AI crawlers parse simple, server-rendered HTML far more reliably than script-heavy pages, and some sites now practice content negotiation: detecting agents like GPTBot and serving a stripped, markdown-like page. The safe version is making your canonical HTML clean in the first place (JavaScript-dependent content is the real killer). The aggressive version, serving bots different content than users, edges toward cloaking and is not worth the risk. A public markdown mirror (an llms.txt pointing at .md versions of key pages) gets most of the benefit with none of it.

Common robots.txt mistakes

One common robots.txt mistake is blocking CSS and JavaScript directories. An old habit from the 2000s that never died. Googlebot needs those assets to render your pages properly, and Google's index feeds AI Overviews, so this quietly damages your AI visibility through the side door. Most AI crawlers don't execute JavaScript anyway, which is its own argument for making sure your content exists in the raw HTML.

Blocking everything, then wondering why you're invisible. This one is epidemic. Someone enables a one-click "block AI bots" toggle at the CDN (Cloudflare's default for new domains now blocks training and agent bots on pages with ads) and eighteen months later marketing is commissioning a study into why the brand never appears in ChatGPT. Check your CDN settings before you check anything else. The robots.txt file can say Allow all day while the firewall returns 403s.

Misunderstanding Google-Extended. Blocking it does not remove you from AI Overviews. AI Overviews are built from the ordinary search index that Googlebot crawls, so the way out is the Search generative AI control in Search Console, open to all sites since August 31, 2026.

Blocking ChatGPT-User because it looked like scraper traffic. Those fetches are individual humans asking about your pages. That's the traffic you want.

A short real-world pattern

In one real-world pattern, a B2B hardware company, the kind with a 20-year-old domain and good organic rankings, asks why AI assistants never cite them. Their robots.txt looks fine. Their server logs show every OAI-SearchBot request getting a 403 from a bot-management rule the security team enabled during a scraping scare a year earlier. Nobody had connected the two. One rule change and the crawlers were back within days. The moral: logs beat assumptions.

Before touching anything, it's worth seeing your site the way the bots see it, and you can do exactly that with the crawler simulator. It fetches your pages as each AI user-agent and shows you who's actually getting through. Crawler access is also the first gate in our scoring methodology, for exactly this reason.

rankzupAI dashboard with visibility broken out for each AI engine
Once crawlers can reach you, this is how rankzupAI tracks the payoff per engine, shown here on our own account.
Track visibility by engine

This is one piece of the broader technical GEO checklist.

Frequently asked questions

Should I block GPTBot in robots.txt?
Yes, you should block GPTBot in robots.txt when you don't want to donate your content to training. Blocking GPTBot alone only opts your content out of future model training. It costs you little visibility, because ChatGPT's search and user-fetch agents are separate bots. Just don't accidentally block the search agents with it.
What's the difference between AI training crawlers and search crawlers?
The difference between AI training crawlers and search crawlers is what they feed: training crawlers like GPTBot and ClaudeBot feed model training, while search agents like OAI-SearchBot and PerplexityBot build indexes that cite you in answers. User agents like ChatGPT-User fetch a page live when a person asks about it. These are independent permissions, and each named bot needs its own rules. There's no inheritance from your User-agent: * block.
Can I stay in AI answers but keep my content out of training?
Yes, you can stay in AI answers but keep your content out of training, and that's the setup most commercial sites want. Disallow the training crawlers (GPTBot, Google-Extended, ClaudeBot, CCBot, Bytespider) and Allow the search and live-fetch agents: OAI-SearchBot, ChatGPT-User, PerplexityBot. You opt out of training while staying citable in AI search.
How do I detect AI crawlers visiting my website?
To detect AI crawlers visiting your website, grep your server access logs for the bot user agents: GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot, Google-Extended and their kin. Each vendor publishes its IP ranges, so you can verify a visitor is genuine rather than a spoofed agent. Our AI bot log analysis guide walks through the exact commands, and the panel's bot view does the parsing for you if logs are not your thing.