Your access log says the request came from 203.0.113.7. Four systems downstream — the rate limiter, the fraud score, the abuse queue, the invoice — will treat that number as a fact about a person. Behind a proxy, it is a fact about a proxy. Behind a chain of proxies, it is a fact about whoever typed last.
The Forwarded header exists to put the client back into the record. RFC 7239, published in June 2014, is the document that finally wrote the rules down — and then, in its security considerations, did something rare for a standard: it warned you not to trust the thing it had just specified.
The short version
- RFC 7239 defines a header field that lets proxies “disclose information lost in the proxying process”, so each later component can see the addresses used along the chain.
- Its security section is blunt about the value of that record: the field “cannot be relied upon to be correct, as it may be modified, whether mistakenly or for malicious reasons, by every node on the way to the server, including the client making the request”.
What a proxy destroys, and why anybody cares
A proxy is supposed to be invisible. It terminates one connection, opens another, and from the server’s side the client has quietly become the proxy. The introduction lists the reasons proxies exist — load balancing, crypto offload, caching — and names the cost: requests “appear as if they originated from the proxy’s IP address”, which “represents a loss of information from the original request”.
For most of the web that loss is harmless. For the three uses the memo names — diagnostics, access control and abuse management — it is not. A shared egress collapses ten thousand subscribers into a single address, and every decision built on that address becomes a decision about the wrong entity. The abuse desk blocks a carrier-grade NAT and takes out a thousand unrelated customers. The rate limiter throttles an office because one laptop in it misbehaved. The invoice charges the wrong company for the wrong traffic.
Four parameters and one quietly subversive default
The header carries a list of hops, each with parameters. “for” identifies the node making the request to the proxy; “by” identifies the interface the request arrived on; “host” carries the host the proxy received; “proto” records the protocol used to reach it. Each value may be an IPv4 address, a bracketed IPv6 address with an optional port, the literal string “unknown”, or an obfuscated identifier beginning with an underscore.
The interesting design choice is in the default. When a proxy fills in “by” — its own side of the hop — the specification says the value SHOULD be “an obfuscated identifier” rather than an address. The proxy discloses the client readily and hides itself unless the backend genuinely needs to know where the packet came in. Read that twice: the client’s identity is treated as the useful part, the intermediary’s as the sensitive part. It is a small, quietly political statement about who the network is for.
Both “for” and “by” accept obfuscated identifiers, which produces a pleasant oddity: a chain can be entirely truthful and entirely uninformative at the same time.
The chain is written by everyone standing in it
The security considerations are the part to read twice. The field “cannot be relied upon to be correct”, because it may be modified “by every node on the way to the server, including the client making the request”.
Then the memo dismantles the obvious fix. Whitelisting trusted proxies has “at least two weaknesses”: the chain of addresses listed before the request reached the trusted proxy “cannot be trusted”, and unless the hop to the endpoint is secured, an attacker on the network can rewrite the data anyway.
Read together, the two sentences say something unfashionable. The header is excellent for correlation and worthless for proof. Any system that reads the leftmost address as the client’s identity is trusting a value the client itself could have written — and, being a client, may well have.
Read from the right, or be lied to politely
Frameworks have spent years learning to parse the chain from the right. The hop nearest the server is the only one a receiver can check, because it is the only one that arrived over a connection the receiver actually controls. Everything to its left is hearsay, neatly formatted.
The operational rule follows: walk in from the right, stop at the first hop you do not control, and treat everything beyond it as a claim rather than a fact. Systems that skip that step do not have an identity problem. They have a design problem that only looks like an identity problem at three in the morning.
What the field gives away
The second security note points the other way. A forwarding chain “can reveal internal structures of the network setup behind the NAT or proxy setup” — topology, hostnames, address plans — which is worth avoiding when the backend is a private network whose shape is nobody else’s business.
The memo offers three fixes: obfuscate the elements, stop internal nodes from updating the field, or have the egress proxy strip the revealing entries. Each is a decision about how much of the path the outside world is allowed to see.
Why the standard arrived in 2014, not 1999
By 2014 the de-facto headers were everywhere. X-Forwarded-For had been in the wild since the Squid caching proxy popularised it in the late 1990s; X-Forwarded-Host, X-Forwarded-Proto, X-Real-IP and Client-IP followed, each vendor spelling its own. HTTP already had Via, but Via records the intermediaries, not the client — useful for loop detection, useless for knowing who called.
So RFC 7239, written by Andreas Petersson and Martin Nilsson and published in June 2014, did not eliminate the old headers. It gave them a common spelling and, more usefully, wrote down the properties a common spelling has to live with. Fifteen years of operational practice went in; a warning label came out. The header is OPTIONAL, which is the specification’s way of saying: if you need it, you already have a problem.
The record is evidence, not authorship
That is the honest contribution. Not a scheme that makes forwarding trustworthy, but a specification that tells you what the record is worth — a list of claims assembled along a path, with the weakest hop setting the value of the whole.
The lesson travels well beyond HTTP. Lu Heng makes the same point about a far larger ledger: “The Internet does not depend on who records the addresses. It depends on the integrity of the record itself.” A forwarding chain is that sentence in miniature, tested a few billion times a day.
The record describes a request. It does not become the request. The moment a system forgets the difference, it starts making decisions about someone who was never there.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






