Training

GPTBot

Crawls public web content that may be used to train OpenAI generative AI foundation models.

Training: Collects content to train AI models. Block it if you don't want your content to become training data.

Company
OpenAI · website
User-agent contains
GPTBot
robots.txt token
GPTBot · Respects robots.txt
Official IP ranges
18 ranges · source · updated 2026-12-02
Documentation
Official docs
Sources
platform.openai.com
Added · verified
2026-12-02 · 2026-12-02

Block GPTBot

robots.txt
User-agent: GPTBot
Disallow: /
nginx (in the http block, then: if ($ai_bot) { return 403; })
map $http_user_agent $ai_bot {
    default 0;
    "~*GPTBot" 1;
}
Apache / .htaccess
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} (GPTBot) [NC]
    RewriteRule .* - [F,L]
</IfModule>
Cloudflare WAF expression
(lower(http.user_agent) contains "gptbot")

Want to block more bots at once? Use the generator.

Example user-agent

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot

Other OpenAI bots

Something wrong or out of date? Edit this bot on GitHub or report a change.