Sub topic 2
Other AI Crawlers Worth Knowing
This chapter assumes you know what robots.txt is, can read the User-Agent header in an HTTP request, and can run a short Python script. Earlier chapters covered GPTBot and Google-Extended.
Other AI crawlers worth knowing
Several other crawlers identify themselves with tokens you can target in robots.txt:
| Token | Operator | Main use |
|---|---|---|
| ClaudeBot | Anthropic | Collects web content for AI model training |
| PerplexityBot | Perplexity | Indexes pages for its AI search answers |
| CCBot | Common Crawl | Builds a public web archive that many training datasets use |
| Applebot-Extended | Apple | Controls whether Apple may use your content for model training. Applebot still handles search. |
Deciding what to allow and what to block
Set a policy for each crawler based on its purpose. Blocking a training crawler keeps future content out of training datasets. Blocking an AI search crawler removes your pages from AI search answers, which can reduce referral traffic. Decide these two questions separately. Many sites block training crawlers and allow search crawlers.
Groups, Allow, Disallow, and how rules are matched
A robots.txt file contains groups. Each group starts with one or more User-agent lines, followed by Allow or Disallow rules. A crawler follows the group that names it. If no group names it, the crawler follows the User-agent: * group.
Inside a group, the rule with the longest matching path wins. If an Allow and a Disallow match paths of equal length, Allow wins. A path that matches no rule is allowed. An empty Disallow: line allows everything.
Writing the robots.txt file
Place the file at the site root, such as https://example.com/robots.txt:
# Block training crawlers, allow AI search and all other crawlers
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: *
Allow: /Exercise
Given this file, can GPTBot fetch /blog/post? User-agent: GPTBot, Disallow: /blog/. User-agent: *, Allow: /.
Show answer
No. GPTBot has its own group, so the * group does not apply to it. The Disallow: /blog/ rule matches /blog/post.