Security & Privacy

referrerpolicy="no-referrer"

Omits the Referer header for the affected request. Useful when the destination does not need information about the source page. 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="no-referrer"

Parameters & Attributes

NameTypeDescription
referrerpolicykeywordOmits the Referer header for the affected request. Useful when the destination does not need information about the source page.

Working Example

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