Security & Privacy

referrerpolicy="strict-origin"

Sends only the source origin, except when the request downgrades from trustworthy to untrustworthy, when no referrer is sent. Useful for limiting source path disclosure. On relevant request-generating elements such as a, area, img, iframe, link and script. An omitted or empty policy uses the applicable inherited/default policy. The referrer never includes credentials or fragments. The example requires real navigation and server logs to inspect headers.

Formal Syntax & Structure

html syntaxhtml
referrerpolicy="strict-origin"

Parameters & Attributes

NameTypeDescription
referrerpolicykeywordSends only the source origin, except when the request downgrades from trustworthy to untrustworthy, when no referrer is sent. Useful for limiting source path disclosure.

Working Example

Example Snippethtml
<a href="https://example.com/" referrerpolicy="strict-origin">External resource</a>
HTML Reference