What isUser agent

nounCrawlers and accessBeginner4 min read
Definition

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.

Dipuck Jones
Written by Founder of MentionX · 13+ years in B2B SaaS growth and SEO
Reviewed
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.

01What 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). The full string includes compatibility text; the part that identifies the bot is the product token, here GPTBot.

02String vs robots.txt token

TermWhere it appearsExample
User agent stringHTTP request header, your logsThe full Mozilla/5.0 ... GPTBot/1.4 line
Product tokenrobots.txt User-agent: lineGPTBot

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).

03Example

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).

04Can 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), 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.

05Why 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.

06From MentionX data: referral signals, not crawler signalsOriginal data

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.

SignalResult
OpenAI API citations with utm_source=openai95.8%
Gemini citations that were redirects69%

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). 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.

07Worked 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.

08How do you verify a crawler?

Google documents reverse DNS plus forward DNS checks, and publishes IP ranges for its crawlers (Google). Perplexity publishes PerplexityBot's IP ranges as JSON (Perplexity). OpenAI links its ranges from its bots page (OpenAI). Automate the check; IP lists change.

Questions people ask

3 answers

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 JonesHow we research and testReport an error