BreachHunter
Pricing Blog Log inSign up
● thermal huntscan engines onlineassessment only — no exploits
  1. Home
  2. Blog
  3. Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing

Guides · ← All guides

Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing

Published: November 14, 2026 · Last reviewed: November 14, 2026 · 6 min read

By the Ingenious AI team

The short answer: Referrer-Policy decides how much of your page's URL travels to other sites when a visitor clicks a link or your page loads third-party resources — without one, full URLs (reset tokens, search queries, document IDs in the path) can leak in the Referer header. Permissions-Policy decides which browser features — camera, microphone, geolocation, payment handlers — scripts on your page may request. BreachHunter rates each missing header LOW (2 points): individually minor, together the signature of a header policy that was never finished.

Run a free BreachHunter assessment on your site →

The six-header table has a head (CSP, HSTS) that gets the attention and a tail that gets postponed forever. These are the tail: two headers whose absence rarely causes an incident by itself, but which close real, specific leaks — the password-reset URL forwarded to an analytics endpoint, the compromised third-party script quietly requesting geolocation on your checkout page.

This guide gives each header its own mechanics: what the Referer header has historically leaked and the value the scanner's fix text prescribes (strict-origin-when-cross-origin), and how Permissions-Policy's allow-list grammar (camera=(), microphone=()) turns off device access your site never uses. Both are five-minute fixes; the guide's real subject is why they are worth those five minutes.

What the Referer header leaks without a policy

When your page links anywhere or loads anything cross-origin, the browser sends a Referer header. The historical default sent the full URL. URLs carry more than page names: password-reset and unsubscribe links carry tokens; search and filter pages carry queries; apps put record IDs — sometimes session-adjacent identifiers — in paths. Every third-party resource on the page (analytics, ads, embeds, fonts) receives that full string, and it lands in their logs permanently.

Modern browsers default to strict-origin-when-cross-origin when no policy is set — which is progress, and also why the finding persists as LOW rather than higher. The scanner's prescribed fix is to send the policy explicitly: Referrer-Policy: strict-origin-when-cross-origin (or stricter, like same-origin or no-referrer for sensitive apps). Explicitness is the point: defaults vary by browser and era, your policy should not. An application with tokens in URLs should go stricter than the default and fix the tokens-in-URLs habit besides — the header is the net, not the trapeze.

Permissions-Policy: closing device APIs you never open

Every script on your page — including the third-party ones you invited and any that arrive compromised — can ask the browser for powerful features: camera, microphone, geolocation, USB, payment handling, motion sensors. Permissions-Policy is your page-level answer, declared in advance: Permissions-Policy: camera=(), microphone=(), geolocation=() reads as “nobody, not even us, may use these here.” Features the site genuinely uses get an allow-list of origins instead of a blanket ban.

The scanner's finding text frames it exactly that way: without the policy, “any script on the page can request camera, microphone or geolocation”. The realistic attack is not your code asking — it is someone else's code, riding your page, asking your visitor with your site's name on the permission prompt. Denying by default converts that prompt from a possibility into a browser refusal, silently, for every visitor. Like its sibling, the header is set once at the server and inherited by every page — the two LOWs together are the cheapest 4 points in the entire report, and a neat completion to the set described in the security headers guide.

Worked example: maplestreetclinic.example

Maple Street Clinic's patient portal had done the headline headers properly — CSP and HSTS were in place — and its scan still returned the two quiet LOWs. The review that followed found the Referer point was not theoretical for a clinic: the portal's appointment links, sent to a third-party reminder service, carried patient-portal paths, and the pre-policy default on older browsers sent those full URLs onward to every embed on the page.

Response headers, maplestreetclinic.example/portal:
  content-security-policy: present
  strict-transport-security: present
  referrer-policy: (absent)     -> LOW (-2)
  permissions-policy: (absent)  -> LOW (-2)

