Summary
- RFC 1945, HTTP/1.0, has no Host request header at all: the host name exists in the URL the user typed, and the request carries only a path, so a server's clue about which site was wanted was the address the client had dialled.
- RFC 2068, HTTP/1.1, made the field mandatory in January 1997 — "A client MUST include a Host header field in all HTTP/1.1 request messages" — and required a 400 response from any server receiving an HTTP/1.1 request without one. RFC 7230 then called the field "an application-level routing mechanism" and listed shared-cache poisoning among its hazards.
In HTTP/1.0 the address was the whole name
Read RFC 1945 looking for the Host header and there is nothing to find. The host appears only in the URL's own grammar, http_URL = "http:" "//" host [ ":" port ] [ abs_path ], with the note that the identified resource sits "at the server listening for TCP connections on that port of that host, and the Request-URI for the resource is abs_path".
That sentence describes an addressing scheme, not a request format. When a 1996 browser opened a connection and sent GET /index.html HTTP/1.0, the server learned a path and nothing else. The name www.example.com had already done its work in the DNS lookup and the connection. A server that answered on that socket had exactly one site to answer with, because the socket was the only thing that distinguished it from any other site.
Nobody had declared that one address may host one name. HTTP/1.0 simply gave the request no field in which a second name could be said.
HTTP/1.1 wrote the name into the request
RFC 2068, from January 1997, changed the request's vocabulary. Section 5.1.2 says that when a resource is fetched directly from an origin server, the absolute path goes in the Request-URI "and the network location of the URI (net_loc) MUST be transmitted in a Host header field". The worked example is the whole change:
GET /pub/WWW/TheProject.html HTTP/1.1
Host: www.w3.org
Section 14.23 explains what the field is for, in a sentence that names the business model it made possible: it allows a server or gateway "to differentiate between internally-ambiguous URLs, such as the root "/" URL of a server for multiple host names on a single IP address". The requirement is absolute on both sides. A client "MUST include a Host header field in all HTTP/1.1 request messages on the Internet", a proxy must add one if it is missing, and "All Internet-based HTTP/1.1 servers MUST respond with a 400 status code to any HTTP/1.1 request message which lacks a Host header field."
A document that spends a page on status codes chose 400 — bad request — for a request it could not address. That is the smallest possible statement of the new rule: without a name, the request is not merely ambiguous, it is malformed.
Two things now decided which page you got
Section 5.2 of the same memo does the harder work. It tells origin servers that "the exact resource identified by an Internet request is determined by examining both the Request-URI and the Host header field". For a server that does differentiate by host — the memo's own words are "virtual hosts or vanity hostnames" — three rules follow.
If the Request-URI is an absolute URI, the host is already in it and any Host header value "MUST be ignored". If not, the host "is determined by the Host header field value". And if the resulting host "is not a valid host on the server, the response MUST be a 400 (Bad Request) error message".
The last paragraph of the section concedes the transition problem. A recipient of an HTTP/1.0 request with no Host may try heuristics, "such as examination of the URI path for something unique to a particular host", to guess what was meant. That is the mess the field was introduced to end: before 1997 a server with several names on one address could only inspect the path and hope.
What the field actually moved
The practical effect was economic before it was technical. One address, one certificate, one server process, one set of logs could now answer for any number of names, because the name arrived per request instead of being fixed by the socket. That is the deal shared hosting is built on, and it needed no new transport, no new DNS record and no new port — just a header that repeats something the client already knew.
It also moved something less comfortable. The identity of the site being served became a value the client writes. The server's job stopped being "answer as the site at this address" and became "read the name, find the site, decide whether the name is one you answer for". Every layer that wanted to route, log, cache or bill by site now had to parse a client-supplied string to do it.
2014: the field is called routing, and fenced
RFC 7230, June 2014, restates the requirement with seventeen years of operational scar tissue. The field "provides the host and port information from the target URI, enabling the origin server to distinguish among resources while servicing requests for multiple host names on a single IP address". A client must send it in every HTTP/1.1 request, must make the value identical to the target URI's authority, and must send an empty value if the authority is missing.
The details are where the experience shows. Host should be "the first header field following the request-line", because it is "critical information for handling a request". A client must send Host even when the request-target is in absolute form, "since this allows the Host information to be forwarded through ancient HTTP/1.0 proxies that might not have implemented Host" — a requirement that exists to accommodate software that has been obsolete for a decade. A proxy receiving absolute-form must ignore the received Host and rebuild it from the request-target.
A server must answer 400 to a missing Host, to more than one Host, or to an invalid Host value.
Then the paragraph that turned a routing convention into a security note. "Since the Host header field acts as an application-level routing mechanism, it is a frequent target for malware seeking to poison a shared cache or redirect a request to an unintended server." An interception proxy is "particularly vulnerable" if it uses the Host value to pick an internal server, or as a cache key, "without first verifying that the intercepted connection is targeting a valid IP address for that host".
Read that carefully. The document's defence against a wrong Host is not a better Host. It is the IP address the connection actually reached. The claim in the header stays a claim; what makes it safe is a second, older fact that the client did not get to choose.
The same problem reappeared one layer down
HTTP got its name field in 1997. TLS did not. RFC 6066 opens its section on server name indication with the flat admission: "TLS does not provide a mechanism for a client to tell a server the name of the server it is contacting." The extension exists, in the memo's own phrasing, for "servers that host multiple 'virtual' servers at a single underlying network address" — the same sentence as section 14.23 of RFC 2068, written fifteen years later about a different protocol layer.
The handshake version is stricter about being ignored. If the server understands the extension but does not recognise the name, it should either abort with a fatal unrecognized_name(112) alert or continue; a name that does not match the credential the server chose becomes visible only when the client performs endpoint identification. The claim is repeated in the handshake, and the client still has to check what came back.
A header that decides who gets served
Every proxy, cache, load balancer and log pipeline in the path now takes a routing decision from a string the client typed. The 1997 memo made that decision possible and the 2014 memo made it explicit. What neither could do was make the string true.
The rule that survived is unglamorous: the name in the request decides which site answers, and the address the connection reached decides whether to believe the name. Everything that treats Host as a fact rather than a claim eventually learns the difference from an incident — a poisoned cache entry, a request redirected to an internal host, a certificate presented for the wrong name.
One address holding one website was never a rule anybody wrote down. It was a limitation nobody had needed to fix until the web had more names than addresses, and the fix was to put the name in the one place where the client could say anything it liked.
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.






