A User-Agent is an HTTP request header that identifies the software making a request to a web server, such as a browser, mobile application, or web scraper.
A User-Agent string may contain information about the browser, operating system, device, and rendering engine. Websites use this information for compatibility, analytics, and traffic analysis.
Also known as: UA string, HTTP User-Agent header.
When a browser or application sends an HTTP request, it may include a User-Agent header.
A typical process includes:
User-Agent strings are self-reported, so they do not reliably prove a client's identity.
A traditional browser User-Agent may report:
Modern browsers may reduce the details exposed in User-Agent strings to limit fingerprinting.
Both provide information about a web request, but they serve different purposes.
Changing an IP address does not automatically change the User-Agent header.
A User-Agent is one piece of information that may contribute to browser identification.
Browser fingerprinting can combine additional signals, including screen characteristics, fonts, browser APIs, and graphics capabilities.
Consequently, a User-Agent alone is not a reliable way to uniquely identify a user or device.
Web scraping tools commonly send User-Agent headers with their HTTP requests.
Some HTTP libraries use default identifiers that reveal the library being used. Developers can configure these headers when testing website compatibility or accessing approved resources.
However, changing a User-Agent does not change the browser's actual capabilities, network IP, or TLS fingerprint.
Proxy servers and User-Agent headers control different parts of a connection and should not be treated as interchangeable.
The following Python example sends a request with a custom User-Agent:
import requests
headers = {
"User-Agent": "SwiftProxyResearchBot/1.0"
}
response = requests.get(
"https://example.com",
headers=headers,
timeout=10
)
print(response.status_code)
The server receives the specified User-Agent header and can use it to identify the requesting application.
The header does not provide authentication or guarantee access to the requested resource.
A User-Agent is an HTTP header that describes the software sending a web request.
It helps websites manage compatibility, analyze traffic, and identify client applications. For web scraping and automation, understanding User-Agent behavior is useful, but the header alone does not establish a client's identity or determine whether a request will succeed.