HTML <area> referrerpolicy attribute

Definition and Usage

referrerpolicy The attribute specifies the referrer information (referrer information) to be sent when the user clicks on a hyperlink.

Example

Set the referrerpolicy attribute for area hyperlinks:

<map name="planetmap">
<area shape="rect" coords="0,0,114,576" href="sun.html" referrerpolicy="same-origin">
<area shape="circle" coords="190,230,5" href="mercur.html" referrerpolicy="same-origin">
<area shape="circle" coords="228,230,5" href="venus.html" referrerpolicy="same-origin">
</map>

Syntax

<area referrerpolicy="no-referrer|no-referrer-when-downgrade|origin|origin-when-cross-origin|same-origin|strict-origin-when-cross-origin|unsafe-url">

Attribute value

Value Description
no-referrer Do not send referrer information.
no-referrer-when-downgrade Default. Send the origin, path, and query string if the protocol security level remains the same or higher (HTTP to HTTP, HTTPS to HTTPS, HTTP to HTTPS are all possible). Do not send any content to a lower security level (HTTPS to HTTP is not allowed).
origin Send the document's source (protocol, host, and port).
origin-when-cross-origin For cross-origin requests, send the document's source. For same-origin requests, send the source, path, and query string.
same-origin For same-origin requests, send reference page information. For cross-origin requests, do not send reference page information.
strict-origin-when-cross-origin If the protocol security level remains unchanged or higher (HTTP to HTTP, HTTPS to HTTPS, and HTTP to HTTPS are all acceptable), send the source. For less secure levels (from HTTPS to HTTP), do not send any content.
unsafe-url Send the source, path, and query string (without considering security). Use this value with caution!

Browser Support

The numbers in the table indicate the first browser version to fully support the attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
51.0 79.0 50.0 11.1 38.0