If you want ChatGPT, Perplexity, or Google AI Overviews to cite your site, robots.txt is the file that decides whether their crawlers are allowed to read it. Training bots and search or answer bots are not the same, and blocking the wrong one can hide you from ChatGPT search while leaving you visible in Google, or the reverse. llms.txt is a separate, optional Markdown file some sites add as a map for AI systems. It is useful only where a tool actually reads it — and Google Search says it ignores it.

Training crawlers and search or answer crawlers are not the same.

Watch on YouTube

This is a reference guide, not a promise that any snippet will get you cited. Use the official documentation linked below, and test your own files.

What is robots.txt, in plain English?

robots.txt sits at the root of your site, at a URL like https://www.example.com/robots.txt. It is a set of instructions for automated crawlers: which user-agent a rule applies to, and which paths that crawler may or may not fetch. It does not log you out of a business listing, and it does not, by itself, write an AI answer. It only governs whether a crawler that honors the file is allowed to collect the page.

Two details matter for AI search. First, rules are grouped by user-agent. A rule for GPTBot does not automatically apply to OAI-SearchBot. Second, a training opt-out and a search opt-out are different switches, even when the same company runs both. If you only remember one thing from this article, remember that.

For a practical check of your own file, see How to Check Whether ChatGPT, Perplexity, and Google AI Overviews Recommend Your Business.

Which AI bots are for training, and which are for search or answers?

The table below summarizes what the operators say in their official crawler documentation. “Training” means the product uses the crawl, or a robots.txt token, to decide whether your content may be used to train a model. “Search / answers” means the crawler or token is used to retrieve or ground answers, or to power a conventional search index that those answers draw from. Always re-check the official page; product names and tokens change.

Token Operator Role, according to official docs Source
GPTBot OpenAI Training. Used to crawl content that may train OpenAI models. OpenAI
OAI-SearchBot OpenAI Search / answers. Used to link and surface websites in ChatGPT search results. Sites that opt out “will not be shown in ChatGPT search answers, though can still appear as navigational links.” OpenAI; ChatGPT search
ChatGPT-User OpenAI User-initiated fetches, when a user or a Custom GPT asks ChatGPT to visit a site. Not the same as GPTBot or OAI-SearchBot. OpenAI
Googlebot Google Search, including Google Search features such as AI Overviews and AI Mode. To be eligible as a supporting link in those features, a page must be indexed and eligible to be shown in Google Search with a snippet. There are no additional technical requirements. AI features; Google crawlers
Google-Extended Google A robots.txt token that controls whether Google may use your content for Gemini training and for grounding in Gemini Apps and Vertex AI. Google says it does not affect Google Search, including AI Overviews and AI Mode. Training control; Google crawlers
PerplexityBot Perplexity Search / answers. Perplexity documents this crawler as supporting its search and answer products, not foundation-model training. Perplexity
Perplexity-User Perplexity User-initiated fetches when someone asks a question that requires visiting a page. Perplexity says this user agent generally does not honor robots.txt. Perplexity
ClaudeBot Anthropic Training. Anthropic’s documentation describes ClaudeBot as the crawler used to gather content that may train Claude. Anthropic
Claude-SearchBot / Claude-User Anthropic Search and user-initiated fetches, distinct from ClaudeBot. Check Anthropic’s current bot list before you write a rule. Anthropic
Applebot Apple Search in Apple products such as Spotlight, Siri, and Safari. Apple also says crawled data may be used as additional context when Apple models generate answers, with a separate ￰8￱ opt-out for those broad world-knowledge answers. Applebot
Applebot-Extended Apple Training opt-out only. Apple says Applebot-Extended does not crawl webpages. Disallowing it opts your content out of training Apple’s foundation models. It does not, by itself, remove you from Spotlight, Siri, or Safari search. Applebot
CCBot Common Crawl An open web crawl. Common Crawl publishes the data in a public corpus used by researchers and others. Blocking CCBot is a decision about that corpus. It is not a switch for ChatGPT search or Google AI Overviews. CCBot; FAQ
Bingbot Microsoft Bing’s web crawler. Bing’s search index is also the foundation for experiences such as Copilot that draw on Bing. Bing

If your goal is to be eligible for citations in answers, do not block the search and answer crawlers in that table unless you intend to opt out of those products. Training opt-outs are a separate, legitimate choice.

What should a typical robots.txt look like?

