HTTP Referrer Policy

http headers referrer policy guide
10 November 2024

Understanding HTTP Referrer Policy

When you visit a website and click on a link, your browser typically sends the originating site’s address to the destination site. This information can be used for analysis and monitoring user behavior. However, it depends on the policy set by the originating site. This policy is known as the "HTTP Referrer Policy".

In recent years, user privacy and security have become increasingly important, and the HTTP Referrer Policy is part of this trend. This tool allows you to control how much information about the site is sent to another site. Some sites, for privacy reasons, do not send the complete originating address. This results in the site that is linked receiving less complete information about user behavior and less information about the source for that origin.

This issue can lead developers to understand how to leverage this policy and which policies are more suitable for their use cases. For example, sites that provide sensitive information may decide that no information should be sent to external sites. Conversely, some sites may prefer to share more information to enhance their user behavior analysis.

Code Example for Using Referrer-Policy


<meta name="referrer" content="no-referrer">

Description of the Code

<meta> is a tag for specifying document metadata. <br> name="referrer" indicates that this meta is related to the Referrer-Policy. <br> content="no-referrer" specifies that no referrer information will be sent.

FAQ

?

How can I prevent sending referrer information?

?

Why should I be cautious about sending referrer information?

?

What amount of referrer information can be sent?