Referrer Link Detector
Where did you come from?
I don’t know 👍
Test out how different referrer policies change what information is shared across links.
What is This Page?
This page will check to see if the page that linked here provided any referrer information in the request header. Depending on the referrer policy of the incoming link, this page can detect:
- origin: https://example.com
- origin, path, and query strings: https://example.com/path?name=value
How Does it Work?
If the document.referrer
object is not null, then its value will contain the origin and possibly path and parameters of the page that linked here. The JavaScript code below does just that.
var referrer = null; if (document.referrer) { referrer = document.referrer; }