Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Range Header
Cyber Security

Range Header

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Cyber Security

The Range header is an HTTP request header that asks a server to send only part of a resource, usually a byte range. It is used for resumable downloads, media streaming and partial content responses, typically with status 206 Partial Content.

How the Range Header Works

The Range header lets a client request only part of a resource instead of the full body. In practice, that means the server can return a byte range for downloads, streaming, or recovery after interruption, usually with a 206 Partial Content response and a Content-Range header describing what was sent.

This mechanism is useful when a client needs to resume a transfer without starting over, or when an application wants to fetch a specific segment of a larger object. It is a transport feature, not an access-control feature, so the byte range itself does not imply any permission change.

Why Partial Content Matters

Partial responses reduce bandwidth waste and improve user experience for large files, media, archives, and other objects that are expensive to retransmit in full. They also let clients recover from transient network failures by resuming from the last confirmed byte rather than discarding already received data.

Range-based retrieval is only reliable when the origin or intermediary handling the request supports it correctly. If a server ignores the header, returns inconsistent offsets, or serves different content for the same resource identifier, clients may see corruption, duplicate segments, or failed resumptions.

Server Behaviour and HTTP Semantics

Not every request can be satisfied with a range response. Servers may reject invalid ranges, ignore unsupported ones, or return the whole resource when range processing is not appropriate. The semantics depend on the resource representation, caching behaviour, and whether the server can safely map byte positions to the current version of the object.

In HTTP, the Range header is paired conceptually with RFC 7233: Range Requests, which defines how clients ask for partial content and how servers signal successful or unsatisfied range requests. That specification is the clearest reference for edge cases such as multiple ranges and conditional retrieval.

Operational Uses and Implementation Trade-offs

Range support is common in media delivery, object storage, browser downloads, and API-backed file transfer services. It can reduce latency for end users and lower infrastructure load, but it also adds implementation complexity because the server must validate offsets, preserve consistency, and avoid mixing cached fragments from different object versions.

When range requests are combined with compression, caching, or content transformation, the server must be careful about what the byte positions refer to. A range is defined over the representation being served, so transformations can change the meaning of the offset and make naive partial delivery unsafe or inaccurate.

Risk and Threat Considerations

Range requests can create exposure when servers handle very large or pathological range values poorly. Misimplementation may lead to excessive resource use, cache confusion, or content reconstruction issues, especially when intermediaries, compression, or dynamic content are involved.

Failure mechanism: An attacker can send malformed, repeated, or expensive-to-process range patterns to trigger disproportionate work, or exploit inconsistent range handling to induce partial-response anomalies and downstream parser or caching failures.

Impact: The result can be bandwidth amplification, degraded availability, corrupted transfers, or inconsistent object delivery that undermines client trust in the served content.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP ASVS, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV12 — Secure CommunicationRange requests are HTTP transport behaviour and depend on correct response semantics.
Recommendation — Verify HTTP partial-content handling to ensure clients receive consistent, standards-based transfers.
CIS Controls v8CIS-16 — Application Software SecurityRange handling is an application-layer protocol feature that needs secure implementation and testing.
Recommendation — Test partial-response paths for malformed inputs, cache interactions, and implementation flaws.
NIST SP 800-53 Rev 5SC-5 — Denial of Service ProtectionPathological range handling can consume disproportionate server resources and affect availability.
SI-10 — Information Input ValidationServers must validate range syntax and bounds to prevent malformed partial-content handling.
AU-2 — Event LoggingPartial-content anomalies are easier to investigate when range requests are logged.
Recommendation — Limit resource-intensive request patterns and monitor for request forms that amplify server load. Validate range values and reject invalid offsets before processing or assembling responses. Log partial-content requests and unusual range patterns for investigation and tuning.

Practitioner Guidance

What to watch for: Treat Range support as a protocol feature that needs explicit validation, not as a default safe behaviour. Confirm that your server returns correct 206 handling, rejects invalid ranges cleanly, and preserves consistency across caches, compression layers, and versioned content.

Practitioner takeaway: If your application serves large objects, test partial-content handling as part of transport and cache validation, because the failure modes usually appear at the boundaries between origin, proxy, and client.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org