Loading...
Loading...
Controls how much data about "where the user came from" is sent to the next website they visit.
Privacy Leak: If a user resets their password at `yoursite.com/reset-password?token=123` and then clicks a link to an external blog, that blog receives the full URL (including the token) in the Referrer header. They could potentially hijack the account. `strict-origin-when-cross-origin` fixes this by stripping the path/query parameters for external requests.
This header is critical for sites with sensitive URL parameters. `no-referrer` is the most private but breaks analytics. `strict-origin-when-cross-origin` is the modern "safe default" used by most browsers today even if unset, but you should set it explicitly to ensure coverage.
Referrer-Policy ships as a response header or a `<meta name="referrer">` tag. Header takes precedence. Modern browsers default to `strict-origin-when-cross-origin` when the header is absent, but that default is a browser policy, not a guarantee - set it explicitly.
curl -sI https://yourdomain.com | grep -i referrer-policycurl -s https://yourdomain.com | grep -i "meta name=\"referrer\""`strict-origin-when-cross-origin` is the safe default - it sends the full URL for same-origin requests, the origin only for cross-origin requests over HTTPS, and nothing when downgrading from HTTPS to HTTP. It preserves analytics while protecting URL contents.
Yes. `<a href="..." referrerpolicy="no-referrer">` overrides the document policy for that one link. Useful for "leave our site" links to sensitive destinations.
Usually no with `strict-origin-when-cross-origin` - analytics needs the origin, not the path. With `no-referrer`, yes, most attribution breaks. Test with your analytics provider before shipping.
Applied the configuration change? Run a live scan to confirm the vulnerability is patched.