SEO Tools

Free 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.

quickAnswer

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.

Last updated: 2026-05-25

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.

Sources:MDN Web Docs · W3C Specifications · jquery.app on GitHub

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.

Does referrer policy affect Google Analytics or other analytics tools?

A restrictive referrer policy can reduce the amount of referrer data available in analytics reports. With strict-origin-when-cross-origin, analytics tools still receive the origin of the referring page (such as https://example.com), which is enough for most reporting. No-referrer removes referrer data entirely from cross-origin requests, which can make traffic source analysis harder.

What is the difference between no-referrer and strict-origin?

No-referrer sends no referrer information on any request, same-origin or cross-origin. Strict-origin sends the full referrer on same-origin requests but only the origin (without path and query) on cross-origin requests when the protocol security level stays the same (HTTPS to HTTPS). No-referrer is the most private; strict-origin balances privacy with useful referral data.

Related tools

More seo tools

Seo

AI Crawler robots.txt Builder

Build a robots.txt policy for AI crawlers. Choose from open, selective, or strict presets and block specific AI training bots while allowing search engines.

Open tool

Also try

Also try

Html

ARIA Live Region Generator

Generate accessible ARIA live region HTML snippets with role, aria-live, aria-atomic, and aria-relevant attributes. Includes optional JavaScript update function.

Open tool

Html

CSP Hash Generator

Generate CSP hash values for inline scripts and styles. Hash exact code content with SHA-256, SHA-384, or SHA-512 and get the matching CSP directive snippet.

Open tool