WebmasterID logoWebmasterID
User agents

Empty or missing user-agent strings

The User-Agent header is not mandatory, so some requests arrive with an empty string or no header at all. This usually points to a script, a misconfigured client, or an old device — not a specific identity. This page explains what a missing UA means and how to handle it without over-blocking.

Verified against primary sources

Why a user agent can be missing

The HTTP specification does not require a User-Agent header, so a client may legitimately omit it or send an empty value. Scripts and minimal HTTP clients often do, and some older or stripped-down devices send little or nothing.

An absent user agent is therefore a hint toward automation, but it is not proof of intent and definitely not an identity.

Handling it safely

Reacting to a missing user agent by hard-blocking can break legitimate but minimal clients, including some integrations and health checks. A safer approach is to categorise the request as unidentified automation and judge it by behaviour — rate, paths, and rule compliance.

If you do apply stricter handling to empty-UA traffic, do it as a graded response rather than an outright block, and monitor for false positives.

How it appears in analytics and logs

A blank or absent user agent is a weak automation signal: it is common among scripts and some old or minimal clients. It tells you the client sent no self-description, not who the client is.

Diagnostic use case

Decide how to treat requests with no user agent, balancing the automation signal against the risk of blocking legitimate but minimal clients.

What WebmasterID can help detect

WebmasterID handles missing user agents honestly, classifying them as an unidentified/automation category rather than guessing a browser, so analytics are not polluted with invented attributions.

Common mistakes

Privacy and accuracy notes

An empty user agent carries no visitor identity by definition. WebmasterID records such requests as a category, never as a human profile, and does not infer identity from absence.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.