Summary

  • RFC 7239, June 2014, Standards Track, defines "an HTTP extension header field that allows proxy components to disclose information lost in the proxying process" — chiefly, who actually made the request.
  • It names the incumbent practice it was cleaning up: information disclosed "by using the non-standard header fields such as X-Forwarded-For, X-Forwarded-By, and X-Forwarded-Proto".
  • The gain is correlation, not new facts. One field makes it "possible to know what information belongs together, as long as the proxies are trusted" — something three separate X-Forwarded headers could never guarantee.

The information a proxy destroys

A reverse proxy ends one connection and opens another. The server behind it sees the proxy, not the person who knocked, and every decision that depends on the client address — logging, rate limits, geo rules, access control — suddenly needs that address back.

So proxies started bolting on headers. Each vendor or project invented its own; each server learned the popular ones. Nobody designed this. It accumulated, the way most of the Internet's load-bearing furniture did.

Why one header beats three

Separate fields can disagree, and they do. A chain of proxies appends addresses in an order nobody documented, and the pieces of a single hop end up scattered across three headers that some downstream service has to reassemble by position — a police sketch drawn by three witnesses who never met.

The standard header carries one element per hop, with parameters inside it, so an address, the protocol and the hostname from the same hop stay together. Correlation is the feature. Coherence is what a log line or a policy check actually needs.

Trust is still the premise

The document is explicit: the correlation holds "as long as the proxies are trusted". The field itself is optional, so a proxy built for privacy does not have to emit it at all.

That admission matters more than the syntax. The header is a claim made by a party in the middle, and a server that trusts it is choosing to believe an intermediary about where a request came from. A record is only ever as good as the list of who may write in it.

Obfuscation as a first-class option

For the case where internal addresses should not leak but tracing still matters, the document defines an obfuscated identifier: an underscore-prefixed token, generated randomly for each request unless persistence is required, and never kept longer than the client address would have been.

That is a small design decision with a large consequence. It tells implementers the header can carry a purpose-built surrogate rather than the real thing — often enough to debug a chain, and useless to an advertiser.

The pattern of standardising what already spread

RFC 7239 is a familiar genre: a practice goes universal without a specification, the specification arrives to make it coherent, and the old names stay in the wild for years because software is patient and nobody rewrites a parser that works.

The document's real value is that it takes accumulated folk knowledge and turns it into something arguable — including the part folk knowledge never said out loud: who is trusted to say what. Every provenance system eventually meets that question, and it is never a syntax question.