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.
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
Frequently asked questions
Does blocking GPTBot remove my site from ChatGPT?
Does ChatGPT-User follow robots.txt?
How long until the block takes effect?
Related tools
Open Graph Visualizer
Preview how your website links will look when shared on Google, Twitter, Facebook, and Discord.
Use toolSSL Checker
Check a site's certificate, TLS versions, HTTP/2 and HTTP/3 support, post-quantum key exchange, HSTS and redirects, or compare two sites.
Use toolDNS Lookup
Look up a domain's DNS records on Cloudflare or compare several resolvers at once, and read its SPF, DMARC and DKIM records in plain words.
Use tool