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:
- Confirmed:
- Confirmed:
- 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
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
#How does the user agent affect AI search?
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
Crawlers
How to verify AI crawlers by IP address and reverse DNS
Verify AI crawlers with the IP lists and reverse DNS checks that operators publish. 10 of 11 operators list IP addresses; 5 document a DNS name.
Crawlers
How to do log file analysis for AI crawlers
Log file analysis for AI crawlers: find GPTBot, ClaudeBot and other bots in access logs, verify their IPs, and count requests by bot, path and status.
Crawlers
How to allow or block AI bots in robots.txt
robots.txt rules to allow all crawlers, block AI training or block all AI bots, from RFC 9309 and the tokens that AI bot operators document.
Used in
- GPTBot vs OAI-SearchBot: OpenAI's training and search crawlersCrawlers
- Which AI crawlers should I allow or block in robots.txt?Crawlers
- AI search for publishers: get your reporting cited in AI answersGuides
- How AI browser agents access websitesCrawlers
- How to run an AI crawlability auditCrawlers
- How to block AI crawlersCrawlers
- How to check whether your site is in Common CrawlCrawlers
- How to do log file analysis for AI crawlersCrawlers
- How to allow or block AI bots in robots.txtCrawlers
- How to verify AI crawlers by IP address and reverse DNSCrawlers
- How to get cited in PerplexityGEO
- Perplexity vs ChatGPT search compared for site ownersPlatforms
- Do websites cited by AI answers block AI crawlers?Research
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
- 2
- 3
- 4
- 5
Cite this page
Promptly Found. (2026, December 1). What is a user agent? https://promptlyfound.com/glossary/user-agent
Revisions 1
- First published.