How do you block GPTBot in robots.txt?

By TechCompare · Updated · How we check

Add User-agent: GPTBot and Disallow: / to robots.txt. That covers GPTBot only. OpenAI's search crawler OAI-SearchBot and its ChatGPT-User fetcher have their own names and their own rules.

GPTBot is the name OpenAI's training crawler uses in robots.txt. To block it, add a group that names GPTBot and disallows the whole site. OpenAI says that signals the site's content shouldn't be used to train its generative AI models. The file works one crawler name at a time, so this group leaves every other bot alone.

Topic
Block GPTBot
OpenAI's training crawler
Category
AI crawlers
GPTBot, Google-Extended and the rest

How it works

OpenAI runs three bots and lists each on its bots page. GPTBot is used to make its generative AI foundation models more useful and safe. OAI-SearchBot surfaces websites in ChatGPT's search features. ChatGPT-User visits a page when a person asks ChatGPT about it. Blocking GPTBot doesn't touch the other two. OpenAI says sites that opt out of OAI-SearchBot won't be shown in ChatGPT search answers, though they can still appear as navigational links. So a site that wants to be cited in ChatGPT search but not used for training blocks GPTBot and leaves OAI-SearchBot allowed. For a partial block, swap the slash for a folder, like Disallow: /private/. To test it, enter your site, set the crawler to GPTBot and pick a path. The table shows the verdict and the line that decided it. Keep in mind that robots.txt is a request. RFC 9309 says its rules are not a form of access authorization, so private pages need a login.

Verdict

Put the GPTBot group in robots.txt, test a few paths from your site, and decide separately about OAI-SearchBot. If you want ChatGPT to find and cite your pages, leave that one allowed. If a page must stay private, protect it with a login, since robots.txt only asks.

More Robots.txt scenarios

Google-Extended
A token for Gemini training, not a crawler. A rule for it never reaches Googlebot or Google Search.
View details
Block AI, keep search
Name each training crawler, leave Googlebot and Bingbot alone, and choose on purpose about the AI search bots.
View details
Can Bingbot crawl a page?
A bingbot group replaces the * group, so rules meant for everyone can quietly stop applying to Bing.
View details

Frequently asked questions

Does blocking GPTBot remove my site from ChatGPT?
No. GPTBot is the training crawler. ChatGPT's search features use a different bot, OAI-SearchBot, so blocking GPTBot alone leaves search alone. Block OAI-SearchBot too and that changes.
Does ChatGPT-User follow robots.txt?
OpenAI says robots.txt rules may not apply to it, since a person starts the visit by asking ChatGPT about a page. The tester still shows what your file says for that name, so you can see how the rules read.
How long until the block takes effect?
OpenAI gives a time only for search: it can take about 24 hours after a robots.txt update for those systems to adjust. Its page gives no time for GPTBot, so recheck the file and give it a day.