OpenAI · Model training
How to Allow or Block GPTBot in robots.txt
Crawls web pages to train future OpenAI generative models.
Updated
- Official User-Agent
- GPTBot
- Owner
- OpenAI
- Purpose
- Model Training
- Recommended action
- Block
- What blocking it means
- Collects content to train foundation models. Blocking it does not remove you from AI search answers.
GPTBot robots.txt rules
Allow GPTBot
User-agent: GPTBot Allow: /
Block GPTBotRecommended
User-agent: GPTBot Disallow: /
Block GPTBot from specific folders only
User-agent: GPTBot Disallow: /private/ Disallow: /drafts/ Allow: /
Place these rules in /robots.txt at the root of your domain. Crawlers cache robots.txt, so changes apply the next time GPTBot re-fetches it. Allow up to a day or more. If no group names GPTBot, it follows your User-agent: * rules. robots.txt is a voluntary standard, not access control. See the FAQ for details.
GPTBot FAQ
What is GPTBot?
GPTBot is a web crawler operated by OpenAI. Crawls web pages to train future OpenAI generative models.
How do I block GPTBot in robots.txt?
Add these lines to the robots.txt file at the root of your domain: "User-agent: GPTBot" followed by "Disallow: /". To block only part of the site, replace / with a path such as /private/.
How do I allow GPTBot in robots.txt?
Add "User-agent: GPTBot" followed by "Allow: /". If no rule names GPTBot, it falls back to your "User-agent: *" rules, so check that those don't block it.
What happens if I block GPTBot?
OpenAI will stop using your pages to train future models. You still appear in AI search answers, because those use separate search crawlers.
Should I allow or block GPTBot?
AEO Grader recommends blocking GPTBot if you want to opt out of AI model training. Blocking it doesn't stop separate AI search crawlers, such as OAI-SearchBot or PerplexityBot, from fetching your pages. The right choice depends on your content licensing goals.
Does blocking GPTBot remove content it already collected?
No. robots.txt only affects future crawling. Content collected before you added the rule isn't removed. Check OpenAI's own documentation for any separate opt-out or removal process.