PatchPingsAI-Powered
HomeFeaturesMonitoringPricingHow it worksFAQ
Download free
PatchPings

Secure. Monitor. Fix.

AI-powered website monitoring & audits

Product

  • Features
  • Monitoring
  • Scans
  • DMARC checker
  • SSL checker
  • Pricing
  • FAQ

Company

  • About
  • Knowledge Base
  • Contact

Install

  • Lens
  • WordPress
GET IT ONGoogle Play
PrivacyExtension privacyCookiesTermsAcceptable useDelete account

© 2026 PatchPings by CodenVibe IT LLC. All rights reserved.

PatchPings

Secure. Monitor. Fix.

AI-powered website monitoring & audits

Install

  • Lens
  • WordPress
GET IT ONGoogle Play

Product

  • Features
  • Monitoring
  • Scans
  • DMARC checker
  • SSL checker
  • Pricing
  • FAQ

Company

  • About
  • Knowledge Base
  • Contact

© 2026 PatchPings by CodenVibe IT LLC. All rights reserved.

PrivacyExtension privacyCookiesTermsAcceptable useDelete account
PatchPings

Secure. Monitor. Fix.

AI-powered website monitoring & audits

Product

  • Features
  • Monitoring
  • Scans
  • DMARC checker
  • SSL checker
  • Pricing
  • FAQ

Company

  • About
  • Knowledge Base
  • Contact

Install

  • Lens
  • WordPress
  • GET IT ONGoogle Play

© 2026 PatchPings by CodenVibe IT LLC. All rights reserved.

PrivacyExtension privacyCookiesTermsAcceptable useDelete account
  1. Home
  2. /
  3. Knowledge Base
  4. /
  5. Referrer-Policy Header
Security 3 min readOct 19, 2026

Referrer-Policy Header: Control What URLs You Leak

Referrer-Policy controls how much of the current URL is sent in the Referer header on navigations and requests. Learn practical values and privacy trade-offs.

The PatchPings Team
Privacy-focused link trail illustrating Referrer-Policy URL leakage control

The Referrer-Policy header tells browsers how much of the current page URL to include in the Referer header (note the spelling) when users navigate away or when the page makes subresource requests. Without a policy, sensitive path segments or query tokens can leak to third-party hosts.

This guide covers the values teams actually ship, a safe default for most product sites, and how to verify the header with a security scan.

Practical policy values

  • `no-referrer` - never send a referrer; breaks some analytics that rely on it.
  • `same-origin` - send full referrer only to same-origin requests.
  • `strict-origin` - send only the origin cross-origin, and only over HTTPS to HTTPS.
  • `strict-origin-when-cross-origin` - full URL same-origin; origin-only on cross-origin HTTPS; strip on downgrade. A strong default for many sites.
  • `no-referrer-when-downgrade` - legacy default behaviour in older browsers; weaker privacy.
Recommended defaultcode
Referrer-Policy: strict-origin-when-cross-origin

Why query strings matter

Password-reset links, invite tokens, and search queries sometimes appear in URLs. If a user clicks from that page to an external site, a loose referrer policy can forward those secrets. Prefer policies that strip paths on cross-origin navigations, and avoid putting secrets in URLs whenever you can.

HTML can override per link

Individual links may set rel="noreferrer" or a referrerpolicy attribute. Use the response header as the site-wide baseline, then tighten exceptional links.

Analytics and affiliate trade-offs

Some partners expect a full referrer path. If you must support them, isolate those exit links rather than weakening the global header. Document the exception so a future security pass does not "fix" it without notice.

Verification steps

  1. 1Confirm Referrer-Policy on HTML document responses.
  2. 2Click an external link and inspect the outbound Referer in DevTools.
  3. 3Re-check after adding a CDN or edge worker that might inject a different policy.
  4. 4Grade headers with PatchPings features or a free scan.

Referrer-Policy is one of the simplest privacy headers to deploy. Set strict-origin-when-cross-origin unless you have a documented reason not to, and keep it alongside Permissions-Policy and COOP in your baseline hardening set.

#Referrer-Policy#Privacy#Headers#Referer

Keep reading

Abstract network nodes suggesting layered HTTP security header protections
Security

What Are HTTP Security Headers? A Complete 2026 Guide

3 min read
Isolated browser windows suggesting Cross-Origin-Opener-Policy process separation
Security

Cross-Origin-Opener-Policy (COOP) Explained

3 min read
Mobile camera permission concept for Permissions-Policy feature controls
Security

Permissions-Policy Header: Turn Off Powerful Browser Features

3 min read
PatchPings

Start scanning. It’s free.

Download PatchPings and run your first full security scan in under a minute. No credit card, no catch.

GET IT ONGoogle Play

Free for all signed-in users · Guest mode available · v1.0.0