robots.txt for AI Crawlers: Should You Allow GPTBot and ClaudeBot?

robots.txt is a small text file that tells crawlers which parts of your site they may read. AI crawlers respect it — so this one file can decide whether ChatGPT, Claude, and Perplexity are allowed to use your content at all.

What robots.txt does

It lives at the root of your site (yoursite.com/robots.txt) and lists rules for each crawler. Every crawler identifies itself with a “user-agent” name, and you can allow or disallow paths for each one.

The main AI crawlers

Allow or block?

A copy-paste example (welcome AI)

User-agent: *
Allow: /

User-agent: GPTBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: PerplexityBot
Allow: /

Sitemap: https://yoursite.com/sitemap.xml

To block one specific crawler instead, give it its own block:

User-agent: GPTBot
Disallow: /

Common mistakes

The bottom line

robots.txt is the front gate, and one of the four layers in our GEO overview. Open yoursite.com/robots.txt, make sure AI crawlers aren’t blocked by accident, and add a Sitemap: line. It takes two minutes and decides whether AI can read you at all.

← All guides