Referrer-Policy
What is Referrer-Policy?
Referrer-Policy is an HTTP header, specified by the W3C, that controls how much of a page's URL browsers send cross-origin in the Referer header when loading a resource or following a link elsewhere. AdminKit's HTTP security headers guide explains what each header result means, Referrer-Policy included.
By AdminKit team, Netbase JSC · Updated
Referrer-Policy is an HTTP response header, specified by the W3C’s Referrer Policy standard, that controls how much of the current page’s URL a browser includes in the Referer header of requests it triggers to other origins — loading an image, following a link, or submitting a form. The Referer header itself, historical misspelling included, is defined in RFC 9110, HTTP Semantics. MDN’s Referrer-Policy reference documents every directive value and browser support for it. Defined values range from no-referrer, which omits the header entirely, through origin, which sends only the scheme, host and port, to same-origin, which sends the full URL only to the page’s own origin. Modern browsers default to strict-origin-when-cross-origin when no header is set: it sends the full URL to same-origin destinations, only the origin across origins, and nothing at all when a request would downgrade from HTTPS to plain HTTP. Without an explicit, stricter policy, a page’s own URLs — which can carry session tokens or search terms in the path or query string — may leak to every third-party resource it loads. An explicitly set value can also do worse than that default, not just fail to improve on it — see evaluating HTTP security header policy strength for why a value like unsafe-url counts as a regression. Referrer-Policy sits alongside other response-side controls like Content-Security-Policy, which restricts what a page can load or execute, and Subresource Integrity, which blocks a tampered third-party script even when CSP allows the source.
AdminKit groups referrer-Policy under its machine protocols cluster — browse the AdminKit glossary index for other related terms.
Frequently asked questions
What does the Referrer-Policy header control?
How much of the current page's URL a browser includes in the Referer header of requests it triggers to other origins.
What does a no-referrer policy do?
It omits the Referer header entirely.
What do modern browsers default to when no Referrer-Policy header is set?
strict-origin-when-cross-origin -- the full URL to same-origin destinations, only the origin across origins, and nothing at all on an HTTPS-to-HTTP downgrade.
Who specifies the Referrer-Policy header?
The W3C, in its Referrer Policy standard.