SEO Tools

Referrer Policy Tag Generator

Build a Referrer-Policy for privacy, analytics, affiliate links, and cross-origin embeds. Generates both the HTTP header and the meta tag version. Explains each policy value.

Loading tool...

What is Referrer Policy Tag Generator?

The Referrer-Policy controls how much of the referring URL is sent when a visitor clicks an outbound link or loads a cross-origin resource. It is useful for privacy, analytics control, and affiliate link handling. The policy can be set as an HTTP header, meta tag, or per-element attribute.

Quick answer

Use Referrer-Policy to control how much referrer information is sent when a visitor clicks a link on your site. strict-origin-when-cross-origin is a balanced default that sends full URLs on same-origin requests but only the origin on cross-origin requests.

Limitations

  • Referrer-Policy set via a meta tag or link attribute is a hint. Browsers may override it based on user privacy settings.
  • The no-referrer policy may break analytics, referral tracking, and logging that depend on the Referer header.
  • HTTP header-based Referrer-Policy takes precedence over meta tags. Both should be set consistently.

How to use this tool

  1. Choose the policy value that matches your privacy and analytics needs.
  2. The tool explains what referrer information is sent with each option.
  3. Copy the header or meta tag into your site configuration.
  4. Apply per-element referrerpolicy attributes for fine-grained control on specific links.

What you can use it for

  • Strip referrer information for privacy-focused sites.
  • Keep full referrer information for analytics and marketing attribution.
  • Set a site-wide policy with per-element overrides for specific links.

Use cases

Practical examples

Example

Privacy-conscious blog

A privacy-focused blog uses strict-origin-when-cross-origin to send only the origin on cross-origin requests while keeping full referrer data on same-origin links.

Example

Affiliate link handling

An affiliate site uses no-referrer-when-downgrade to keep referrer data on HTTPS links while stripping it for plain HTTP destinations.

Common mistakes

  • Setting no-referrer and breaking analytics that depend on referrer data.
  • Using unsafe-url which leaks full URLs including query parameters to external sites.
  • Forgetting that the meta tag policy can be overridden by the HTTP header.

Verification

  1. Click a link from your page and inspect the Referer header using DevTools Network panel.
  2. Test different policy values and verify the referrer value in the Network panel request headers.

FAQ

Questions about Referrer Policy Tag Generator

Should I use a header or a meta tag?

The HTTP header is stronger because it applies to all resources including images and scripts. The meta tag works when you cannot set headers, such as on GitHub Pages.

Which policy is the safest default?

Strict-origin-when-cross-origin balances privacy with functionality by sending the full referrer on same-origin requests but only the origin on cross-origin requests.

Related tools

More seo tools

Also try

Also try