Let's talk
◆ GEO

Robots.txt for AI Bots: What to Allow So ChatGPT, Claude and Perplexity Cite You

Which AI bots to allow in your robots.txt so ChatGPT, Claude and Perplexity can cite you as a source. Includes a ready-to-use template, a checklist and the Cloudflare settings worth checking.

Agency28 Team
Agency28 Team
Editorial team · Agency28
Published15 Nov 2026
Updated5 Dec 2026
Reading time10 min
Portada: robots.txt para bots de IA
★ Quick answer

robots.txt is the file that decides which bots can read your website, including those from ChatGPT, Claude, Perplexity and Gemini. For AI to cite you, you need to let in their search bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and the bots that visit your site when a user asks them to (ChatGPT-User, Claude-User). Training bots (GPTBot, ClaudeBot, Google-Extended) are a separate decision: blocking them takes you out of training, not necessarily out of the answers. The most common mistake is blocking one bot while thinking you have blocked another.

◆ Key takeaways

  • Each AI company uses several bots with different jobs: training, search and user requests.
  • To appear in answers, what matters most are the search bots, not the training bots.
  • Blocking GPTBot does not remove you from ChatGPT, and blocking ClaudeBot does not remove you from Claude.
  • robots.txt is not the only barrier: Cloudflare or your firewall can block AI bots without you knowing.

Many websites are invisible to AI for a reason that has nothing to do with their content: a couple of lines in a text file nobody checks. Sometimes it is a rule copied from a 2023 list, sometimes a block left over from the staging version, and sometimes a half-made decision: the intention was to block training, and the door to citations got closed too. It is the first thing we check in a GEO audit, because if the bots cannot get in, nothing else matters.

Why robots.txt decides whether AI can cite you

AI assistants that search the web work much like a search engine: a bot visits your page, stores it in an index and, when someone asks a question, the assistant picks from the sources in that index. If your robots.txt blocks that bot, your page never enters the index and cannot show up as a source.

The bots run by the major AI companies respect robots.txt. Anthropic, for example, documents that disabling its search or user bots may reduce your visibility in its users’ searches. In other words, the file works, and that is exactly why a mistake in it has consequences.

The 3 types of AI bots (and which ones matter for visibility)

The key to getting this right is understanding that each AI company does not have one bot but several, and each one does something different.

TypeWhat it doesExamplesIf you block it
TrainingCollects content that may be used to train modelsGPTBot, ClaudeBot, Google-ExtendedYour content is left out of future training
Search and citationsIndexes pages so the assistant can use them as sourcesOAI-SearchBot, Claude-SearchBot, PerplexityBotYou can no longer appear as a cited source
User requestVisits a specific page when a user asks the assistant toChatGPT-User, Claude-UserThe assistant cannot read your site, even when the user asks

Training bots

They collect content that may end up in the data used to train models. Allowing them helps the model “know” your brand, but it does not guarantee citations, because citations come from real-time search. Blocking them is a legitimate choice if you do not want your content used for training.

Watch out for Google-Extended: it is not a bot that visits your site but a signal telling Google what it may do with content Googlebot has already crawled. It does not affect your Google rankings or Google AI Overviews, which rely on Googlebot. However, according to the documentation summarised by several sources, besides training it also covers the use of your content as a source in Gemini’s answers. If you block it, you may lose citations in Gemini.

Search and citation bots

These decide whether you appear. OAI-SearchBot builds the index for ChatGPT search, Claude-SearchBot does the same for Claude and PerplexityBot for Perplexity. If you want AI to recommend you, do not block these. You will find more platform-specific guides on our blog.

User-request bots

They come in when a person asks the assistant to look at a website, for example by pasting your URL into the chat. You should allow them. One nuance: OpenAI notes that because these visits are initiated by a user, robots.txt may not apply to ChatGPT-User. Anthropic, on the other hand, says Claude-User does respect robots.txt.

The mistake that keeps many websites out of ChatGPT

It happens all the time: someone reads that “you have to block AI to protect your content”, adds GPTBot and ClaudeBot to robots.txt and stops worrying. That block only affects training. Citations keep coming through OAI-SearchBot and Claude-SearchBot.

The opposite case is even more damaging: someone wants to opt out of training, copies a long list of “AI bots” and blocks the search bots too. The result: the site disappears from ChatGPT, Claude and Perplexity answers, and nobody knows why.

Blocking the training bot protects you. Blocking the search bot erases you.

The robots.txt we recommend

This configuration allows every bot that helps you appear in AI answers and keeps training bots allowed too, which is what we recommend for a business that wants visibility. If you would rather opt out of training, change Disallow: /wp-admin/ to Disallow: / in the last group only.

# General rules for all bots
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

# Search and user bots: allow (appear in AI answers)
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
Disallow: /wp-admin/

# Training bots: your call (allowed here)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /wp-admin/

Sitemap: https://yourdomain.com/sitemap.xml

Two details worth understanding. First, a bot with its own group ignores the rules in the general group (User-agent: *), which is why we repeat Disallow: /wp-admin/ in every group. Second, replace the Sitemap line with your real sitemap URL; if you use Yoast, it is usually /sitemap_index.xml.

In WordPress: if there is no physical file, WordPress generates a virtual robots.txt. You can create the file in the root folder via FTP or your hosting file manager, or edit it from your SEO plugin if it includes a robots.txt editor.