There is no single correct file. The snippets below are examples, clearly labeled, so you can see how user-agent groups work. Adapt them to your own policy, and keep a copy of what you had before you change anything.

A site that wants to stay eligible for search and answers, and to opt out of several training uses, might look like this:

# Example only. Review each token against current official docs
# before you publish a change.

User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Googlebot
Allow: /

User-agent: Bingbot
Allow: /

User-agent: Applebot
Allow: /

User-agent: Claude-SearchBot
Allow: /

# Training-oriented tokens. These do not replace the rules above.

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: CCBot
Disallow: /

A dangerous pattern, if your goal is to be cited, is a blanket block:

# Dangerous if you want AI answers or search engines to use your site.
User-agent: *
Disallow: /

A User-agent: * group applies to crawlers that do not have their own group. Specific groups override * for the bots they name, but any crawler you did not list will follow *. “Block all AI” templates are especially risky when they also name OAI-SearchBot, PerplexityBot, Googlebot, or Bingbot. If you disallow OAI-SearchBot, OpenAI says your site will not be shown in ChatGPT search answers.

Leave /robots.txt itself readable. If a crawler cannot fetch the file, it cannot honor a carefully written exception.

What is llms.txt, and what are its limits?

￰18￱ is a proposed Markdown file, usually published at /llms.txt, that gives AI systems a short, structured overview of a site and links to important pages. In the current specification, the only required section is an H1 with the name of the project or site. A short summary, more detail, and lists of links are optional.

That proposal is not a Google Search ranking factor. Google’s guide to optimizing for generative AI features on Search is explicit: you do not need to create “new machine readable files, AI text files, markup, or Markdown” to appear in Google Search, including its generative AI capabilities, because Google Search does not use them. If you keep an llms.txt file for other tools, Google says doing so “will neither harm nor help your site’s visibility or rankings in Google Search, as Google Search ignores them.”

So write llms.txt in your real business name, point it at your real service, FAQ, and contact pages, and treat it as a convenience for systems that choose to read it. Do not expect it to get you into Google AI Overviews. Do not paste a template that still contains another company’s name, a placeholder tagline, or advice that contradicts your robots.txt.

What mistakes do sites make with these files?

  • Treating every “AI bot” as one bot. GPTBot is not OAI-SearchBot. Google-Extended is not Googlebot. Applebot-Extended does not crawl, and disallowing it does not remove you from Apple search.
  • Disallowing Google-Extended in the hope of hiding from AI Overviews or AI Mode. Google says that token does not affect Google Search, including those features.
  • Disallowing OAI-SearchBot or PerplexityBot with a “block AI training” template, then wondering why ChatGPT search or Perplexity never cites the site.
  • Blocking User-agent: * and assuming named exceptions are unnecessary.
  • Publishing an llms.txt that still says “Just another WordPress site,” uses the wrong business name, or tells crawlers the opposite of robots.txt.
  • Assuming llms.txt is required for Google, or that Google honors it. Official Google guidance says otherwise.
  • Forgetting that Perplexity-User and similar user-initiated fetches may still retrieve a page when a person asks a question, even if a crawler is blocked. Check each operator’s current policy.

How should you check your own files?

Open yoursite.com/robots.txt and yoursite.com/llms.txt in a browser. Confirm the search and answer crawlers you care about are allowed if that is your policy, and that any training opt-outs are the ones you actually chose. Then run a few customer questions in the tools themselves, as described in our self-check guide. If you want a free snapshot of the same ground, email hello@citeborne.com or see the free AI visibility snapshot page.

Frequently asked questions

If I block GPTBot, will I disappear from ChatGPT?

Not necessarily. GPTBot is OpenAI’s training crawler. ChatGPT search uses OAI-SearchBot. OpenAI documents those as separate user-agents. Blocking training is a coherent choice. Blocking OAI-SearchBot is the change that, according to OpenAI, keeps a site out of ChatGPT search answers.

If I block Google-Extended, will I disappear from AI Overviews?

No. Google says Google-Extended does not affect Google Search, including AI Overviews and AI Mode. Visibility in those features follows ordinary Search eligibility: the page must be indexed and eligible to be shown with a snippet. There are no additional technical requirements.

Does every site need an llms.txt file?

No. It is a proposal, not a Google requirement. If you add one, use your real name and point to real pages. Google Search ignores the file.

Can Citeborne review these files for me?

Yes. A free AI visibility snapshot includes a check of robots.txt and llms.txt, along with service pages, FAQ, and directory consistency. Email hello@citeborne.com.