A user agent is the line of text in a web request that says which browser, app or crawler sent it. It travels in the User-Agent header. The sender writes it, so on its own it proves nothing. To know who really sent a request, check the IP address as well.
What is a user agent? #
Strictly, the user agent is the software making the request: Chrome, Safari, a crawler such as GPTBot, or a tool such as curl. The User-Agent header is how it introduces itself. RFC 9110, the HTTP standard (June 2022), says a user agent should send this header in each request unless it is set not to. In everyday use, “user agent” means the string itself.
What does it look like? #
MDN gives the general form as User-Agent: <product> / <product-version> <comment>. The product is a name, the version is a number, and the comment, in brackets, adds detail such as the operating system. Browsers use a longer pattern: Mozilla/5.0 (<system-information>) <platform> (<platform-details>) <extensions>.
What do real ones look like? #
| Sender | User agent string |
|---|---|
| Chrome on Windows | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 |
| Safari on a Mac | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Safari/605.1.15 |
| Googlebot | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
| GPTBot | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot |
| PerplexityBot | Mozilla/5.0 (compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot) |
| curl | curl/7.64.1 |
Sources: MDN for the browsers, Googlebot and curl; OpenAI and Perplexity for their bots, both of which say the version number may change.
Why does every browser say Mozilla? #
History. MDN explains that Mozilla/5.0 is a general token meaning “Mozilla-compatible”, and that almost every browser sends it for historical reasons. Browsers also borrow each other’s names: Chrome’s string contains “Safari”, and Opera’s contains “Chrome”. MDN notes that browsers routinely pretend to be another browser. So the first word of a user agent tells you very little.
How do crawlers name themselves? #
Polite crawlers put a short name and a link in their user agent, such as Googlebot/2.1 and a page about the bot. RFC 9309 calls the short name the product token. It is the name you use in robots.txt, and the standard says it should appear in the bot’s User-Agent header. Its example pairs the header Mozilla/5.0 (compatible; ExampleBot/0.1; https://www.example.com/bot.html) with the robots.txt line user-agent: ExampleBot.
Why does it matter for search? #
Search engines announce themselves so you can tell them apart from people. Google’s Googlebot page says most crawling now uses the smartphone crawler, and that both the smartphone and desktop crawlers obey the same token in robots.txt, so you cannot target one separately. Serving search crawlers different content from people, based on the user agent, is cloaking. Making sure the mobile page is complete matters more: see mobile SEO.
Why does it matter for AI answers? #
AI companies give each job its own name. OpenAI uses GPTBot for training, OAI-SearchBot for ChatGPT search and ChatGPT-User when a person asks ChatGPT to visit a page. Anthropic runs ClaudeBot, Claude-SearchBot and Claude-User. Reading the name tells you whether a visit was a training crawler, an AI search crawler or a live fetcher acting for a person. That is the difference between being learned from and being quoted.
Are there AI names with no user agent? #
Yes. Google-Extended is a robots.txt token only: Google says it has no separate HTTP user agent string. Applebot-Extended is the same: Apple says it does not crawl webpages. You will never see either name in your logs. They exist only to state your choice about AI training.
Why can’t I trust it? #
Anyone can send any user agent. A scraper can call itself Googlebot in one line of code. Google warns that Googlebot’s user agent is often spoofed by other crawlers. RFC 9110 also describes user agents that copy other products’ names to claim compatibility. So the user agent tells you what the sender says it is. Only a check of the address tells you whether that is true.
How do I check who really sent it? #
Two ways. A reverse DNS bot check looks up the name behind the IP address, then looks that name up again to confirm it points back. Google explains this in its guide to verifying Googlebot. Or you match the address against the lists the company publishes. OpenAI publishes such lists, for example gptbot.json. Bots that pass are verified bots.
Where do I find it? #
In your server logs. The “combined” format, which nginx uses by default, ends each line with the referrer and the user agent:
log_format combined '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
Source: nginx log module. Script-based analytics such as Google Analytics 4 only see visitors that run their script, so most bots never show up there. See bot traffic in analytics.
What about privacy? #
MDN says user agent strings have raised privacy concerns, because the detail in them can be used for fingerprinting. RFC 9110 warns that long, detailed values add delay and raise the risk of a person being identified against their wishes. So browsers now send less in the string. Servers that need more can ask for it with User-Agent client hints, headers such as Sec-CH-UA, Sec-CH-UA-Mobile and Sec-CH-UA-Platform.
Should I change my site based on it? #
Rarely. MDN calls user agent sniffing very hard to do reliably and a common cause of bugs. It recommends feature detection instead: test whether the browser can do the thing, not which browser it is. If you must spot a phone from the string, MDN suggests looking for “Mobi”. For bots, use the name to sort traffic, and the address to prove it.
Common mistakes #
- Treating the name as proof. Check the address too.
- Blocking a whole word. A rule on “bot” also catches link previews and monitors you may want.
- Matching too loosely. “ClaudeBot” and “Claude-SearchBot” are different bots. Match the longest name first.
- Looking for Google-Extended in logs. It never appears; it is a token only.
- Serving bots different content. That is cloaking.
- Counting every “Mozilla” as a person. Most AI crawlers start with Mozilla/5.0 too.
- Ignoring spam referrers. Fake user agents often arrive with referral spam.
A worked example #
Three log lines, read the right way:
| User agent says | What we read | Next step |
|---|---|---|
| Chrome/143.0.0.0 Safari/537.36 | A normal browser: probably a person | Count as a person unless other signs say automated |
| compatible; GPTBot/1.4 | OpenAI’s training crawler, if real | Match the address against gptbot.json |
| compatible; Googlebot/2.1 | Google’s crawler, if real | Reverse DNS must end in googlebot.com, google.com or googleusercontent.com |
How to check it #
- Collect the strings. Pull user agents from your server logs or your CDN logs. Group them by name.
- Sort each name. Is it a person, a search crawler, an AI crawler, an AI agent or a script? Our PerplexityBot, CCBot and Meta-ExternalAgent pages explain what common names do.
- Prove the famous ones. Paste an address into Verify an AI Bot, which checks it against the companies’ published lists.
- Check your rules use the right tokens. The Robots.txt Checker tests each user-agent group. The AI Bot Checker shows which AI names your file lets in.
- Check what you send back. The HTTP Header Checker shows your response headers, such as Vary and any X-Robots-Tag. If bots see a redirect people do not, trace it with the Redirect Checker.
- Look for blocks on real bots. A web application firewall, a bot score or rate limiting can turn away real crawlers by name. Test the outcome, not the setting.
- See the AI picture. The AI Readiness Checker scores how ready your site is for AI tools, and Compare Two Websites sets you beside a rival.
- Count it every day. In URSY Pro, opening in stages: the Log file analyser reads every bot and page from your logs, the Bot verification log checks each visit, the Fake bot detector finds pretend Googlebots and GPTBots, and AI bot analytics shows which AI bots read which pages.
What URSY.com counts #
We sort every request by its user agent into five types: people, search engines, AI crawlers, AI agents and other machines (API/MCP calls included). Our list holds 137 names, each checked on 23 November 2026 against the company’s own page, and the longest matching name wins, so Claude-SearchBot is not counted as ClaudeBot. Then we check the address against official IP lists and mark the request real, fake or unknown. See our methodology.
Questions #
Can I change my own user agent? #
Yes. Browser developer tools and most scripts let you set any string. That is exactly why servers should not trust it.
Is the user agent personal data? #
It describes software. But MDN and RFC 9110 both note that detailed strings can help identify a user, so treat logs with care; see UK GDPR.
Why do AI crawlers start with Mozilla/5.0? #
MDN says Mozilla/5.0 is a general token meaning “Mozilla-compatible”, sent for historical reasons. Many crawlers keep the habit. Their real name comes later in the string.
Do AI agents always say who they are? #
No. An AI browser or agent may send a normal browser string. That is why counting AI agents needs more than the user agent.
Related words #
- Reverse DNS bot check
- Verified bots
- Server logs
- robots.txt
- GPTBot
- AI crawler
- Live fetcher
- Cloaking
- Bot traffic in analytics
Sources #
- MDN: User-Agent header, checked 24 November 2026
- MDN: Browser detection using the user agent string, checked 24 November 2026
- MDN: HTTP Client hints, checked 24 November 2026
- RFC 9110: HTTP Semantics, section 10.1.5 User-Agent, checked 24 November 2026
- RFC 9309: Robots Exclusion Protocol, checked 24 November 2026
- OpenAI: Overview of OpenAI crawlers, checked 24 November 2026
- Perplexity: Perplexity crawlers, checked 24 November 2026
- Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?, checked 24 November 2026
- Google Search Central: Googlebot, checked 24 November 2026
- Google Search Central: Google’s common crawlers, checked 24 November 2026
- Google Search Central: Verifying Googlebot and other Google crawlers, checked 24 November 2026
- Apple: About Applebot, checked 24 November 2026
- nginx: Module ngx_http_log_module, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: What is a user agent?. URSY. Updated 26 November 2026. https://ursy.com/wiki/user-agent/ · Section links
Tools for this
- LiveVerify an AI Botis it really GPTBot? IP, published lists and user agentRun the check →
- LiveAI Agent ReadinessOpenAPI, .well-known files, MCP, agent instructionsRun the check →
- LiveCore Web Vitals Checkerreal-user speed and its historyRun the check →
- LiveWordPress Security Checkeropen user lists, author pages and APIsRun the check →
- ProMCP + agent call analyticsWhat AI agents asked your site, step by stepIn URSY Pro →
- ProReal-user speedCore Web Vitals from your own visitorsIn URSY Pro →
- ProAI agent ordersOrders started or finished by AI assistantsIn URSY Pro →