Skip to content
mentoor

Topic 4 of 5 · 4 min read

Controlling AI crawler access

Goal: Write robots.txt rules that allow AI search crawlers while blocking training crawlers, and state what the site gives up.

AI companies run different crawlers for different jobs, and you can allow some and block others, one user agent at a time. The usual split is search crawlers, which fetch pages so they can be shown and linked in answers, and training crawlers, which collect pages to build future models.

Check yourself · 1 of 3

What is the main difference between a search crawler and a training crawler?

Choose one answer

Why it matters to you

A blanket block on "AI bots" can make your site invisible in AI search. A blanket allow means your pages may be used to train models. You decide, and the choice has a cost either way.

How it works

Your site's robots.txt file lists rules per user agent, the name a crawler uses to identify itself. The standard (RFC 9309) is a request, and well-behaved crawlers follow it. It is not a lock, so it does not stop a bot that ignores it. Sensitive pages need a login.

Examples published by the companies:

  • OpenAI has OAI-SearchBot (shows sites in ChatGPT search), GPTBot (collects content that may be used to train models) and ChatGPT-User (fetches a page when a user asks ChatGPT to open it). OpenAI says these settings are independent.
  • Anthropic lists ClaudeBot (training), Claude-User and Claude-SearchBot.
  • Perplexity has PerplexityBot for search results and Perplexity-User for user requests.
  • Google uses Googlebot for Search. A token called Google-Extended controls whether content is used for Gemini training and grounding. Blocking it does not remove you from Google Search.

Names change, so read each vendor's page before you edit the file.

Before and after

Weak: User-agent: GPTBot then Disallow: /, with nothing else. The owner thinks the site is now closed to ChatGPT. ChatGPT search uses OAI-SearchBot, so it is still allowed, and the owner has not made a clear choice.

Better, for a publisher that wants citations but not training: allow OAI-SearchBot with Allow: /, and disallow GPTBot and Google-Extended with Disallow: /. Then write down what is given up: blocked training use may mean the models know less about you, with no guarantee either way.

What goes wrong

  • Blocking search bots by mistake. Teams copy a block list and lose citations.
  • Trusting robots.txt for privacy. It is public and voluntary. Use access control for private content.
  • Never re-checking. Vendors add and rename bots. Review the file each quarter and check server logs to see who visits.
  • Forgetting subdomains. Each host has its own robots.txt file.

Examples

Cited but not trained on

A recipe site wants to appear in ChatGPT search but not feed model training. Its file allows OAI-SearchBot, and it disallows GPTBot and Google-Extended. It accepts the trade-off: the models may know less about its recipes, and it gets no guarantee of more citations.

The copied block list

An agency pastes a list that disallows PerplexityBot, OAI-SearchBot and Claude-SearchBot on a client's site. Three months later the client asks why no AI answer mentions the brand. The search crawlers were blocked, so the pages could not be fetched for answers.

Key points

  • AI vendors run separate crawlers for search, for training and for user-requested fetches.
  • Each crawler is controlled by its own user-agent name in robots.txt.
  • Blocking a training crawler does not block the same vendor's search crawler.
  • Robots.txt is a public request, not security; private content needs real access control.
  • Crawler names change, so check each vendor's page and your server logs regularly.

Common mistakes

  • Blocking every AI-related user agent without separating search from training.
  • Assuming that blocking one bot from a vendor blocks all of that vendor's bots.
  • Using robots.txt to hide pages that should be private.
  • Not checking server logs or vendor pages after the first setup.

Check yourself · 2 of 3

A site disallows GPTBot and nothing else. Which statement is correct?

Choose one answer

Check yourself · 3 of 3

Why should a company not rely on robots.txt to protect a private customer area?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic