How to Configure GPTBot vs. OAI-SearchBot in robots.txt
OpenAI operates three distinct user-agents with completely different purposes. Blocking GPTBot stops OpenAI from ingesting your articles and documentation into future foundation-model training sets, while keeping OAI-SearchBot and ChatGPT-User allowed preserves your site's eligibility for live ChatGPT Search citations and user-triggered browsing.
Recommended Policy: Allow ChatGPT Search, Block Model Training
User-agent: GPTBot Disallow: / User-agent: OAI-SearchBot Allow: / Disallow: /admin/ Disallow: /api/ User-agent: ChatGPT-User Allow: /
How to Verify Your GPTBot Rule
Deploy the generated file to https://yourdomain.com/robots.txt and confirm it returns HTTP 200 OK with Content-Type: text/plain. Note that OpenAI caches robots.txt for up to 24 hours, so policy updates typically take effect within one day.