What Are HTTP Headers?

HTTP headers are key-value pairs sent at the beginning of every HTTP request and response. They carry metadata about the connection, the content, caching behavior, security policies, and authentication - All invisible to normal users but critical to how the web works. Inspect the headers any website sends to your browser with our HTTP headers checker.

Common Request Headers

HeaderPurposeExample Value
HostSpecifies the domain being requested (required in HTTP/1.1)Host: example.com
User-AgentIdentifies the browser, OS, and versionMozilla/5.0 (Windows NT 10.0; Win64; x64)...
AcceptContent types the client can handletext/html, application/json
Accept-LanguagePreferred language for the responseen-US,en;q=0.9
RefererURL of the page that linked to this resourcehttps://google.com/search?q=...
CookieSends stored cookies to the serversession_id=abc123; theme=dark
AuthorizationSends credentials for HTTP authenticationBearer eyJhbGci...
X-Forwarded-ForPasses client IP through proxies and load balancers203.0.113.5, 10.0.0.1

Important Security Response Headers

HeaderPurposeRecommended Value
Strict-Transport-SecurityForces HTTPS for future visits (HSTS)max-age=31536000; includeSubDomains
Content-Security-PolicyControls which resources the browser may load (blocks XSS)default-src 'self'; script-src 'self'
X-Content-Type-OptionsPrevents MIME-type sniffingnosniff
X-Frame-OptionsPrevents clickjacking via iframesDENY or SAMEORIGIN
Referrer-PolicyControls how much referrer info is sentstrict-origin-when-cross-origin
Permissions-PolicyControls access to browser APIs (camera, microphone, etc.)geolocation=(), camera=()

How Headers Relate to Privacy

  • The User-Agent header reveals your browser, OS version, and architecture - A significant fingerprinting signal.
  • The Referer header can leak sensitive URLs (including search queries or internal paths) to third-party resources.
  • X-Forwarded-For headers added by proxies and VPNs can reveal your original IP to the destination server if the proxy is misconfigured - Run our VPN leak test to verify yours doesn't.
  • The Accept-Language header reveals your preferred language - A small but contributing fingerprinting attribute.