HTML halibut says:
Use
metareferrertag to control how much referrer information your site shares.
And here’s why:
- You can stop websites from seeing too much about where a visitor came from.
- You can stop websites from seeing too much about a visitor’s origin.
metareferrertag helps prevent hackers or trackers from getting details they shouldn’t.- When users click a link, you decide how much referrer information other websites get.
- Ads and analytics tools use referrer data, and this tag helps you control what they see.
- Browsers might remove referrer information when switching from a secure to an insecure site, but you can manage this.
Here are some tips on defining the meta referrer tag.
- Use the
no-referrervalue to prevent sending any referrer info. - Use the
no-referrer-when-downgradevalue to send referrer information only if the destination is also HTTPS. - Use the
originvalue to send only the domain, not the full URL. - Use the
origin-when-cross-originvalue to send full referrer information for same-site links, but only domain for external sites. - Use the
same-originvalue to send referrer information only for same-site links. - Use the
strict-origin-when-cross-originvalue to send full referrer information for same-site links, but only domain for HTTPS external sites, and nothing for HTTP.
Here’s how to use it:
<meta name="referrer" content="no-referrer">