AI Search

Does GPTBot Respect Robots.txt? What OpenAI's Docs Say in 2026

By BacklinkPrice Team · Dec 1, 2026 · 9 min read
Cover for Does GPTBot Respect Robots.txt: a search robot icon on a dark blue background

GPTBot respects robots.txt, according to OpenAI's crawler documentation. Blocking it opts your content out of training, but it does not remove your pages from ChatGPT search.

Quick answer: Yes, GPTBot respects robots.txt. OpenAI's own crawler documentation states that GPTBot follows robots.txt directives, and that disallowing it signals your content should not be used to train OpenAI's generative AI foundation models. The catch is that GPTBot is only the training crawler, so blocking it does not remove your pages from ChatGPT search results.

TL;DR: GPTBot obeys robots.txt. Block it to opt out of training, allow it to keep training access open, and remember that ChatGPT search is controlled by a different crawler, OAI-SearchBot.

Key takeaways

  • GPTBot is OpenAI's crawler for content that may be used to train its generative AI foundation models, according to OpenAI's crawler documentation.
  • Disallowing GPTBot in robots.txt signals that your content should not be used for training, according to the same OpenAI documentation.
  • Blocking GPTBot does not remove your pages from ChatGPT search, because search is handled by OAI-SearchBot, a separate crawler with its own robots.txt setting.
  • Each setting is independent, so you can allow OAI-SearchBot for search while disallowing GPTBot for training, according to OpenAI.
  • GPTBot's user agent token is GPTBot, currently at version 1.4, and OpenAI publishes its IP ranges at openai.com/gptbot.json.
  • If you are weighing whether to block it at all, read should you block GPTBot first, because the trade-off is visibility against training use.

What GPTBot actually is

GPTBot is the web crawler OpenAI uses to gather content that may be used to train its generative AI foundation models. OpenAI describes its purpose in one line: it crawls content to make the models more useful and safe. It is not a search crawler, and it does not decide which pages appear in ChatGPT answers.

Every GPTBot request carries a user agent string that identifies it. OpenAI's example string is Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot. The version number changes over time, so log filters should match on the token GPTBot, not the full string.

OpenAI also publishes the IP addresses GPTBot crawls from, in a file at openai.com/gptbot.json. That matters because a user agent string can be copied by anyone, so the only way to confirm a visit really came from OpenAI is to check the source address against that published list. Do AI crawlers follow links explains how crawler behavior differs across the major AI bots.

The short answer: yes, with proof

Yes. OpenAI documents GPTBot with a robots.txt tag, and its crawler page states plainly that disallowing GPTBot indicates a site's content should not be used in training generative AI foundation models. A tag that only worked sometimes would not be documented as a control, so the honest reading is that GPTBot is built to honor the file.

Independent checks agree. Promptwatch records GPTBot as respecting robots.txt, and Cloudflare classifies it the same way in its bot directory. Sona's 2026 guide to GPTBot robots.txt rules reaches the same conclusion after testing server logs against OpenAI's published IP ranges.

OpenAI lists GPTBot at version 1.4 and states that search systems take about 24 hours to adjust after a robots.txt change, according to OpenAI's Overview of OpenAI Crawlers, published in 2026. The same page confirms that the GPTBot and OAI-SearchBot settings are independent of each other.

Respect is not the same as a guarantee. Robots.txt is a request, not access control, so sensitive content still belongs behind authentication. A polite crawler honors the file, and a scraper that copies the GPTBot user agent will not. That is why the IP check in the last section matters more than the token alone.

GPTBot vs OAI-SearchBot vs ChatGPT-User

OpenAI runs three separate agents, and mixing them up is the most common mistake in this whole topic. GPTBot crawls for training, while OAI-SearchBot crawls so pages can surface in ChatGPT search results.

ChatGPT-User fetches a single page in real time when a user asks ChatGPT to open a link. Each one has its own robots.txt behavior.

AgentWhat it doesRobots.txt controlIf you block it
GPTBotCrawls content that may train foundation modelsUser-agent: GPTBotContent excluded from training
OAI-SearchBotCrawls pages for ChatGPT search resultsUser-agent: OAI-SearchBotPages stop appearing in ChatGPT search answers
ChatGPT-UserFetches one page when a user opens a linkNone, it is user-triggeredMay not apply, since the fetch is user-initiated

The split matters because the two named crawlers are independent. OpenAI states that a webmaster can allow OAI-SearchBot in order to appear in search results while disallowing GPTBot to indicate that crawled content should not be used for training. Allowing one never implies the other.

ChatGPT-User is the odd one out. OpenAI states that it does not crawl a whole website automatically, and because the fetch is started by a user, robots.txt rules may not apply to it. What is ChatGPT-User covers this crawler in detail, including why blocking it in robots.txt usually achieves nothing.

How to allow or block GPTBot in robots.txt

The rules are short. To allow GPTBot across a whole site, add a group with the GPTBot token and an Allow directive. To block it, use the same group with Disallow. The file lives at the root of the domain, at yoursite.com/robots.txt, and each bot needs its own group.

