HTML <link> referrerpolicy Attribute
Example
<head>
<link rel="stylesheet" href="demo.css" referrerpolicy="no-referrer">
</head>
Meaning
Specifies the referrer policy used when processing the element's attributes, which involves what information is sent about the referrer in a request to another resource.
Standard Syntax
HTML: <link referrerpolicy="no-referrer|no-referrer-when-downgrade|origin|origin-when-cross-origin|unsafe-url">
XHTML: <link referrerpolicy="no-referrer|no-referrer-when-downgrade|origin|origin-when-cross-origin|unsafe-url" />
Advertisement
Attribute Values
| Value | Description |
|---|---|
| no-referrer | The Referer will not be sent. |
| no-referrer-when-downgrade | The Referer will not be sent to origins without TLS (HTTPS). |
| origin | The sent referrer will be limited to the origin of the referring page ( scheme, host, and port). |
| origin-when-cross-origin | The referrer sent to other origins will be limited to the scheme, the host, and the port. |
| unsafe-url | The referrer will include the origin and the path (but not the fragment, password, or username). |