Glossary / Referrer-Policy

Referrer-Policy

Referrer-Policy is an HTTP header that controls how much information about the current page the browser puts in the Referer header when the user follows a link or the page loads a resource. It lets you avoid leaking full URLs with private parameters to third-party sites.

Check your site

>

When a user clicks a link or the page loads an external resource, by default the browser adds a Referer header saying which page the request came from. That can include the full URL with tokens, ids or search queries you would rather not hand to someone else's server.

Referrer-Policy sets the trimming rule. no-referrer drops the header entirely. strict-origin sends only the domain, no path. The popular strict-origin-when-cross-origin sends the full URL to your own pages, only the domain to other sites, and nothing when going from HTTPS to HTTP.

The header affects both privacy and analytics. Too strict and you lose traffic-source data in your own stats; too open and you leak addresses to third parties. strict-origin-when-cross-origin is a sensible default balance.

Example

Referrer-Policy: strict-origin-when-cross-origin

Common mistakes

Related terms

Found problems?

Slow hosting, SSL trouble or frequent downtime? Move to TomisHost: fast hosting with free SSL, daily backups and free migration help.

TomisHost hosting