How to Block GPTBot Using robots.txt

GPTBot is OpenAI's web crawler that collects data for ChatGPT and other models. Here's how to control its access.

Why block GPTBot?

Common reasons to block:

How to block GPTBot (complete block)

Add these lines to your robots.txt file:

User-agent: GPTBot
Disallow: /

How to partially block GPTBot (specific directories)

User-agent: GPTBot
Disallow: /private/
Disallow: /internal/
Allow: /

How to allow GPTBot (recommended for AI visibility)

If you want ChatGPT to cite your content:

User-agent: GPTBot
Allow: /

How to test if GPTBot is blocked

UltraScout's free AI SEO Score instantly checks your robots.txt and shows:

Important notes

What to do if you accidentally blocked GPTBot

Run the free AI SEO Score tool. If it shows GPTBot blocked, upgrade to the AI Search Readiness Audit (£29) for the exact robots.txt fix code.

Check your AI SEO Score — free, instant, no sign-up required

Get My Free AI SEO Score → View Full Audit Report