Two lines in the server configuration closed both: Referrer-Policy: same-origin (stricter than the scanner's baseline suggestion, chosen because a clinic portal has no business sending referrers anywhere) and Permissions-Policy disabling camera, microphone, geolocation, usb and payment — none of which the portal uses. Score recovered: the full 4 points, and the clinic's privacy review gained two sentences it could state plainly to patients.

The five actions to take

Finishing the quiet end of the header set:

  1. Send Referrer-Policy: strict-origin-when-cross-origin as the baseline; choose same-origin or no-referrer for apps with sensitive URLs.
  2. Audit which browser features your site genuinely uses (camera for uploads? geolocation for store finders?) before writing Permissions-Policy.
  3. Deny everything unused: Permissions-Policy with empty allow-lists — camera=(), microphone=(), geolocation=(), usb=(), payment=().
  4. Apply both headers at the server or CDN level so every route inherits them, including error pages.
  5. Verify with curl -I on several routes and re-scan to watch both LOWs close.

Run a free BreachHunter assessment on your site →

Frequently asked questions

Browsers already default the referrer behavior. Why send the header?

Defaults differ across browsers and have changed over time; some clients still send full URLs. The header makes your intent uniform and auditable — an assessment can only credit what the server states, and “the browser probably handles it” is not a policy.

Will a strict Referrer-Policy break our analytics?

It changes what analytics sees as the referring URL (origin only, or nothing) for cross-origin hops. Same-site analytics keeps working. If a partner integration genuinely needs full referrers, scope the policy per-path rather than abandoning it site-wide.

Our site uses the camera for receipt uploads. How do we allow just that?

Permissions-Policy takes an allow-list per feature: camera=('self') permits your own origin to request it while third-party scripts remain denied. Scope by feature and origin — that granularity is the header's whole design.

Are these two headers worth prioritizing over a MEDIUM?

No — and the ratings agree with you. Their case is cost, not urgency: minutes to implement, zero breakage risk, and they complete the header set reviewers check. Do them in the same change window as the MEDIUM headers, not instead of anything.

Do these headers need to be on every response?

Yes — headers protect the response they travel with. Set them at the server or CDN layer (including API and error responses) rather than per-page, so no route ships unaccompanied. A curl -I sweep across templates is the cheap verification.

Share this: X · Facebook · LinkedIn · WhatsApp

Related guides

  • Website Security Test: What It Checks, What It Misses, and How to Read Yours · 9 min read
  • Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files · 7 min read
  • What a Website Security Assessment Actually Tests · 10 min read
  • TLS/SSL Basics: What Your Certificate Says About Your Site · 8 min read
  • Common Website Misconfigurations (and How to Fix Them) · 11 min read
  • Reading Your First Pentest Report: From Score to Action · 9 min read
  • Deleted ≠ Gone: What the Wayback Machine Keeps After You Delete Your Secrets · 9 min read
  • SQL Injection in Plain English: How One Login Box Can Read Your Database · 9 min read
  • What Does a Website Security Scan Check? · 8 min read
  • Exposed .git Directory: What It Leaks and How to Check · 7 min read
  • Security Headers Missing? What Each Header Stops · 7 min read
  • How Much Does a Penetration Test Cost in 2026? · 7 min read
  • Website Security Checklist for Small Teams (60-second self-check) · 6 min read
  • Reading Your Scan Results: Which Findings Fix First? · 7 min read
  • Content-Security-Policy Missing: What CSP Does and How to Add It Safely · 8 min read
  • HSTS Missing: What Strict-Transport-Security Prevents · 7 min read
  • Clickjacking and X-Frame-Options: How Framing Attacks Work · 7 min read
  • Cookie Flags Explained: Secure, HttpOnly and SameSite · 8 min read
  • Exposed .env File: What Leaks, What Attackers Do Next, What You Do First · 8 min read
  • Directory Listing Enabled: What It Shows Attackers and How to Disable It · 7 min read
  • Mixed Content: Why Your HTTPS Page Still Loads Insecure Resources · 7 min read
  • Expired SSL Certificate: What Breaks, Why Renewal Fails, and How to Catch It Early · 7 min read
  • TLS 1.0 and 1.1 Still Enabled: Why Old Protocols Show Up as a Finding · 7 min read
  • Open Ports on a Web Server: Which Ones Should Never Face the Internet · 8 min read
  • No SPF or DMARC Record: How Missing Email Auth Exposes Your Website · 7 min read
  • Subdomain Takeover: How a Dangling DNS Record Lets Attackers Claim Your Name · 7 min read
  • Forgotten Subdomains: The Staging Site You Forgot Is Still Public · 7 min read
  • WordPress Security Scan: The Exposures an Assessment Finds on WordPress Sites · 8 min read
  • Exposed Backup Files: .bak, .old and .zip Files Sitting in Your Web Root · 7 min read
  • phpinfo() in Production: The Diagnostic Page That Maps Your Server for Attackers · 7 min read
  • Server Version Banners: Why Your Headers Point Attackers to the Right Exploit · 7 min read
  • End-of-Life Software: Running a Server Stack Nobody Patches Anymore · 7 min read
  • CORS Misconfiguration: When Cross-Origin Sharing Opens Your Data to Any Site · 7 min read
  • Open Redirect Vulnerability: How Your Own Domain Sends Visitors to a Phishing Page · 7 min read
  • Dangerous HTTP Methods: What TRACE, PUT and DELETE Should Never Answer · 7 min read
  • Host Header Injection: Poisoned Reset Links and Cache Attacks Explained · 7 min read
  • What Is security.txt? The Small File That Lets Researchers Reach You · 6 min read
  • Admin Panel Exposed to the Internet: What an Assessment Flags and Why · 7 min read
  • phpMyAdmin Exposed: Why This Database Door Is a Prime Brute-Force Target · 7 min read
  • Spring Boot Actuator Exposed: Environment Dumps, Heap Leaks and Shutdown Endpoints · 7 min read
  • Debug Console in Production: The Finding That Can Become Code Execution · 7 min read
  • Exposed AWS Credentials File: The /.aws/credentials Finding, Explained · 7 min read
  • Exposed package.json: Your Dependency List Is a Recon Gift · 6 min read
  • DNS Zone Transfer Open (AXFR): Handing Out Your Entire DNS Map · 6 min read
  • Certificate Name Mismatch: Why the Cert Does Not Match Your Domain · 6 min read
  • Website Security Assessments for Agencies: Checking Every Client Site Without a Security Team · 8 min read
  • SaaS Security Questionnaires: What Buyers Check About Your Website First · 8 min read
  • Ecommerce Website Security: The Exposures That Put Your Checkout at Risk · 8 min read
  • Small Business Website Security: The Checks That Matter at Your Size · 7 min read
  • How to Prepare for a Website Security Assessment (and Read the Report Calmly) · 7 min read
  • Vulnerability Severity Explained: What Critical, High, Medium and Low Actually Mean · 7 min read
  • Retest After Fixes: How to Prove a Security Finding Is Actually Closed · 7 min read
  • Security Assessment vs Vulnerability Scan vs Pentest: What Is the Difference? · 7 min read
  • How Long Does a Website Security Scan Take? · 6 min read
  • Website Security Drift: Why Last Month's Clean Scan Is Already Out of Date · 7 min read
  • WordPress Site Keeps Getting Hacked After Cleanup · 8 min read
  • Google Blacklist Removal: Getting the Red Warning Off Your Site · 8 min read
  • VirusTotal Flagged My Site: How to Clear a False Positive · 8 min read

Related from the Ingenious AI suite

  • Ingenious AI — the full suite of security and compliance tools
  • DomainGuard — domain impersonation and typosquat defense
  • See BreachHunter pricing →
BreachHunter · by Ingenious AI · read-only security assessment — scan only targets you own or are authorized to test
About · Contact · Blog · vs Intruder · Privacy · Terms · Security · Threats · Nextcloud Check · Verify Evidence · Help · Redeem
More from Ingenious AI:
DisclosureGuard — AI disclosure compliance · Vibe-Code Audit — AI code security scanner · Rogue-Agent Defense — AI agent firewall · ChatBreaker — AI chatbot red-teaming · ModelMinder — AI model deprecation radar · TermsWatch — AI vendor terms monitor · Agent Flight Recorder — tamper-evident agent audit trails · Agent Auth Gateway — agent credentials & kill switch · DomainGuard — domain impersonation defense · Agent Passport — Know-Your-Agent registry · AgentGate — agent policy publisher · AgentBlock — AI agent & crawler access control · BoundaryVault — agent log forensics · Agentic Receipts — verifiable agent payment receipts · EvalEgress — eval-to-production exposure scan · HomeShield MCP — home AI server exposure check · WireWatch — payment verification ceremony · ADMT Notice Kit — AI decision notice compliance · DueLadder — human-approved invoice chasing · Agent-Ready Store Audit — can AI agents buy from your store · ContentCraft AI — content operations · AgentReady — agent-readiness checks · AI Audit Exchange — AI audit exchange · CallbackShield — callback & webhook protection · CompanionGuard — AI companion safety guardrails · CRAClock — EU Cyber Resilience Act deadline clock · EInvoice Translator — e-invoice format translator · GEOFixer — geo & local listing fixes · MandateGuard — agent spending mandates · OutcomeMeter — AI outcome measurement · ProvenanceGuard — content provenance checks · ReviewDesk — review response desk · ReviewProof — verified review evidence · TakedownCoop — coordinated phishing takedowns · TrustGate — trust & safety gating · BreachHunter — website penetration testing · All 36 platforms — the Ingenious AI portfolio

We use cookies. Necessary cookies keep the site working. With your permission we also use analytics cookies (to understand usage) and marketing cookies (for ads). Read our privacy policy.

NecessaryRequired for login, security and core features. Always on.
AnalyticsHelps us understand which pages are useful.
MarketingUsed for advertising and measuring ad performance.

    No match. Try “pricing”, “php2shell” or “contact” — or press Esc to close.

    ↑↓ navigate · Enter open · Esc close