Referrer Policy Header in HTTP Requests
Links: 300 home
- HTTP requests include the optional
Referer
header, which indicates the origin or the web page URL from which the request was originated. - The value determines how much information, if any, is disclosed via the Referer Request header.
- Do not disclose the referring page URL unless there is an business need:
Referrer-Policy: no-referrer
- We can get the referrer value using
document.referrer
- For example if I go to my blog website from a LinkedIn post I get this output
- For example if I go to my blog website from a LinkedIn post I get this output
- References:
Last updated: 2023-03-08