Syntax Checker & Code Validator
About Referrer-Policy Generator
The HTTP `Referrer-Policy` Header & Meta Tag Studio configures the amount of referrer information (`Referer` header) sent when users navigate away from your website or load third-party subresources.
How to Use Referrer-Policy Generator
Step 1
Select a Referrer-Policy directive from the comparison matrix.
Step 2
Inspect the simulated referrer header sent for each link scenario.
Step 3
Copy the HTTP header or HTML meta tag snippet.
Practical Use Cases for Referrer-Policy Generator
Protecting Sensitive User URLs & Tokens in Queries
Prevent internal URLs with query parameters or session IDs from leaking to external analytics and ad networks upon outbound link clicks.
Configuring Privacy-Compliant Referrer Policies
Set `strict-origin-when-cross-origin` to preserve marketing attribution data on same-origin links while sending only domain names across origins.
Input & Output Examples
Configuring Modern Privacy Standard Policy
Policy: strict-origin-when-cross-origin
`Referrer-Policy: strict-origin-when-cross-origin`\n`<meta name="referrer" content="strict-origin-when-cross-origin">`
Key Features & Performance
- ✓Covers all 8 W3C Referrer Policies: `no-referrer`, `no-referrer-when-downgrade`, `origin`, `origin-when-cross-origin`, `same-origin`, `strict-origin`, `strict-origin-when-cross-origin`, `unsafe-url`.
- ✓Interactive privacy impact visualizer showing exact data sent across Same-Origin, Cross-Origin HTTPS, and Downgrade to HTTP.
- ✓Generates HTTP Header, HTML `<meta name="referrer">`, and anchor tag `referrerpolicy="..."` attributes.
- ✓100% Client-Side memory execution.
- ✓1-Click Copy policy code.
Key Terminology & Definitions
`strict-origin-when-cross-origin`
The modern default browser policy sending full URL for same-origin requests, origin-only for cross-origin HTTPS requests, and no header when downgrading to HTTP.
Referrer Downgrade
Navigating from an encrypted HTTPS origin to an unencrypted plain HTTP destination.
