Sub topic 4
Crawler User Agents: Search, Training, and User-Initiated Fetches
Assume you understand basic HTTP requests, web crawling, and how a search index stores page content. This chapter focuses on identifying AI-related crawlers and controlling their access.
What a crawler user agent means
A crawler is a program that requests web pages. It sends a User-Agent HTTP header that identifies the program, such as OAI-SearchBot or bingbot. A crawler user agent is the name used to select access rules and analyze server logs.
AI-related requests usually belong to three groups:
| Request type | Purpose | Example user agents |
|---|---|---|
| Search crawling | Build or refresh a searchable web index | `OAI-SearchBot`, `PerplexityBot`, `bingbot` |
| Training crawling | Collect content for developing or improving models | `GPTBot` |
| User-initiated fetching | Fetch a page because a person asked about it | `ChatGPT-User`, `Perplexity-User` |
These categories can have different policies. You might allow a search crawler so your pages can appear in cited answers while disallowing a training crawler.
A user agent is only a claimed identity in an HTTP request. It is not an authentication mechanism. For sensitive content, use authentication, authorization, or network controls instead of relying on robots.txt.
Search crawlers and training crawlers
A search crawler visits pages before anyone asks a question. It may store content in an index, extract links, and record metadata. An answer engine can later retrieve indexed passages when generating an answer.
A training crawler collects content for a different purpose. Its requests do not necessarily make a page searchable or likely to receive a citation. Allowing one does not imply that you must allow the other.
For example:
# Permit search indexing for ChatGPT
User-agent: OAI-SearchBot
Allow: /
# Decline model-training collection
User-agent: GPTBot
Disallow: /
# Permit Perplexity search crawling
User-agent: PerplexityBot
Allow: /The exact names and policies can change. Check each provider's current crawler documentation before deploying rules.
User-initiated fetches
A user-initiated crawler fetches a URL during a live request. For example, a person may ask an answer engine to summarize a page that is not already in its index. The engine may then request that page using a distinct user agent.
This request is different from search crawling. Blocking the search crawler can reduce indexed visibility, while blocking a user-initiated fetch can prevent live retrieval. Neither choice guarantees whether the engine will cite your page.
Checking which crawlers reach your site
Access logs provide evidence of requests, not proof that a page was indexed or cited. Count known user-agent strings and compare the results over time:
for ua in OAI-SearchBot ChatGPT-User GPTBot PerplexityBot Perplexity-User bingbot; do
printf '%s: ' "$ua"
grep -c "$ua" access.log
doneReview the request path, status code, timestamp, and response size as well. A 200 response shows that the server returned content. It does not show that the crawler accepted, indexed, or later cited the content.
Exercise
You want pages to remain eligible for ChatGPT search citations but do not want to permit model-training collection. Which crawler policies should you separate?
Show answer
Allow the search crawler, such as OAI-SearchBot, and disallow the training crawler, such as GPTBot. Also decide separately whether to allow user-initiated fetches.