Open In App

HTML <link> referrerpolicy Attribute

Last Updated : 28 Feb, 2022
Like Article

The HTML <link> referrerpolicy Attribute is used to specify the reference information that will be sent to the server when fetching out the resource.  


<link referrerpolicy="value">

Attribute Values:

  • no-referrer: It specifies that no reference information will be sent along with a request.
  • no-referrer-when-downgrade: It has a default value. It specifies that refer header will not be sent to origins without HTTPS.
  • origin: It specifies to only send the origin of the document as the referrer in all cases.
  • origin-when-cross-origin: It sends the origin, path, and query string when performing a same-origin request, but only send the origin of the document for other cases.
  • unsafe-url: It sends origin, path and query string but not include fragment, password and username.

Example: Below code illustrates the use of <link> referrer policy attribute, we have set the referrerpolicy attribute to no-referrer. 


<!DOCTYPE html>
    <link id="linkid"
<body style="text-align:center;">
        HTML Link referrerpolicy Attribute


Supported Browsers:

  • Google Chrome 58.0
  • Internet Explorer Not Supported
  • Firefox 50.0
  • Apple Safari 14.1
  • Opera 45.0
  • Edge 79.0

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads