How does robots.txt work for AI crawlers?

Also: AI crawler rules, robots.txt AI bots

robots.txt is the plain-text file at the root of a domain that tells crawlers which paths they may fetch (RFC 9309). Each AI provider publishes its own crawler names, so you can allow search bots while blocking training bots. A rule that blocks a bot can remove you from that assistant's answers.

How do you write the rules?

Add a User-agent line per bot and Allow or Disallow rules below it. Training and search bots have different names, for example GPTBot and OAI-SearchBot at OpenAI, so decide for each one. The rules are requests, which well-behaved crawlers follow; they do not secure content.

Example: User-agent: GPTBot with Disallow: / keeps that training bot out, while User-agent: OAI-SearchBot with Allow: / lets the search bot read your pages.

Common mistakes

A blanket Disallow for all bots, a copied block list that includes search bots, and a firewall that blocks bots even though robots.txt allows them. Test the live file after every change.

How does Nodpick help?

The free AI crawler checker reads a site's robots.txt and shows which AI bots it allows. Run the free AI visibility check to see your own numbers; the method shows how they are made, and pricing lists the plans.

Check which AI crawlers your site allowsFree AI crawler checker: GPTBot, ClaudeBot, PerplexityBot and more.

Read more: llms.txt: what it is and how to write one

Related terms

All glossary terms

See what AI tells your buyers, first

Be the first to see whether AI recommends you or your competitors.

  • Early access: your free check comes first, on launch day
  • Six AI engines on every plan, no credits or seat fees
  • One email on launch day, nothing to pay now

We send you one confirmation email. After you confirm, we use your address only to tell you when Nodpick opens. You can withdraw at any time. Privacy policy · Contact us