The Referer request header
protocol | HTTP Header |
type | Request Header |
Mozilla link | https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer |
RFC | RFC2068 |
The Referer header is generated by the Client
Referer = "Referer" ":" ( absoluteURI | relativeURI )
The Referer header is
The Host header is not directly related or dependant on any other header, although it does work with the request field.
Example Referer headers.
Referer: https://http-headers.com/request-headers.html
Referer: http://localhost:800/test.html
Referer: http://telephone-number-checker.co.uk/area-code/0208004/Geographic%20Number
The Referer[sic] header allows the Client to declare, for - amongst others - the Origin Server's benefit, the URI of the resource from which the request was obtained. No referer will be sent for a resource directly accessed. That is, no referer will be sent for resources requested as a result of direct input. It is only provided when accessed from an existing resource held by the Client. In the event that a partial URI is provided, the server needs to interpret the URI relative the the request URI.
A Client security issue exist in some use cases because the source link in a Referer may contain information that is otherwise private and would not be revealed. There are various options to address this situation;