topic
Verified 2026-09-18

Forwarded Header Trust Boundaries

Forwarded carries client-facing protocol, host, and address information across configured intermediaries.

Trust Forwarded only when a known proxy has stripped and rebuilt the field. Normalize and authenticate the proxy chain before using it for redirects, access control, auditing, or URL generation.

httpproxyintermediariesheadersecurity

Reference (http)

Forwarded: for=203.0.113.7;proto=https;host=example.com

Trust Forwarded only when a known proxy has stripped and rebuilt the field. Normalize and authenticate the proxy chain before using it for redirects, access control, auditing, or URL generation.

Common mistakes

  • Treating client-supplied Forwarded or X-Forwarded-For as proof of source IP, scheme, or host.
Permalink: https://merginit.com/reference/http/forwarded-trust-boundaries