Skip to content
Related Articles

Related Articles

Improve Article

HTML <img> referrerpolicy Attribute

  • Last Updated : 17 Jun, 2021

The HTML <img> referrerpolicy attribute is used to specify the reference information that will be sent to the server when fetching the image. 


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<img 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 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 <img> referrer policy attribute. 


<!DOCTYPE html>
        HTML img referrerpolicy Attribute
    <img src=
        alt="GeeksforGeeks logo" referrerpolicy="no-referrer"


Supported Browsers:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :