HTML <area> referrerpolicy Attribute

❮ HTML <area> tag

Example

<img src="desk.jpg" usemap="#image-map">

<map name="image-map">
  <area referrerpolicy="same-origin" target="_blank" alt="Computer" title="Computer" href="computer.png" coords="112,31,285,246" shape="rect">
  <area referrerpolicy="same-origin" target="_blank" alt="Cup" title="Cup" href="cup.png" coords="327,212,31" shape="circle">
  <area referrerpolicy="same-origin" target="_blank" alt="Mobile" title="Mobile" href="mobile.png" coords="296,121,326,176" shape="rect">
  <area referrerpolicy="same-origin" target="_blank" alt="Book" title="Book" href="book.png" coords="53,132,115,157,72,237,2,211" shape="poly">
</map>

Meaning

The referrerpolicy specifies which referrer information to send with the hyperlink.

Note: Use this for advisory purpose


Standard Syntax

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



Browser Support




Status







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.
same-origin A referrer will be sent for same origin, but cross-origin requests will contain no referrer information.
strict-origin-when-cross-origin (default) Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS to HTTPS), and send no to a less secure destination (HTTPS toHTTP).
unsafe-url The referrer will include the origin and the path (but not the fragment, password, or username).
❮ HTML <area> tag