forwarded headers

HTTP headers such as X-Forwarded-For that a proxy adds to tell the app the original client address and scheme.

Trusting forged forwarded headers lets a client spoof its address and bypass address-based limits.

In more detail

Behind a proxy or load balancer, the app otherwise sees the proxy's address instead of the client's. The middleware that reads them must run before anything uses the client address, and must trust only known proxies, because clients can forge these headers.

Related terms

Taught in

References