Sub topic 4
Crawler user agents: search, training, and user-initiated fetches
This chapter assumes you know how a web crawler requests pages over HTTP and what a User-Agent header is. It also assumes you have read the earlier chapter on how pages get crawled and indexed. Here the focus is on who is actually fetching your pages when an AI product is involved, and why a single company often runs several different crawlers.
Why one company has several crawlers
A classic search engine runs one main crawler. It fetches pages, builds an index, and sends visitors back through links. AI products complicate this because a company may fetch pages for three different reasons:
- Search: build or refresh an index that an answer engine queries later, so it can cite your page.
- Training: collect text that may be used to train or improve a language model.
- User-initiated: fetch one page right now because a person asked the assistant to read it, or because the assistant needs a live copy while answering.
Each purpose has a different effect on you. Search crawling can lead to citations and referral visits. Training crawling does not link back to you. User-initiated fetches happen only when a real person triggers them. Separate user-agent strings let you handle each purpose separately.
The main user agents
The table lists the user agents named in this tutorial's plan. Vendors change their crawler lists, so confirm each name against the vendor's current documentation before you rely on it.
| User agent | Operator | Purpose | Typical effect of blocking |
|---|---|---|---|
| `OAI-SearchBot` | OpenAI | Builds the index behind ChatGPT search | Your pages may stop appearing as ChatGPT search results |
| `GPTBot` | OpenAI | Collects content that may be used for model training | Opts your content out of training use |
| `ChatGPT-User` | OpenAI | Fetches pages when a user or a custom GPT action requests them | A user's request to read your page may fail |
| `PerplexityBot` | Perplexity | Builds Perplexity's search index | Your pages may stop appearing in Perplexity answers |
| `Perplexity-User` | Perplexity | Fetches a page when a user's request calls for it | A user's request to read your page may fail |
| `bingbot` | Microsoft | Builds the Bing index, which Copilot draws on | Affects both Bing search and Copilot's web results |
Notice what is missing for Copilot: it has no separate AI crawler in this list. Copilot relies on the Bing index, so access for bingbot is what matters.
Search versus training
The most important distinction is between OAI-SearchBot and GPTBot. They belong to the same company, but they do different jobs. Blocking GPTBot does not remove you from ChatGPT search, and blocking OAI-SearchBot does not opt you out of training. Treating them as one thing is the most common mistake in this area.
User-initiated fetches
User-initiated agents behave differently from background crawlers. They do not roam your site. A request arrives only because a person asked something that needed your page. Two consequences follow:
- Volume is low and tied to real demand, so a spike can mean your page was just mentioned somewhere.
- Vendors may treat these fetches as actions taken on behalf of a user. Some vendors state that these agents may not follow
robots.txtthe way background crawlers do. Check each vendor's documentation for its current policy rather than assuming.
Setting rules per purpose
A robots.txt file addresses each user agent by name. This example keeps a site eligible for answer-engine search while declining training use:
# Allow the crawler that builds ChatGPT's search index
User-agent: OAI-SearchBot
Allow: /
# Opt out of model training use
User-agent: GPTBot
Disallow: /
# Allow Perplexity's search crawler
User-agent: PerplexityBot
Allow: /
# Allow Bing, whose index Copilot draws on
User-agent: bingbot
Allow: /Each User-agent line starts a group. The rules below it apply only to that crawler. A crawler uses the group that names it most specifically and ignores the others. If no group names it, it falls back to the User-agent: * group, if one exists.
The next chapter covers robots.txt syntax and access controls in more detail. For now, keep these points in mind:
robots.txtis a request, not enforcement. Well-behaved crawlers honor it. It cannot stop a client that ignores it.- A rule applies from the time the crawler next reads the file. Content already collected is not removed by a new rule.
- A blanket
Disallow: /underUser-agent: *blocks every crawler that has no group of its own, including search crawlers you might want.
Seeing who actually visits
The user-agent string in a request is self-reported. A log entry that says GPTBot shows only that the client claimed that name. Still, counting these strings in your access log is a useful first check. This loop counts requests for each agent:
for ua in OAI-SearchBot ChatGPT-User GPTBot PerplexityBot Perplexity-User bingbot; do
echo "$ua: $(grep -c "$ua" access.log)"
doneRead the output by purpose:
- A nonzero
OAI-SearchBotorPerplexityBotcount means the search crawlers are reaching you. - A nonzero
GPTBotcount while you have disallowed it means either the rule was added recently, the crawler has not re-read the file, or the client is not honoring it. ChatGPT-UserandPerplexity-Usercounts are usually small. Each hit is likely tied to a person's request.- A count of zero can mean no visits. It can also mean the log rotated, a CDN or cache answered the request before it reached your server, or a firewall blocked the client first.
Verifying that a client is genuine
Because anyone can send a fake user-agent string, treat the log as a hint. To confirm identity, compare the requesting IP address against the address ranges the vendor publishes. For Bing, you can also use a reverse DNS lookup followed by a forward lookup, which Microsoft documents for bingbot. If an agent claims to be a known crawler but its IP is outside the published ranges, it is not that crawler.
Common errors
- Blocking everything to stop training. A rule such as
User-agent: *followed byDisallow: /also blocks the search crawlers, which removes you from the answers you may want to appear in. - Assuming one name covers a vendor. Rules for
GPTBotdo not apply toOAI-SearchBotorChatGPT-User. Each name needs its own group. - Mistyping the user-agent token. Matching is by product token, and a misspelled name matches nothing, so the crawler falls back to the wildcard group.
- Blocking at the firewall while allowing in
robots.txt. A web application firewall or bot-protection rule can return a403to a crawler thatrobots.txtwelcomes. The crawler then sees an error, not your page. - Trusting logs without verification. Counting strings catches mistakes in your own setup. It does not prove who sent the traffic.
- Expecting instant effect. Changes to
robots.txtapply when the crawler next fetches the file, and the index changes later still.
Decision criteria
Use these questions to choose a policy for each agent:
- Do you want to be cited in that engine's answers? If yes, allow its search crawler.
- Do you object to your content being used for model training? If yes, disallow the training crawler and leave the search crawler alone.
- Do you want users to be able to ask an assistant about your page? If yes, do not block the user-initiated agent, and check your firewall as well as
robots.txt. - Is some content private or paid? Use authentication rather than
robots.txt, becauserobots.txtis public and advisory.
Exercise
Your robots.txt contains User-agent: GPTBot with Disallow: /, and nothing else. A colleague says your site is now hidden from ChatGPT search. Is that correct? What would you check, and what would you change if you want to be sure ChatGPT search can still cite you?
Show answer
The colleague is not correct. GPTBot is the training crawler, and blocking it opts you out of training use. ChatGPT search relies on the index built by OAI-SearchBot, which that rule does not mention. With no OAI-SearchBot group and no User-agent: * group, it has no rule against it, so it may crawl. To be sure, add an explicit User-agent: OAI-SearchBot group with Allow: /, confirm your firewall or CDN is not returning 403 to it, and count OAI-SearchBot requests in your access log. Verify that any hits come from IP ranges OpenAI publishes.
Exercise
Your access log shows 0 requests for PerplexityBot over the last month, although robots.txt allows it. Give three possible explanations that are not "Perplexity does not want your site."
Show answer
Any three of these: the crawler has not yet discovered the site or its pages; a firewall or bot-protection rule blocks the client before it reaches your origin; a CDN or cache serves the request so it never appears in the origin log; the log was rotated or you are reading the wrong file; the user-agent string has a different format than the one you are grepping for. Check firewall rules and CDN logs first, then compare against the vendor's current documentation.