# What Is a User Agent? Definition and Example

> A user agent is the name a browser or bot sends with each web request. How AI crawler user agents work and how to use them in robots.txt.

Source: https://mentionx.ai/glossary/user-agent  
Author: Dipuck Jones, founder of MentionX  
Updated: 31 October 2026  
Level: Beginner

**A user agent is the identifier a browser, app or bot sends with every web request to say what it is, through the HTTP User-Agent header.** For GEO, user agents matter because AI companies name their crawlers, such as GPTBot, OAI-SearchBot, PerplexityBot and ClaudeBot, and you use those names in robots.txt to decide what each can access.

> **Key takeaways**
>
> - A user agent is the string a crawler or browser sends to identify itself.
> - The string in logs differs from the token used in robots.txt.
> - User agents can be faked; verify IPs or reverse DNS for important crawlers.
> - MentionX has no crawler log data; for visits from AI answers, look for `utm_source=chatgpt.com` and `utm_source=openai`.

*Checked on 31 October 2026. "Our view" marks MentionX opinion. Ledgerline is a fictional company used for illustration.*

## What does a user agent string look like?

OpenAI documents this example for GPTBot (the version number may change): `Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot` ([OpenAI](https://developers.openai.com/api/docs/bots)). The full string includes compatibility text; the part that identifies the bot is the product token, here `GPTBot`.

## String vs robots.txt token

| Term | Where it appears | Example |
|---|---|---|
| User agent string | HTTP request header, your logs | The full Mozilla/5.0 ... GPTBot/1.4 line |
| Product token | robots.txt `User-agent:` line | `GPTBot` |

Some tokens have no matching request string. Google-Extended, for example, has no separate HTTP user agent; crawling uses existing Google user agents and the token is used only as a control in robots.txt ([Google](https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers)).

## Example

```
User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /
```

This asks OpenAI not to use the site for training while allowing it to appear in ChatGPT search. OpenAI says each setting is independent ([OpenAI](https://developers.openai.com/api/docs/bots)).

## Can you trust the user agent you see?

Not on its own. The header is self declared, so scrapers can impersonate well known bots. Google documents verifying Googlebot through reverse DNS lookup ([Google](https://developers.google.com/crawling/docs/crawlers-fetchers/verify-google-requests)), and OpenAI and Perplexity publish IP ranges for their bots. Combine the user agent with IP verification before allowing or blocking traffic at the firewall.

## Why it matters for GEO

If your firewall or robots.txt blocks a search crawler by mistake, your pages may not be eligible to appear in that engine's answers. A quick audit of which user agents reach your site, and which you allow, is one of the cheapest GEO checks you can do.

## From MentionX data: referral signals, not crawler signals

**Method.** Read only aggregate queries over MentionX scans from 22 August to 29 October 2026 (UTC): 2,217 engine runs (2,154 completed) across 18 anonymised projects and six engines.

| Signal | Result |
| --- | --- |
| OpenAI API citations with `utm_source=openai` | 95.8% |
| Gemini citations that were redirects | 69% |

Our data covers answers, not server logs, so we can't report which user agents visit sites. What we can report is how AI answer links identify themselves when people click them.

In our sample, 95.8% of OpenAI API citation URLs carried `utm_source=openai`. OpenAI says ChatGPT adds `utm_source=chatgpt.com` ([OpenAI](https://help.openai.com/en/articles/12627856-publishers-and-developers-faq)). 69% of Gemini citation URLs were Google redirect links, which hide the destination until resolved.

*Our view:* user agents tell you who crawled; UTM parameters and referrers tell you who sent a person. You need both views.

**Limits.** A convenience sample of mostly B2B software projects, run through engine APIs, which can behave differently from the consumer apps. Perplexity, Copilot and DeepSeek figures come from a single day (26 October 2026), so treat them as a snapshot, not a trend.

## Worked example: Ledgerline's log check

*Ledgerline is a fictional accounts payable tool. Figures are illustrative.*

Ledgerline's logs show 3,000 requests a day claiming to be GPTBot. A reverse DNS and IP check against OpenAI's published ranges shows about a fifth are from unrelated hosting providers.

The team blocks the fakes at the CDN, using the published IP lists rather than the string, and keeps a dashboard of verified AI crawler requests by user agent and status code.

> **Pro move:** Always check the status codes crawlers receive. A verified crawler getting 403s is a bigger problem than an unverified one getting 200s.

## How do you verify a crawler?

Google documents reverse DNS plus forward DNS checks, and publishes IP ranges for its crawlers ([Google](https://developers.google.com/crawling/docs/crawlers-fetchers/verify-google-requests)). Perplexity publishes PerplexityBot's IP ranges as JSON ([Perplexity](https://www.perplexity.ai/perplexitybot.json)). OpenAI links its ranges from its bots page ([OpenAI](https://developers.openai.com/api/docs/bots)). Automate the check; IP lists change.

## Common questions

**Is the robots.txt token the same as the user-agent string?** Not always. The token is a short name; the full string includes versions and URLs.

**Can I block by user agent alone?** You can, but anyone can send any string. Combine it with IP checks for important rules.

**Do AI crawlers run JavaScript?** Many don't. Make sure key content is in the HTML.

## Related

- [AI crawler](https://mentionx.ai/glossary/ai-crawler)
- [OAI-SearchBot](https://mentionx.ai/glossary/oai-searchbot)
- [Configure robots.txt for AI crawlers](https://mentionx.ai/learn/technical/configure-robots-txt-ai-crawlers)

## Frequently asked questions

### Where do I see user agents?

In your server or CDN access logs. Each request includes a User-Agent header naming the client.

### Can a user agent be faked?

Yes. Anyone can send any string, which is why Google and others publish ways to verify their crawlers.

### What's the difference between a user agent string and a robots.txt token?

The string is the full header sent with a request; the token is the short name you write in robots.txt, such as GPTBot.

---

Written and reviewed by Dipuck Jones for MentionX Academy. The HTML version of this page: https://mentionx.ai/glossary/user-agent
