Skip to content
Ask Sera Search
Ask SeraAnswers from our guides, research and news Search
Learn
Guides
Research
Sectors
Platforms
News
Tools
About

What is a user agent?

A user agent is the name a client sends with each HTTP request to identify itself, such as a browser or a crawler like GPTBot.

In short. A user agent is the name that a client sends with each request to identify itself, such as a browser or a crawler. HTTP carries it in the User-Agent header. AI crawlers put a short token such as GPTBot in that string, and robots.txt rules use the same token to address each bot.

On this page 7 sections

The evidence

  • Confirmed:

    RFC 9110 says the User-Agent field value consists of one or more product identifiers, each a name with an optional version, and that a user agent should send it in each request unless configured not to.1IETF

    RFC 9110, section 10.1.5, Jun 2022.

  • Confirmed:

    RFC 9309 says a crawler's product token should be a substring of the identification string it sends, and that crawlers must match User-agent lines case-insensitively.2IETF

    RFC 9309, section 2.2.1, Sep 2022.

  • Confirmed:

    OpenAI says it may add a robots.txt marker to the GPTBot and OAI-SearchBot user agent strings when they fetch robots.txt files.3OpenAI crawler overview. Checked Dec 1, 2026

  • Confirmed:

    Google warns that the user agent string can be spoofed and tells site owners how to verify that a request came from Google.4Google for Developers, updated Nov 23, 2026

Confirmed by the platform

A user agent is the software that makes a web request, and the term also names the string that identifies it. Browsers and crawlers both send this string with each request. Sites use it to tell AI bots apart in their logs and to address each bot in robots.txt.

#What does a user agent string contain?

A user agent string names the software that sent a request, usually with its version. RFC 9110, the IETF standard for HTTP semantics, defines the User-Agent header field. Its value is one or more product identifiers, each a name with an optional version, and optional comments. The standard gives the example CERN-LineMode/2.15 libwww/2.17b3. It says a user agent should send the header in each request unless it is configured not to.1

AI crawlers add their own token to a browser-style string. OpenAI's crawler overview gives this example for GPTBot and says the version number may change:3

Text
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot

#How does robots.txt use the user agent?

robots.txt addresses each crawler by a short product token taken from its user agent. RFC 9309 says a crawler's product token should be a substring of the identification string it sends, such as the User-Agent header. Crawlers must match the token case-insensitively to find the group of rules that applies to them.2 A User-agent: GPTBot line in robots.txt therefore addresses the GPTBot string above.

Some tokens have no crawler behind them. Google's Google-Extended page says Google does not run a separate Google-Extended crawler. Its other crawlers record each page's Google-Extended status.5

The user agent tells a site which job a request serves. OpenAI uses GPTBot for training, OAI-SearchBot for ChatGPT search and ChatGPT-User for user requests.3 A rule written for the wrong token can block a job that the site wanted to allow, such as search.

OpenAI also says it may add a robots.txt marker to the GPTBot and OAI-SearchBot strings when they fetch robots.txt files. The marker helps site owners tell those requests apart in logs that do not include paths.3

#Can a user agent be trusted?

A user agent alone does not prove who sent a request. Google's list of user-triggered fetchers warns that the user agent string can be spoofed.4 OpenAI publishes the IP addresses that each of its bots uses.3 How to verify AI crawlers by IP address and reverse DNS shows how to check a request against these lists.

Read next

Used in

Related terms

Questions

Can a bot fake its user agent?

Yes. Google warns that the user agent string can be spoofed. Operators such as OpenAI publish the IP addresses of their bots, so a site can check whether a request came from the operator it names.

What is the difference between a user agent string and a robots.txt token?

The user agent string is the full value of the User-Agent header. The robots.txt token is the short name, such as GPTBot, that a User-agent line in robots.txt names. RFC 9309 says the token should be a substring of the string.

Does every AI control token belong to a crawler?

No. Google-Extended is a robots.txt token with no crawler of its own. Google says its existing crawlers record each page's Google-Extended status, so the name never appears as a user agent in a site's logs.

About this page

Researched and reviewed by Promptly Found. Reviewed Dec 1, 2026. Next review due Mar 2027.

Notes

  1. 1
    RFC 9110: HTTP SemanticsIETF · Checked Dec 1, 2026 · Primary source
  2. 2
    RFC 9309: Robots Exclusion ProtocolIETF · Checked Dec 1, 2026 · Primary source
  3. 3
    Overview of OpenAI CrawlersOpenAI · Checked Dec 1, 2026 · Primary source
  4. 4
    List of Google user-triggered fetchersGoogle for Developers · Nov 23, 2026 · Checked Dec 1, 2026 · Primary source
  5. 5
    Google-ExtendedGoogle for Developers · Nov 24, 2026 · Checked Dec 1, 2026 · Primary source
Cite this page
Citation style

Promptly Found. (2026, December 1). What is a user agent? https://promptlyfound.com/glossary/user-agent

Revisions 1
First published.