Skip to main content
HeadersMedium PriorityFree

Referrer Policy

Updated November 2026·SecScanner Team

Referrer-Policy controls how much referrer information is sent when navigating away from your site.

62% of the 101 most-visited sites we scan fail this check. See the full data.

Results in 1–3 minutes · Free · No signup required

Want the result for your own site? Free Security Headers Checker — paste your domain, get the report.

Why It Matters

The Referer header can leak sensitive information like session tokens in URLs or internal page structures. Controlling this protects user privacy and security.

How We Check

We check for the Referrer-Policy header and evaluate the chosen policy for security and privacy implications.

Good vs Bad Values

Good and bad values for Referrer Policy
ValueVerdictWhy
Referrer-Policy: strict-origin-when-cross-originGoodFull URL for same-origin navigation, only the origin for cross-origin requests, and nothing on an HTTPS to HTTP downgrade. Matches the modern browser default and is the usual recommendation.
Referrer-Policy: no-referrerGoodNever sends a Referer. Maximum privacy, at the cost of analytics attribution and some third-party features that need the referrer.
Referrer-Policy: same-originGoodReferrer only for requests to your own origin; cross-origin destinations get nothing.
Referrer-Policy: strict-originGoodSends only the origin, and only when the destination is at least as secure. Good for sites whose URL paths are sensitive.
Referrer-Policy: no-referrer, strict-origin-when-cross-originGoodA fallback list: browsers use the last value they recognize, so older browsers that do not know the second value use the first.
Referrer-Policy: origin-when-cross-originWeakFull URL on your own site, origin elsewhere. Acceptable, but unlike strict-origin-when-cross-origin it still sends the origin on an HTTPS to HTTP downgrade.
Referrer-Policy: no-referrer-when-downgradeWeakThe old browser default. It sends the full URL, path and query, to every HTTPS destination, so tokens in URLs leak to third parties.
Referrer-Policy: strict-origin-when-cross-orignWeakA typo. The scanner only rejects unsafe-url, so it passes, but browsers ignore unknown values and fall back to their default.
Referrer-Policy: unsafe-urlBadSends the complete URL to everyone, including plain HTTP sites. Any secret in a URL (reset tokens, ids, search terms) is handed to every site you link to or load resources from.
Header missingBadBrowsers apply their own default, which is currently strict-origin-when-cross-origin in the major browsers but is not under your control, and older clients differ.

How to Fix

Add Referrer-Policy: strict-origin-when-cross-origin for a good balance of functionality and privacy. Use no-referrer for maximum privacy.

Nginx:

add_header Referrer-Policy "strict-origin-when-cross-origin" always;

Apache (requires mod_headers):

Header always set Referrer-Policy "strict-origin-when-cross-origin"

Next.js — next.config.js:

module.exports = {
  async headers() {
    return [{
      source: "/(.*)",
      headers: [{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" }],
    }];
  },
};

Express with Helmet: app.use(helmet.referrerPolicy({ policy: "strict-origin-when-cross-origin" })). Caddy: header Referrer-Policy strict-origin-when-cross-origin. Cloudflare: Transform Rule → Modify Response Header → Set static.

Overriding for one link or request. The attribute beats the header for that element only:

<a href="https://partner.example.com" referrerpolicy="origin">Partner</a>
<img src="https://cdn.example.com/pixel.gif" referrerpolicy="no-referrer">

Choosing a value. For most sites use strict-origin-when-cross-origin. If URLs contain account identifiers, use strict-origin or same-origin. For an admin panel or a page that handles tokens, no-referrer is the safest choice.

Verify with curl -sI https://example.com | grep -i referrer-policy. To see what a destination receives, open DevTools → Network on a page that loads a third-party resource and read its Referer request header.

Common Mistakes

  • Relying on the browser default. Current Chrome, Firefox and Safari use `strict-origin-when-cross-origin`, but a missing header means you have no explicit policy, and older or embedded browsers fall back to the weaker `no-referrer-when-downgrade`.
  • Putting secrets in URLs (password-reset tokens, magic-link codes, session ids, API keys). A referrer policy limits leakage but does not make that safe; move tokens to POST bodies or short-lived, single-use links.
  • Choosing `no-referrer` and then wondering why affiliate, analytics or payment providers stop attributing traffic. Use `strict-origin-when-cross-origin` unless privacy outweighs attribution.
  • Setting the policy only in a `<meta name="referrer">` tag. That works for the document, but it does not cover non-HTML responses; the header is more reliable.
  • Expecting `rel="noreferrer"` to replace the header. It affects a single link, and also strips `window.opener`; a site-wide header is the baseline.
  • Using `unsafe-url` to fix a one-off analytics requirement. Override the policy for the one link or request instead of the whole site.

Frequently Asked Questions

What is Referrer Policy?

Referrer-Policy controls how much referrer information is sent when navigating away from your site.

Why does Referrer Policy matter for website security?

The Referer header can leak sensitive information like session tokens in URLs or internal page structures. Controlling this protects user privacy and security.

How do I fix Referrer Policy issues?

Add Referrer-Policy: strict-origin-when-cross-origin for a good balance of functionality and privacy. Use no-referrer for maximum privacy.

Related Security Checks

Related Tool

Security Headers Checker

Run all 10 related checks with our free security headers checker

Check Your Website Now

Run a free security scan to check for Referrer Policy issues and 61 other security checks.

Scan Your Website Free