What robots.txt controls
robots.txt is a text file at /robots.txt that tells crawlers which paths they may fetch. Each group starts with one or more User-agent: lines, followed by Allow: and Disallow: rules. RFC 9309 sets how it is read: a bot follows the group that names it, and uses the User-agent: * group only when no group names it. Within that group, the longest matching rule wins.
That first rule catches people out. Once you add a group for GPTBot, GPTBot ignores everything in your * group.
Why it matters for AI search
AI companies run separate bots for separate jobs. Blocking a training crawler keeps your pages out of that company's future model training. Blocking a search bot keeps you out of its AI search results. You can block one without the other.
AI search and assistants (these count toward your score):
OAI-SearchBot(OpenAI) finds sites to show in ChatGPT search results.ChatGPT-User(OpenAI) opens a page when a ChatGPT user asks for it. OpenAI says robots.txt rules may not apply to it.Claude-SearchBot(Anthropic) crawls to improve search results in Claude.Claude-User(Anthropic) opens a page when a Claude user asks a question.PerplexityBotfinds sites to show and link in Perplexity search results.Perplexity-Useropens a page when a Perplexity user asks for it. Perplexity says it generally ignores robots.txt rules.
AI training and other crawlers (blocking these does not lower your score):
GPTBot(OpenAI) andClaudeBot(Anthropic) collect pages to train models.Google-Extendedis a robots.txt token, not a separate crawler. It controls whether content Google crawls may be used for its Gemini models. It does not affect Google Search.Applebot-Extendedis also only a token. Apple says it does not crawl pages; it controls whether Apple may use your content to train its models.CCBotbuilds Common Crawl's open web archive.meta-externalagent(Meta) crawls for AI training and indexing.Bytespider(ByteDance) andAmazonbot(Amazon).
A correct example
This file keeps the site out of AI training and open to AI search:
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /
User-agent: *
Allow: /
Sitemap: https://your-product.com/sitemap.xmlIf you are happy for your pages to be used in training too, the User-agent: * group with Allow: / and the Sitemap: line are enough.
How to edit it on common hosts
- Next.js: add
app/robots.txt, orapp/robots.tsto generate it. - Astro and Vite: put
robots.txtinpublic/. Hugo: instatic/. - WordPress: WordPress serves a generated robots.txt. An SEO plugin, or a
robots.txtfile in the site root, replaces it. - Webflow: Site settings, SEO, Indexing. It needs a paid plan.
- Shopify: add a
robots.txt.liquidtemplate to your theme.
What this check does, and what it does not
We fetch your robots.txt once and apply the RFC 9309 rules for each of the 14 bots above. We read the rules. We do not send requests pretending to be these bots, and we do not test firewalls, CDN bot settings or rate limits. A site can allow a bot in robots.txt and still block it at the firewall, and this check will not see that.
Following the RFC, a missing robots.txt, or one that answers with a 4xx error, means every bot is allowed.