Updated on 21 November 2026, by João Leite, Founder of murmur.
The robots.txt to block ChatGPT carries the name of the OpenAI bot on the User-agent line and Disallow: / right below it. GPTBot closes off training of the models, and OAI-SearchBot closes off ChatGPT search. About the second one, the OpenAI bots page says: “Sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though can still appear as navigational links.” According to the same page, a change to the file takes about 24 hours to take effect in answers with search. The third bot, ChatGPT-User, opens the page when someone asks during the conversation, and that one may not follow the file.
- Each OpenAI bot is blocked in its own group. GPTBot collects content for training, OAI-SearchBot reads pages for ChatGPT search and ChatGPT-User opens the page at the request of the person chatting.
- Opting out of training does not remove the site from search. OpenAI writes that a site can block GPTBot and keep OAI-SearchBot allowed to stay in the results.
- The group with the bot’s name takes the place of the asterisk. According to RFC 9309, the robots.txt standard published by the IETF in September 2022, a bot that finds its own group stops following the
User-agent: *group. - Robots.txt hides nothing. The path written in the file becomes public, and anything confidential needs a password.
- The effect shows up in the answer, not in the file. About 24 hours after the change, the same questions asked to ChatGPT show whether the site stayed among the sources or dropped out of them.
The robots.txt to block ChatGPT chooses between three OpenAI bots
The robots.txt to block ChatGPT chooses between three OpenAI bots, and each one removes something different: training, search or the visit requested in the conversation. Robots.txt is the text file, at the site’s main URL, in which the owner writes what each bot may read. AI crawlers are the programs that AI companies send to sites to read the pages. OpenAI, the company that makes ChatGPT, gives each of its bots a name, and that name is what goes on the User-agent line.
| OpenAI bot | GPTBot | OAI-SearchBot | ChatGPT-User |
|---|---|---|---|
| What it does | collects content that may be used in training OpenAI’s AI models | reads the pages that go into ChatGPT search answers | opens a page when someone asks, during the conversation |
What Disallow: / removes | indicates that the site’s content should not go into training | removes the site from search answers, which may still show it as a navigational link | may remove nothing, because robots.txt rules may not apply to it |
| Who requests the visit | OpenAI | OpenAI | the person chatting with ChatGPT |
| Where it is blocked | in robots.txt | in robots.txt, taking effect in about 24 hours | on the server, through the list of IP addresses that OpenAI publishes |
GPTBot and OAI-SearchBot are each decided separately. Anyone who wants to opt out of training only closes off GPTBot and leaves OAI-SearchBot open: OpenAI writes that a site can allow OAI-SearchBot to appear in search results and block GPTBot to indicate that the collected content should not go into training its models. Anyone who closes both opts out of training and search answers at once. The company’s fourth bot, OAI-AdsBot, only visits pages submitted as ads, and the guide on how to advertise in ChatGPT covers it. The list of OpenAI and Anthropic bots, side by side, is in the guide on llms.txt and AI bots.
How to write the robots.txt to block ChatGPT in six steps
The robots.txt to block ChatGPT is written in six steps, from the file the site already has to checking the answer:
- Open
yoursite.com.br/robots.txtin the browser and see what the file already contains. - Decide what to remove from ChatGPT: training, search or both.
- Write a group for each bot that will be removed, with its name on the
User-agentline andDisallow: /on the line below. - Copy into each named group the rules from the asterisk group that should keep applying to that bot.
- Publish the file at the same address and open
yoursite.com.br/robots.txtagain to see the new text. - Wait about 24 hours and ask ChatGPT again the questions that used to bring up your site.
Blocking both bots, the training one and the search one, looks like this:
User-agent: GPTBot
Disallow: /
User-agent: OAI-SearchBot
Disallow: /
To remove only training, keep only the GPTBot group. Step 4 exists because the named group replaces the asterisk one: if the asterisk closes a folder such as /area-do-cliente/ and the OAI-SearchBot group does not repeat that line, the search bot can then read the folder. The file applies to the URL where it is published, and the robots.txt of a subdomain, such as guia.yoursite.com.br, is another file, covered in the guide on content on a subdomain.
The robots.txt rule, according to RFC 9309: the group with the bot’s name takes the place of the asterisk
According to RFC 9309, the robots.txt standard published in September 2022 by the IETF, the organization that writes the internet’s technical standards, a bot that finds a group with its own name follows that group and stops following the asterisk one. The User-agent: * group applies only to bots that have no group of their own in the file. RFC 9309 also requires that the bot look for the group with its name without distinguishing between uppercase and lowercase.
User-agent: *
Disallow: /area-do-cliente/
User-agent: OAI-SearchBot
Disallow: /rascunhos/
In this file, OAI-SearchBot can read /area-do-cliente/, because it follows only its own group, which closes /rascunhos/. GPTBot, which has no group of its own, is kept out of /area-do-cliente/ and can read /rascunhos/. The same reading applies to any bot not named in the file.
Within a group, when two rules apply to the same address, the longer one wins. RFC 9309 writes: “The most specific match found MUST be used.” The most specific rule is the one with the most octets, the bytes of the path, and, when an Allow and a Disallow tie, the standard recommends using the Allow.
User-agent: OAI-SearchBot
Disallow: /blog/
Allow: /blog/guias/
The address /blog/guias/robots/ matches both rules, and the Allow wins, since it is longer: OAI-SearchBot reads the guides and is kept out of the rest of the blog. If the same group had Allow: /blog/ and Disallow: /blog/, the two rules would be the same length, and the bot would get the Allow.
Three mistakes in robots.txt that unintentionally change what ChatGPT reads
Three mistakes change what ChatGPT can read without the company noticing: two block ChatGPT in robots.txt unintentionally, and one opens up what should stay closed.
Disallow: /in the asterisk group. Anyone who writes that line underUser-agent: *to keep unknown bots away also closes off GPTBot and OAI-SearchBot, when they have no group of their own.- The named group without the asterisk rules. Anyone who creates a group only for OAI-SearchBot and does not repeat in it the folders closed in the asterisk group lets the bot read what was previously closed.
- Robots.txt down with a server error. According to RFC 9309, when the file does not respond because of a server error, the bot treats the entire site as blocked.
The first two are avoided the same way: each OpenAI bot that matters to the company gets a group with its own name, complete, with all the rules that apply to it. The third is checked by opening the file in the browser, which must respond with the text, not with an error page. Outside the file, the hosting and the CDN can also block AI bots, and the technical checklist to appear in ChatGPT and the other AI models includes that item.
ChatGPT-User may not follow robots.txt: what OpenAI writes and where it is blocked
ChatGPT-User may not follow robots.txt because its visit comes from the person chatting with ChatGPT, not from an OpenAI crawl. On the bots page, OpenAI writes that, since these actions are initiated by the user, robots.txt rules may not apply. ChatGPT-User comes in when someone, in the middle of the conversation, asks for a page that ChatGPT needs to open.
For this bot, OpenAI publishes the list of its IP addresses on the same page, in the chatgpt-user.json file. Blocking those addresses on the server, in the firewall or at the CDN is a decision for whoever manages the hosting, because the same block prevents the page from reaching whoever asked for it in ChatGPT. How hosting blocks AI bots, with or without notice to the site owner, is in the guide about llms.txt and AI bots.
In a test by researchers from UPM and ETH Zurich published in July 2026, not yet peer reviewed, ChatGPT requested the robots.txt once and did not open any of the pages on the test site; the result for the other assistants is in the technical checklist to appear in ChatGPT and the other AI models.
How to check whether the robots.txt blocked ChatGPT
To check whether the robots.txt blocked ChatGPT, open the published file, wait about 24 hours and ask ChatGPT the questions that used to bring up the site again. The file opened in the browser must show the groups you wrote, with each bot name exactly as OpenAI publishes it. After the roughly 24 hours OpenAI gives for search to adjust, the same questions show whether the site has left the sources of the answer. A site closed to OAI-SearchBot can still appear as a navigation link, and that does not mean the block failed.
Ask the questions before the change and save the answers, so you can compare them with the ones from after. How to repeat the same questions over time is in the guide about how often to measure brand presence in AI models. If you have access to the server access log, you can also see whether OpenAI’s bots keep requesting the closed pages, and the guide’s FAQ on how ChatGPT search works explains how to recognize each one from the identification it sends.
Whether or not to block ChatGPT is decided by the answer, and murmur measures that answer in its own tool
Whether or not to block ChatGPT is a business decision, and its effect shows up in the answer, not in the file. murmur, a GEO-first agency that puts brands into AI answers across every question in the sector, measures AI answers in its own tool, with no limit on prompts. Every answer is stored in the dashboard, and that is where the company compares ChatGPT’s sources before and after the change to robots.txt.
The case study of Fly Vet, a veterinary marketing agency with its own technology and a murmur client, shows what a ChatGPT answer is worth: on 2 September 2026, it recommended Fly Vet first in 30% of the questions about hiring a veterinary marketing agency, none of which mentioned its name.
The guides murmur writes for a client go on a subdomain of the client’s brand, set up and maintained by murmur, and the main site stays as it is. Once the contract ends, that content remains the client’s.
Frequently asked questions
Does the asterisk group apply to GPTBot?
Only when the file has no group with the name GPTBot. Under RFC 9309, the robots.txt standard, the bot looks first for the group with its own name and, when it finds one, follows only that group; the asterisk group is left for bots without a group of their own. That is why a Disallow: / line in the asterisk group blocks GPTBot, and a group with the name GPTBot and other rules takes it out of that block.
Does the robots.txt hide the page from ChatGPT?
No: the robots.txt is a public file, and RFC 9309 warns that every path listed in it is exposed and easier to find. The file’s rules are also not a form of access authorization, and a bot that does not follow the file, as ChatGPT-User may not, opens the page all the same. A confidential page belongs behind a password, not in a Disallow line.
Do uppercase and lowercase letters in the bot name make a difference?
They do not: under RFC 9309, the bot looks for the group with its name without distinguishing uppercase from lowercase, and a group written gptbot applies to GPTBot. What matters is writing the full name that OpenAI publishes, such as OAI-SearchBot.
Does blocking ChatGPT also apply to Claude and Perplexity?
No: the group with the name of an OpenAI bot applies only to that bot, and Anthropic, which makes Claude, and Perplexity use bots with their own names. Only the asterisk group reaches all of them at once, and only those without a group of their own in the file. The bot names for each AI model are in the guide about llms.txt and AI bots.
Where to start
Before touching the robots.txt, check which AI answers your site already takes part in, because that is what a block can take away. In murmur’s free diagnostic, the site address is enough to see what AI models answer when your buyer asks: there is no sign-up, it takes less than two minutes, and the full report arrives by email. murmur’s sector studies show which brands AI models recommended in each sector murmur measured.
Read also
- llms.txt: What It Is, What It Is For, and Whether It Works to Get Cited by AI
- Technical checklist to appear in ChatGPT and other AI models: what to check on your site
- How ChatGPT search works: from the question to the sources in the answer
References
- OpenAI, “Overview of OpenAI Crawlers”, undated page. What GPTBot, OAI-SearchBot and ChatGPT-User do, the effect of blocking each one, the list of ChatGPT-User IP addresses and the roughly 24 hours for search to adjust to the change in the robots.txt. https://developers.openai.com/api/docs/bots (accessed on 10 November 2026).
- IETF, “RFC 9309”, September 2022. The robots.txt standard: the group with the bot name in place of the asterisk, the name compared without regard to case, the longest rule and Allow on a tie, the listed path that becomes public, the server error treated as a full block and the rules that are not access authorization. https://www.rfc-editor.org/rfc/rfc9309.html (accessed on 10 November 2026).
- Lopez-Fonseca, Rodriguez, Bechtold and Del Alamo, “Do Generative AI Assistants Respect robots.txt? Tracing Web Access Beyond Visible Answers”, arXiv 2607.14447, version 2 of 19 July 2026, not peer reviewed. Ten AI assistants and 200 attempts on a test site, with pages allowed and blocked in the robots.txt. https://arxiv.org/abs/2607.14447 (accessed on 8 October 2026).
- murmur, Fly Vet case study. https://murmur.marketing/en/cases/fly-vet/ (accessed on 6 November 2026).