What GPTBot does
Collects public web content that may be used to train OpenAI’s models.
Blocking GPTBot does not remove you from ChatGPT search; that uses OAI-SearchBot. Block both if you want neither.
How to block GPTBot in robots.txt
Add these two lines to the robots.txt file at the root of your domain: User-agent: GPTBot and, on the next line, Disallow: /
To block only part of the site, replace / with a path such as /private/. Rules apply per host, so a subdomain needs its own robots.txt.
How to allow GPTBot
If you have no rule for GPTBot and no blanket User-agent: * Disallow: /, it is already allowed. To allow it explicitly while blocking other bots, add User-agent: GPTBot followed by Allow: /
Check it worked
- Publish the updated robots.txt and open it in a browser at /robots.txt to confirm the live file has the rule.
- Run the free AI crawler check: it reads your live robots.txt and reports whether GPTBot is allowed or blocked.
- Look for GPTBot in your server or CDN logs over the following weeks to see whether requests stop.
robots.txt is a public request, not access control. OpenAI publishes its own documentation for GPTBot; confirm the current token and behaviour there, since operators change them.
- Check which AI bots can read your siteTests your live robots.txt against every major AI agent.
- Block AI crawlersGenerate robots.txt rules for training bots, search bots or both.
- Every AI crawler user agentThe full list with operators and purposes.
- GPTBot vs ChatGPT-UserWhy OpenAI uses more than one agent.
Related explainers
- Why is my page not indexed
- robots.txt vs noindex
- Missing canonical
- Free technical SEO audit
- AI crawler user agents
- OAI-SearchBot user agent
- ChatGPT-User user agent
- ClaudeBot user agent
- Claude-SearchBot user agent
- PerplexityBot user agent
- Google-Extended user agent
- Applebot-Extended user agent
- CCBot user agent
- Bytespider user agent
- Meta-ExternalAgent user agent
- Amazonbot user agent
- SEO MCP server
- 404 vs 410
- hreflang vs canonical
- What is a canonical tag