Block AI crawlers in robots.txt
Last checked September 18, 2026
Block AI crawlers in robots.txt only after you separate training bots from search bots. The wrong rule can drop a live site from AI answers.
Blocking “AI” is not one switch. robots.txt is a text file on your site that asks crawlers, the programs that fetch pages, to stay in or stay out. Each AI company uses different tokens in that file for training and for search. Block AI crawlers in robots.txt only after you decide which of those you mean. A rule aimed at training can be the wrong rule for AI answers, and a rule aimed at AI answers can leave ordinary Google Search untouched. There is no published, primary-source measure of how these settings change traffic, so watch your own numbers after any change.
Training versus search: why AI bots have separate tokens
Training is the use of pages to build or improve a model. Search is the use of pages to answer a person who asked a question, including in an AI answer. A site can allow one and refuse the other, because the companies publish separate tokens.
A token here is the name you put in robots.txt, such as GPTBot or Google-Extended. It is not a password. Crawlers that honor robots.txt read the file and apply the group that matches their token. Crawlers that ignore the file are outside what this file can do. The sources below describe the tokens. They do not claim every bot on the internet obeys them.
The cost of mixing the tokens up is concrete. Opting out of the search token can remove the site from that product’s AI answers. Leaving the training token allowed does not, by itself, do that. The next two sections are the pairs to keep straight.
OpenAI: GPTBot versus OAI-SearchBot
OpenAI’s overview of its crawlers, checked in 2026, says the tokens are separate. OAI-SearchBot is what surfaces websites in ChatGPT search results. GPTBot relates to training OpenAI’s generative AI foundation models. Each setting is independent. A site can allow OAI-SearchBot and disallow GPTBot.
Sites that opt out of OAI-SearchBot will not be shown in ChatGPT search answers. That is the trade. Refusing the search bot means refusing the answers that would have cited the site. OpenAI says robots.txt changes can take about 24 hours to take effect for search. A test five minutes later can be early.
Do not treat GPTBot as the ChatGPT search switch. Disallowing it asks OpenAI not to use the site for training those foundation models. It is not the token OpenAI names for search answers.
Google: Google-Extended versus Googlebot
Googlebot is the crawler associated with Google Search. Google-Extended is not a second copy of it.
Google’s documentation of its common crawlers, checked in 2026, describes Google-Extended as a standalone robots.txt product token. Publishers use it to manage whether content Google crawls may be used to train future Gemini models. It has no separate HTTP user agent. Crawling uses existing Google user agents. An HTTP user agent is the name a crawler sends when it requests a page. Google-Extended is a token you can name in the file even though the fetch itself comes through Google’s existing agents.
Disallowing Google-Extended is about training future Gemini models. It is not a documented way, in these sources, to leave Google Search.
Google’s page on AI features and your website, last updated in December 2025, says there are no additional requirements and no special optimizations needed to appear in AI Overviews or AI Mode. No special schema.org structured data is required. Normal Search technical requirements apply. Snippet controls such as nosnippet still work. nosnippet is an existing control that tells Google not to show a text snippet from the page. It is not a new AI token.
So the Google pair is: Googlebot for being crawled for Search, Google-Extended for whether that crawled content may train future Gemini models, and nosnippet if you need to limit what is shown from the page. Do not collapse those into one Disallow line.
Example robots.txt setups for three goals
These are illustrations of the tokens above. They are not a measured traffic recipe. Put the file at the root of the host that serves the site. Receiving a handoff is about publishing the finished files. The crawler file has to be one of the files the host actually serves.
Maximum visibility. Do not disallow GPTBot, OAI-SearchBot, or Google-Extended. Leave Googlebot allowed, which is the usual default if you have no rule against it. This asks to be available for OpenAI training, ChatGPT search, Google Search, and the Gemini training use that Google-Extended governs. Google’s AI features page still says no special file is required to be eligible for AI Overviews.
No training, still available to search. Disallow the training tokens and leave the search tokens alone.
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: OAI-SearchBot
Allow: /
Googlebot is not disallowed in that example, so the file is not asking Google Search to stay away. OpenAI’s search bot is explicitly allowed. OpenAI says a change can take about 24 hours to affect search.
Blocking AI search answers from OpenAI. Disallow OAI-SearchBot. OpenAI says sites that opt out will not be shown in ChatGPT search answers. For Google, these sources do not give a robots.txt token whose job is “block AI Overviews.” They say normal Search requirements apply, and nosnippet still works. Disallowing Google-Extended does not, on the documentation above, do the job of nosnippet.
User-agent: OAI-SearchBot
Disallow: /
What about llms.txt?
llms.txt is a proposed standard, checked in 2026. A proposal is a published idea for a file that would point models at a short version of a site. It is not, in the sources here, a requirement from Google or OpenAI.
There are no primary-source figures yet on how many sites use the file. Google’s AI features documentation says no special optimization is needed to appear in AI Overviews or AI Mode. A proposed file is optional extra, not the gate those docs describe.
If you publish one, treat it as a courtesy copy of what you want a model to read. Do not treat it as a substitute for robots.txt, and do not treat it as a ranking switch.
Key takeaways
GPTBotandOAI-SearchBotare independent. Opting out ofOAI-SearchBotremoves the site from ChatGPT search answers. OpenAI says search changes can take about 24 hours.Google-Extendedis a product token for training future Gemini models. It has no separate HTTP user agent. It is notGooglebot.- Google says AI Overviews and AI Mode need no special optimization and no special schema.
nosnippetstill works. llms.txtis a proposal. No primary-source adoption figure was found. No traffic case study of these settings was found.
Common questions
If I block GPTBot, do I disappear from ChatGPT search?
Not by that token. OpenAI says GPTBot relates to training foundation models and OAI-SearchBot is what surfaces sites in ChatGPT search. The settings are independent. To stay out of ChatGPT search answers, opt out of OAI-SearchBot. OpenAI says those sites will not be shown.
Does Google-Extended turn off AI Overviews?
The documentation cited here does not say that. Google-Extended manages whether crawled content may train future Gemini models, and it has no separate user agent. AI Overviews, Google says, follow normal Search requirements. nosnippet still works if you need to limit the snippet.
How soon does a robots.txt change affect ChatGPT search?
OpenAI says robots.txt changes can take about 24 hours to take effect for search. Checking ChatGPT search immediately can still show the old behavior. The crawler overview does not give a tighter clock than that note of about 24 hours.
Should I add llms.txt to rank in AI answers?
There is no adoption statistic from a primary source, and no verified traffic study. Google says no special optimization is required for AI Overviews or AI Mode. llms.txt is a proposal at llmstxt.org. It does not replace the token rules above.
What to do next
If you want a person to read the live robots.txt and say which of these tokens it actually sets, use the contact page or write to hello@jocal.dev. Jocal designs and rebuilds websites.
Sources
- OpenAI, checked 2026. Overview of OpenAI crawlers.
- Google Search Central, checked 2026. Google’s common crawlers.
- Google Search Central, last updated December 2025. AI features and your website.
- llmstxt.org, checked 2026. llms.txt proposal.