Referrer Link Detector

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:
  • origin, path, and query strings:

Where did you come from? I don’t know 👍

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;

Try It Out

Go here to see how different referrer policies change what information is shared in the referrer.