How to check your robots.txt in 5 minutes

01

Open it

Go to yourdomain.com/robots.txt in your browser and check that it loads.

02

Look for blocks

Find any Disallow: / under an AI bot or under User-agent: *.

03

Check the firewall

See whether Cloudflare or your host blocks AI bots on its own.

Three checks to find out whether AI bots can read your website

Pay special attention to a User-agent: * followed by Disallow: /. It is typical of sites launched from a staging environment without removing the block, and it shuts out every bot that does not have its own group.

If you want to confirm that the bots are really getting in, check your server logs and search for their names in the user-agent field. It is the only direct way to see it; there is no official dashboard from the AI companies that tells you.

Not sure whether your site or your Cloudflare setup is blocking AI bots? Our free GEO audit checks both and tells you what to change.

When robots.txt is not enough: Cloudflare and firewalls

You can have a perfect robots.txt and still be invisible. Security services like Cloudflare filter traffic before it reaches your website, so the bot never even reads the file. Cloudflare has blocked known AI bots by default on new domains since 2025, and in July 2026 it changed its settings to distinguish between search, agent and training bots. Since 15 September 2026, on new domains it blocks training bots by default, as well as agent bots on pages that show ads, and lets search bots through. Bots that visit your site at a user’s request, such as ChatGPT-User or Claude-User, fall into the agent category. If your site runs through Cloudflare, review the AI bot settings in its dashboard: you may be blocking more than you think.

The same applies to security plugins and hosting rules that block by IP or request volume. Anthropic warns that blocking its IPs may prevent its bot from reading your robots.txt, so if you want to control access, do it in robots.txt rather than in the firewall.

Once the bots can get in, the next step is telling them what to read. That is what the llms.txt file is for: robots.txt grants permission, llms.txt provides context.

Common mistakes

MistakeConsequence
Blocking GPTBot or ClaudeBot thinking you are blocking the assistantYou only opt out of training; citations stay the same
Copying a list of “AI bots” without distinguishing typesYou block search bots too and disappear from answers
Leaving a Disallow: / from the staging versionNo bot without its own group can read the site
Using old listsNew bots like OAI-SearchBot or Claude-SearchBot are missing, and retired names like anthropic-ai or Claude-Web are still there
Blocking Google-Extended without knowing what it coversYou may lose citations in Gemini, not just training
Checking robots.txt and forgetting CloudflareThe firewall blocks before the bot reads the file

Checklist

Open yourdomain.com/robots.txt and check it loads without errors.
Confirm there is no general Disallow: / and none under AI bots.
Allow the search bots: OAI-SearchBot, Claude-SearchBot, PerplexityBot.
Allow the user bots: ChatGPT-User, Claude-User.
Make a conscious decision about training bots.
Review the AI bot settings in Cloudflare or your firewall.
Add the Sitemap line with your real sitemap URL.

Keep reading

robots.txt is the first piece of the technical layer of GEO. If you are just getting started, read what Generative Engine Optimization is first, then work through our GEO checklist to review the remaining points in order.

Frequently asked questions

Should I block GPTBot?+

It depends on whether you want your content used to train OpenAI models. Blocking it does not remove you from ChatGPT answers, because search runs on OAI-SearchBot. For a business looking for visibility, allowing it is the usual choice.

If I block GPTBot, will I disappear from ChatGPT?+

No. GPTBot is the training bot. What makes you appear as a source in ChatGPT is OAI-SearchBot, and visits requested by a user are made by ChatGPT-User. They are separate rules in robots.txt.

What is the difference between ClaudeBot and Claude-SearchBot?+

ClaudeBot collects content for training Claude models. Claude-SearchBot indexes pages to improve Claude’s search results. If you block only ClaudeBot, you can still appear in answers.

Does Google-Extended affect AI Overviews?+

No. Google AI Overviews use the regular Googlebot index. Google-Extended controls the use of your content for training Gemini and as a source in Gemini’s answers, so blocking it can affect your citations in Gemini.

Do all AI bots respect robots.txt?+

Those from the major AI companies do, with some nuances for bots acting on user requests. Unidentified scrapers ignore it: for those you use firewall rules or rate limits, not robots.txt.

Will this alone get me into AI answers?+

Not on its own. robots.txt is a necessary condition: without access there are no citations. But whether AI recommends you also depends on your brand entity, your reviews and having clear, citable content.

Sources

  1. Overview of OpenAI crawlers — OpenAI. GPTBot, OAI-SearchBot and ChatGPT-User, and how to control them.
  2. Does Anthropic crawl data from the web, and how can site owners block the crawler? — Anthropic. ClaudeBot, Claude-SearchBot and Claude-User, and the effect of blocking each one.
  3. Perplexity crawlers — Perplexity. Names and roles of Perplexity’s crawlers.
  4. Introduction to robots.txt — Google Search Central. What robots.txt controls and how it works.
  5. ai.robots.txt — Community project on GitHub. Up-to-date list of AI user agents.
  6. List of Google’s common crawlers — Google. Google-Extended: a token without its own user agent that does not affect inclusion or ranking in Google Search.
  7. New options to manage AI traffic — Cloudflare, July 2026. Search, Agent and Training categories and new defaults from 15 September 2026.

Want to know how AI sees you today?

As a GEO agency, we run a free audit: where you show up, where you don't, and what it would take to become the answer.

Free GEO audit