Learn

robots.txt for AI crawlers, explained.

6 min read. Everything below is verifiable against the operators' own docs, linked at the bottom.

What robots.txt actually does

It's a plain text file at the root of your site (yoursite.com/robots.txt) that tells crawlers which parts they're allowed to visit. That's it. It's a request, not a lock: well-behaved bots obey it, bad actors ignore it. Every major AI crawler claims to obey it, which makes it the cheapest AI-visibility lever you own.

The basic shape:

User-agent: GPTBot
Allow: /

User-agent: CCBot
Disallow: /private/

One block per bot. A specific bot's block beats the generic User-agent: * block. When rules conflict, the longest matching path wins.

The AI tokens you should know

There are three kinds, and mixing them up is the most common mistake we see in grades:

Full reference for each, with user-agent strings: every AI crawler, explained.

The Google-Extended trap

Google-Extended is not a crawler. It's a control token that opts your content out of Google's AI model training. Blocking it does not affect Google Search rankings or AI Overviews. Letting it in does not help you rank. We see sites block it accidentally via copied templates, then wonder why nothing changed. Nothing changed because it was never doing what they thought.

How to check yours

Two free ways, no account:

Honest limits

robots.txt is voluntary. It won't stop scrapers that ignore it, and it can't fix content AI engines can't parse. It's one layer: necessary, not sufficient. Our grader checks the other layers too.

Stop guessing. Measure it.

Your robots.txt is one of 19 checks in the free grade. 60 seconds, no account.

Grade my site — free

Operator docs: OpenAI bots · Anthropic · Perplexity · Google crawlers · Apple