Referrer-Policy Leaking Full URLs: What It Means
The referrer-policy header controls how much of your page's URL the browser shares when a visitor clicks an external link or loads a third-party resource. A loose policy sends the full path and query string, which can expose internal routes, search terms, order IDs or sensitive tokens to other domains. Setting a stricter policy keeps private URL details from leaking across origins.
What it is
When visitors click away, your site tells the next site the full address they came from, including the path and query.
Why it matters
URLs sometimes contain tokens, search terms or internal paths. Sending them to third parties is a privacy and security leak.
Meowdit rates this high risk.
How to tell if your site has it
- Open your browser developer tools, go to the Network tab, select the main document request and inspect the Referrer-Policy response header.
- Look for loose policy names such as unsafe-url or no-referrer-when-downgrade, which allow full paths and query parameters to leave your origin.
- You can also click an outbound link or third-party asset request in the Network tab and check the actual Referer value in Request Headers.
- Other scanners commonly report this as 'Referrer-Policy header not set' or 'Referrer-Policy leaks full URL'.
Fix direction
Configure the Referrer-Policy header globally at your web server, CDN or application framework so cross-origin requests share at most your origin or nothing at all. Check whether partner analytics or hotlink rules rely on domain-level referrers before tightening, and use a scan report for tailored steps.
A scan gives you the steps specific to your site, plus a fix prompt you can paste into an AI tool. See what a report looks like: View the public example report
FAQ
- How do no-referrer, same-origin and strict-origin-when-cross-origin compare?
- no-referrer hides the referrer everywhere for maximum privacy, though external sites cannot see referral traffic from you. same-origin sends full URLs within your own site and nothing cross-site. strict-origin-when-cross-origin sends full URLs internally and only the domain name on cross-origin HTTPS requests. Each balances privacy and referral visibility differently.
- Don't modern browsers already default to a safer Referrer-Policy?
- Most current browsers default to sending only the origin on cross-site requests, but older browsers and some embedded clients still use looser defaults. Sending the header explicitly keeps behaviour consistent for every visitor and clears audit flags.
- Will tightening Referrer-Policy break site analytics?
- Internal analytics typically continue working because same-origin navigation can still receive path information under origin-preserving policies. Impact on cross-domain attribution or asset hotlink protection depends on how strict a policy you choose and how those third-party tools read the header.
References
Related checks
Related guides
All checks · View the public example report
This page was written and checked by AI and has not been reviewed by a person, so please verify before applying; see About Meowdit. Last updated: 2026-11-22