User-Agent

General

// Definition

An HTTP request header that identifies the client software — browser name, version, rendering engine, operating system, and device type. Sent automatically by browsers; can be set to any value by non-browser clients and automation tools. Servers may respond differently based on the UA string (mobile redirects, bot-blocking, browser-specific assets). QA considerations: headless Playwright and Cypress send a recognisable headless UA that can trigger bot-detection or return a stripped response — set a realistic UA string when testing UA-gated paths. Parsing UA strings to infer device capabilities is fragile; prefer server-side feature detection. The Chrome UA Reduction initiative is progressively freezing minor version numbers to improve privacy, which can break UA-parsing-based analytics.

// Related terms