How to defend against Account Takeovers
Learn about account takeover threats, protection strategies, and detection methods to secure your digital accounts and prevent unauthorised access.
HTTP headers are key-value pairs that are sent along with every HTTP request and response. They serve as a communication mechanism between clients (like web browsers) and servers, allowing them to exchange additional information and metadata beyond the main content. Think of HTTP headers as the envelope of a letter - while the letter contains the main message, the envelope provides crucial delivery instructions and context.
These headers are invisible to end users but are fundamental to how the web operates. They control everything from caching behavior and security policies to content negotiation and authentication.
HTTP headers are categorized based on whether they're sent by the client or the server:
Request headers are sent by the client (such as a web browser) to provide information about the request or the client itself. Common examples include:
User-Agent
: Identifies the client software making the request
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
Accept-Language
: Specifies the preferred languages for the response
Accept-Language: en-US,en;q=0.9,es;q=0.8
Cookie
: Sends stored cookies back to the server
Cookie: session_id=abc123; preference=dark_mode
Authorization
: Provides authentication credentials
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Response headers are sent by the server to provide information about the response or the server itself. Common examples include:
Content-Type
: Specifies the media type of the response body
Content-Type: text/html; charset=utf-8
Cache-Control
: Defines caching policies
Cache-Control: max-age=3600, public
Set-Cookie
: Instructs the client to store a cookie
Set-Cookie: user_id=12345; Path=/; HttpOnly; Secure
Server
: Identifies the server software
Server: nginx/1.18.0
HTTP headers can be further classified into several categories based on their purpose:
These headers apply to both requests and responses and provide information about the message itself:
Connection
: Controls whether the network connection stays open after the current transactionDate
: Indicates when the message was sentVia
: Shows intermediate protocols and recipients between the user agent and the serverThese headers describe the body of the message, providing information about how the content is encoded or formatted:
Content-Length
: Indicates the size of the response body in bytesContent-Encoding
: Specifies any encoding applied to the body (like gzip compression)Content-Language
: Describes the natural language of the contentSome headers are specifically designed for either requests or responses:
Request-specific headers:
Host
: Specifies the domain name of the serverReferer
: Indicates the URL of the page that linked to the currently requested pageResponse-specific headers:
Location
: Used in redirects to specify the new URLWWW-Authenticate
: Indicates the authentication method requiredHTTP headers play crucial roles in modern web applications:
Headers like Cache-Control
, ETag
, and Last-Modified
enable sophisticated caching strategies that dramatically improve web performance. They tell browsers and CDNs when and how to cache content, reducing server load and improving user experience.
Security headers protect against various attacks:
Strict-Transport-Security
enforces HTTPS connectionsContent-Security-Policy
prevents cross-site scripting attacksX-Frame-Options
protects against clickjackingHeaders enable servers to deliver the most appropriate content based on client capabilities:
Accept-Encoding
allows servers to send compressed contentAccept-Language
enables multilingual websitesAccept
helps servers choose the best content formatHeaders facilitate various performance optimizations:
Accept-Encoding
and Content-Encoding
Connection: keep-alive
Link
headersHTTP headers are a fundamental part of how the web works, enabling rich and complex communication between clients and servers. While they operate behind the scenes, they're responsible for many features we take for granted: fast loading times through caching, secure connections, personalized content, and optimized delivery.
Understanding HTTP headers is essential for web developers, system administrators, and anyone working with web technologies. They provide the control mechanisms that make modern web applications secure, fast, and user-friendly. Whether you're optimizing performance, implementing security measures, or building APIs, HTTP headers are the tools that make sophisticated web communication possible.
Learn about account takeover threats, protection strategies, and detection methods to secure your digital accounts and prevent unauthorised access.
An overview of Account Takeover Attacks
A step-by-step breakdown of how credential stuffing attacks are carried out, from obtaining stolen credentials to bypassing defenses and taking over accounts.
An introduction to Anycast DNS
A quick description about what an Apex Domain is.
Learn the essential best practices for managing and rotating API keys to enhance security, prevent unauthorized access, and minimize the impact of key compromise.
© PEAKHOUR.IO PTY LTD 2025 ABN 76 619 930 826 All rights reserved.