OpenAI · Training & scraping
GPTBot robots.txt guide
OpenAI’s crawler collects web content that may be used to train its generative AI foundation models. It is separate from ChatGPT’s search crawler.
Reviewed December 1, 2026 · Official documentation
GPTBot robots.txt rules
Add the chosen group to your site’s robots.txt. Review existing rules for this token first: repeated matching groups combine.
Block all paths
User-agent: GPTBot Disallow: /
Allow all paths
User-agent: GPTBot Allow: /
Restrict selected paths
User-agent: GPTBot Allow: / Disallow: /private/ Disallow: /api/
Test GPTBot access
Blocked/
Line 2 · Disallow: /
Specific User-agent: GPTBot
Site-wide policy: Blocked
What changes if you block GPTBot?
Google & Bing Search
This token does not control Googlebot or Bingbot. Blocking it is not a Google or Bing crawl restriction; keep your search crawler rules separate.
AI visibility & content use
Disallowing GPTBot expresses an opt-out from this training crawl. It does not independently block ChatGPT Search: that is managed with OAI-SearchBot. It does not erase data previously collected.
Identify genuine requests
- robots.txt token
- GPTBot
Compare the source IP address with the operator’s published IP ranges. A User-Agent header alone can be spoofed; do not trust an invented reverse-DNS pattern.
Verification referenceUser-Agent versions change. Use the operator’s current examples rather than treating a sample header as proof of identity.
Which robots.txt rule takes priority?
In this inspector, matching groups for GPTBot are combined. If a specific group exists, the wildcard group (User-agent: *) is not added. Without a specific group, the wildcard applies. With neither, access defaults to allowed.
For each path, the longest matching directive wins; Allow wins a tie. An empty Disallow does not block anything. A policy result describes the written rules, not proof that a crawler follows them.
Read RFC 9309Common questions about GPTBot
Can I block training but allow ChatGPT Search?
Yes. Disallow GPTBot and allow OAI-SearchBot in separate groups. Also check that your firewall allows the search crawler’s published IP addresses.
Does blocking GPTBot remove earlier training data?
No. A robots.txt update is a future crawling preference, not a deletion request or a way to undo model training.
Does blocking GPTBot protect private pages?
No. robots.txt is public and voluntary. Use authentication, authorization, and appropriate server controls for private content; do not publish secret paths as a security measure.