User-agent: GPTBot
Allow: /

User-agent: OAI-SearchBot
Allow: /

To stay in ChatGPT search while opting out of training, flip the second group: allow OAI-SearchBot and disallow GPTBot. That combination is the one OpenAI documents as supported, and it is the most common setup for publishers that want AI visibility without training use.

User-agent: OAI-SearchBot
Allow: /

User-agent: GPTBot
Disallow: /

The trap is the wildcard group. A file that starts with User-agent: * and Disallow: / blocks every bot without its own named group. Crawlers match the most specific user-agent block, so a named GPTBot group with Allow protects it even when a wildcard disallow exists. Sona's guide to allowing GPTBot calls this the most common reason AI crawlers get locked out by accident.

Keep private paths out of AI crawlers even when you allow the rest of the site. A GPTBot group can allow the public site and still disallow admin, cart, and staging paths. That keeps the choice about content, not about security, and how to get cited by ChatGPT shows which public pages are worth keeping open.

How to check whether GPTBot follows your rules

A rule you never verify is a guess. After changing robots.txt, check the server logs for GPTBot requests and confirm the source addresses match OpenAI's published ranges. A matching token with a non-OpenAI address is a scraper wearing the label, not the real crawler.

Give the change time. OpenAI states that it can take about 24 hours from a robots.txt update for its search systems to adjust, so a GPTBot visit the same afternoon does not prove the old rules are still in force. Wait a full day, then check the logs again.

Test the file itself too. Fetch yoursite.com/robots.txt in a browser and read it as a crawler would, then use a live crawl probe if you have one. Sona's guide recommends a probe because a rule that looks right can still be undone by a conflicting wildcard or a firewall rule in front of the site.

Track what changes after the edit. If citations fall after you block OAI-SearchBot by mistake, the logs will show the gap first. How to track AI citations covers the tools that show whether your pages are still being named in AI answers.

What blocking GPTBot does not do

Blocking GPTBot does not remove your site from ChatGPT. Search answers come from OAI-SearchBot, and OpenAI states that sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though they can still appear as navigational links. If your pages vanish from ChatGPT answers after a robots.txt change, check the OAI-SearchBot group first, because that is the one that controls search.

Blocking GPTBot also does not stop ChatGPT-User. That agent fetches a page when a user asks ChatGPT to open it, and OpenAI states that user-triggered actions may not be bound by robots.txt. A Disallow for GPTBot will not stop a user from opening your link inside ChatGPT.

Finally, blocking GPTBot does not delete anything OpenAI already has. The disallow signals that content should not be used for training from that point on, and it is a policy signal, not a delete request. If your goal is to remove content from a model that already trained on it, robots.txt is the wrong tool for that job.

Frequently Asked Questions

Does GPTBot respect robots.txt?

Yes. OpenAI documents GPTBot with its own robots.txt tag, and its crawler page states that disallowing GPTBot indicates content should not be used for training. Independent checks from Promptwatch and Cloudflare record the same behavior.

Does blocking GPTBot remove my site from ChatGPT?

No. ChatGPT search is handled by OAI-SearchBot, a separate crawler with its own robots.txt setting. Blocking GPTBot only affects training use, while blocking OAI-SearchBot is what removes pages from ChatGPT search answers.

What is the difference between GPTBot and OAI-SearchBot?

GPTBot crawls content that may be used to train OpenAI's foundation models. OAI-SearchBot crawls pages so they can surface in ChatGPT search results. Each one has its own robots.txt group, and the settings are independent.

Can I allow ChatGPT search and block training at the same time?

Yes. Add one robots.txt group that allows OAI-SearchBot and a separate group that disallows GPTBot. OpenAI documents this exact combination as supported.

How long does a robots.txt change take to work?

OpenAI states that it can take about 24 hours from a robots.txt update for its search systems to adjust. Wait a full day before judging whether the change took effect.

Can a scraper fake the GPTBot user agent?

Yes. A user agent string is just text, so anyone can copy it. Verify GPTBot visits by checking the source IP address against OpenAI's published crawler IP ranges at openai.com/gptbot.json.

Expert verdict

Best for: publishers that want to choose between training use and search visibility, and are willing to verify the result in their logs.

Not for: anyone treating robots.txt as security, because it is a request that polite crawlers honor and scrapers ignore.

Pros: the rules are two lines per bot; the GPTBot and OAI-SearchBot settings are independent; OpenAI documents the behavior and publishes IP ranges for verification.

Cons: robots.txt is not enforcement; ChatGPT-User may ignore it; changes take about a day to take effect.

Bottom line

GPTBot respects robots.txt, so use the file to state your choice. Allow GPTBot and OAI-SearchBot to stay visible in ChatGPT, block GPTBot alone to opt out of training, and verify the result in your logs against OpenAI's published IP ranges.

Sources

BacklinkPrice Team
Written by
BacklinkPrice Team
Link building and backlink pricing research

The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.

More from BacklinkPrice Team

Related guides