Page MenuHomePhabricator

Add "Referrer-Policy: no-referrer" to standard HTTP headers
ClosedPublic

Authored by epriestley on Feb 27 2018, 8:19 PM.
Tags
None
Referenced Files
F19821537: D19144.id45866.diff
Mar 6 2026, 10:53 PM
F19821536: D19144.id45865.diff
Mar 6 2026, 10:53 PM
F19821535: D19144.id.diff
Mar 6 2026, 10:53 PM
F19816710: D19144.diff
Mar 5 2026, 7:53 AM
F19514466: D19144.id45865.diff
Jan 14 2026, 2:06 AM
F19468723: D19144.diff
Jan 4 2026, 9:12 AM
F18852294: D19144.id.diff
Oct 31 2025, 7:51 AM
F18834350: D19144.id.diff
Oct 26 2025, 8:08 AM
Subscribers
None

Details

Summary

Ref T4340. Some browsers respect this header and referrers are a plague upon the earth.

Also, upgrade "never" to the more modern value "no-referrer".

Test Plan

In Safari, Firefox and Chrome, disabled rel="noreferrer" on links and generated a normal link to an external site. Then clicked it and checked if a referrer was sent.

  • Safari respects meta only, but "no-referrer" is fine.
  • Firefox respects both (either the header or meta tag are individually sufficient to stop referrers).
  • Chrome respects both (same as Firefox).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 27 2018, 8:59 PM
This revision was automatically updated to reflect the committed changes.