v1.10.90-0e025b8
Skip to main content
← Back to Glossary

User Agent

Anti-Detection

Definition

A user agent is a string sent in HTTP request headers that identifies the client software making the request, including browser name, version, operating system, and rendering engine.

What is a User Agent?

A user agent is a string sent in HTTP request headers that identifies the client software making the request, including the browser name, version, operating system, and rendering engine. Websites use this information to serve appropriate content and detect automated traffic.

Anatomy of a User Agent String

Every HTTP request includes a User-Agent header that the client populates with information about itself. A typical browser user agent might read: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36". Websites parse this string to determine the client type and capabilities. Automated tools often have distinctive or missing user agents that betray their non-human nature. User agent rotation involves changing this string across requests to avoid pattern detection.

When scraping through gate.hexproxies.com:8080, rotating your exit IP but sending the same outdated user agent string on every request is a dead giveaway. Targets flag requests with user agents that do not match current browser versions or that never change across thousands of requests.

Aligning User Agent Rotation with IP Rotation

User agent management is a fundamental aspect of successful proxy usage. Sending requests with missing, outdated, or inconsistent user agents is a common reason for blocks even when using high-quality proxy IPs. Hex Proxies users should maintain a curated list of current, realistic user agent strings and rotate them in correlation with their IP rotation strategy.

Why It Matters for Proxy Users

The user agent string is the easiest signal for targets to check and one of the most common mistakes proxy users make. Sending a Python requests default user agent or an outdated Chrome version immediately marks the request as automated. User agent rotation should match the diversity of your IP rotation: if each request gets a new IP, each request should also get a plausible, distinct user agent.

**Practical example:** A price monitoring service using Hex Proxies maintains a curated list of 50 current user agent strings covering the latest versions of Chrome, Firefox, Safari, and Edge across Windows, macOS, and mobile platforms. Each scraping thread selects a user agent from this list and pairs it consistently with headers that match the chosen browser, such as appropriate Accept, Accept-Language, and Accept-Encoding values. This header consistency prevents the mismatch detection where a Chrome user agent carries Firefox-style Accept headers, which sophisticated anti-bot systems flag immediately.

User agent management should include regular updates as new browser versions release. Chrome updates approximately every 4 weeks, and using a user agent string for a version that is 3 months old signals either a very outdated browser or, more likely, automated traffic using a stale user agent list. Automate user agent list updates as part of your scraping infrastructure maintenance.

Put Your Knowledge Into Practice

Explore proxy plans optimized for your workflow.