Robots.txt and AI crawlers: GPTBot, OAI-SearchBot, ClaudeBot, Google-Extended
Published 15 November 2026. Updated 15 November 2026.
Tunji Williams-Fulwood, Luminara Digital
One file, several decisions
robots.txt is a text file at the root of the host. Each group starts with User-agent and then Allow or Disallow. The tokens below are not interchangeable. Copying Disallow: / under the wrong name is how an agency disappears from a product it wanted to be in, or stays in a training crawl it wanted to leave.
Decide search and training separately, then write the lines. If you want to be eligible for an assistant's search answers, allow that product's search crawler. If you do not want the pages used to train that company's models, disallow the training token. Google's control for Gemini is a token, not a second crawler that shows up in the log under its own name. The notes below follow the vendor pages linked at the end.
OpenAI: GPTBot, OAI-SearchBot, and ChatGPT-User
OpenAI's crawler overview says OAI-SearchBot surfaces websites in ChatGPT search features. Opting out means the site will not be shown in those search answers. It can still appear as a navigational link. OpenAI recommends allowing OAI-SearchBot, and allowing the IP ranges they publish, if you want to appear. They also say a robots.txt change can take about 24 hours before their search systems adjust. That is a delay for the rule, not a promise that a mention appears 24 hours later.
GPTBot crawls content that may be used to train generative foundation models. Disallowing it tells OpenAI the content should not be used for that training. The settings are independent. OpenAI's own example of that independence is allowing search while disallowing training. If you allow both, they may use one crawl for both jobs so they do not fetch twice.
ChatGPT-User is different. OpenAI uses it when a person asks ChatGPT or a custom GPT to visit a page, and for GPT Actions. It is not an automatic crawl of the web. OpenAI says robots.txt rules may not apply because a person started the fetch, and that this token is not how you manage Search opt-out. Write the OAI-SearchBot group for search. Use a login or a firewall for anything that must stay private even when a person asks.
Anthropic: ClaudeBot and the search bot
Anthropic's help article names three robots. ClaudeBot collects content that could contribute to training. Restricting it signals that future material should stay out of training sets. Claude-SearchBot crawls to improve search results. Disabling it stops that indexing and, Anthropic says, may reduce visibility and accuracy in search results. Claude-User fetches when a person asks. Disabling it stops retrieval for that user-directed fetch, which may reduce visibility there too.
Anthropic says the bots follow robots.txt, including Disallow, and that they support the non-standard Crawl-delay line. Put the rules in the robots.txt of every subdomain you want to cover. Blocking an IP is not the opt-out they describe: they say that can stop the bot from reading robots.txt, so the opt-out may not stick. Do not publish a Crawl-delay unless you mean it. A delay of many seconds on a small site is usually unnecessary.
Google-Extended is a token, Googlebot is Search
On Google's common crawlers page, Google-Extended has no HTTP user-agent of its own. Crawling is done with existing Google user agents. The robots.txt token is the control. Google describes it as the way a publisher manages whether crawled content may train future Gemini models that power Gemini apps and Vertex AI, and whether it may be used for grounding in those Gemini apps and in Grounding with Google Search on Vertex AI. Grounding, in their words, means providing content from the Search index to the model at prompt time.
The same paragraph says Google-Extended does not affect a site's inclusion in Google Search and is not used as a ranking signal in Google Search. Google's crawling overview points Google Search at Googlebot, and Gemini apps at Google-Extended. If you disallow Googlebot, you are opting out of Search, not only out of Gemini. If you disallow only Google-Extended, Search inclusion stays as it was. The crawler page also says Google intends to support a shared AI-training preference in robots.txt in early 2027. Until that is live, Google-Extended is the control they document.
A starting file, with search and training split
This is a starting point for an agency that wants to be eligible for the search products above and out of the training crawls those vendors describe. It is not legal advice, and it is not every bot on the internet. Merge it into the robots.txt you already have. Do not replace a file that also lists your sitemap and your admin paths. The robots.txt generator has the same switches, including a preset that allows answer crawlers and blocks training crawlers. It runs in the browser.
Allow Google-Extended in this sample because an agency that wants Gemini grounding leaves that token open. If you do not want Gemini training or grounding, change that group to Disallow: /. That change still leaves Googlebot, and therefore Google Search, alone. Say the choice out loud before you deploy it.
User-agent: OAI-SearchBot
Allow: /
Live answers from specific AI products stay Not measured unless you are on Agency or you connect your own search login.
User-agent: GPTBot
Disallow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Googlebot
Allow: /
User-agent: Google-Extended
Allow: /
Sitemap: https://example.com/sitemap.xml
Check the live file
After a change, keep the previous file in version control. OpenAI's about-24-hour note means you should not judge a search reply the same afternoon. Pair the file check with the named-mention check a bit later, and write down the date.
- Open https://yourdomain/robots.txt. Confirm you are on the host buyers use, including www if that is the canonical host.
- Search the file for Disallow: / under OAI-SearchBot, Claude-SearchBot, or Googlebot. A sitewide disallow there blocks the search job.
- Repeat for each subdomain that serves a public page, as Anthropic asks.
- Fetch a suburb URL with a browser and with JavaScript disabled. A 403 or a challenge page is a block robots.txt cannot fix.
- Run the free check. It reads robots.txt and reports whether common AI crawlers are blocked. A blocked row is a fail you can see. It is not a count of mentions.
What this guide does not measure
The steps above change what a crawler can read and what your pages say. They are not a tally of mentions. Live answers from specific AI products stay Not measured unless you are on Agency or you connect your own search login. Measured, Estimated, and Not measured are defined on the methodology page.
Common questions
Does blocking GPTBot stop search mentions?
OpenAI says GPTBot is for training foundation models and that the setting is independent of OAI-SearchBot. Search opt-out is the OAI-SearchBot token. A disallow on GPTBot alone is not the search switch.
Does Google-Extended remove the site from Google Search?
Google says Google-Extended does not affect inclusion in Google Search and is not a ranking signal there. Googlebot is the token for Search, including Search features. Google-Extended controls Gemini training and grounding.
Does every bot honour robots.txt?
OpenAI says ChatGPT-User is started by a person, so robots.txt rules may not apply, and that this token is not used to decide Search inclusion. Anthropic says its bots honour robots.txt, including Claude-User. A private URL still needs a real access control. robots.txt is a request to well behaved crawlers.
Sources: OpenAI crawlers · Google common crawlers · Google crawling overview · Anthropic crawlers
More guides: All guides · Robots.txt generator · llms.txt for agencies · How an assistant reads your site · Check a named mention
All guides · Run the free check