AZ Tools

Referrer-Policy Header Builder

Network

The Referrer-Policy header controls how much of your URL is included in the `Referer` request header when users click links or your page makes subresource requests. This builder lets you pick one of the eight standard policies and see exactly what gets sent for the three scenarios that matter: a request to the same origin, a cross-origin request over HTTPS, and a cross-origin request that downgrades to HTTP. Both the response-header and the `<meta>` form are emitted so you can apply the policy from the server or inside a CDN-cached HTML.

Response header
Referrer-Policy: strict-origin-when-cross-origin
Meta tag form
<meta name="referrer" content="strict-origin-when-cross-origin">
What gets sent
ScenarioReferer sent
Same origin (HTTPS→HTTPS, same host)https://app.example.com/page?id=42
Cross-origin (HTTPS→HTTPS, different host)https://api.other.com
Downgrade (HTTPS→HTTP)(no header)

Apply the header on every HTML response. The `<meta>` form is useful when you can't control headers (static hosting that doesn't let you set them, etc.).

How to use

  1. Pick a policy. The default for modern browsers is `strict-origin-when-cross-origin` — leak only the origin when leaving HTTPS for HTTPS, and nothing on a downgrade.
  2. Read the three example rows to see exactly what the browser would send.
  3. Copy the response header (preferred) or the `<meta>` tag (works inside an HTML page when you can't control headers).

Frequently asked questions

Which policy is the safe default?
`strict-origin-when-cross-origin`. It sends the full URL for same-origin (your analytics still works), only the origin for cross-origin HTTPS, and nothing when downgrading to HTTP. This is the implicit default in modern browsers if you don't set a policy.
Why is `unsafe-url` flagged?
It sends the full URL (including query string) to every destination, even on HTTPS→HTTP downgrades. Query strings often contain tokens, ids and personal info — `unsafe-url` leaks them to the network and to whatever ad/analytics/embed lives at the destination.

Related tools