Security & Privacy
referrerpolicy="no-referrer-when-downgrade"
Sends the source URL for same-security or upgrading requests, but withholds it for a trustworthy-to-untrustworthy downgrade. This older policy can expose path and query to other origins. 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-when-downgrade"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| referrerpolicy | keyword | Sends the source URL for same-security or upgrading requests, but withholds it for a trustworthy-to-untrustworthy downgrade. This older policy can expose path and query to other origins. |
Working Example
Example Snippethtml
<a href="https://example.com/" referrerpolicy="no-referrer-when-downgrade">External resource</a>