Is it possible to get the http-referer
of visitors via pure JS or with JQuery?
Asked
Active
Viewed 3.8k times
32

Chris Seymour
- 83,387
- 30
- 160
- 202

Za Noza
- 438
- 1
- 4
- 8
-
6[`document.referrer`](https://developer.mozilla.org/en-US/docs/Web/API/document.referrer)... – War10ck Nov 03 '14 at 15:03
1 Answers
64
Yes. Just use document.referrer
.

Scimonster
- 32,893
- 9
- 77
- 89
-
6
-
1
-
2@Scimonster Not true about "direct link doesn't have referer". New Rules here http://tools.ietf.org/html/rfc7231#section-5.5.2 Must be `about:blank` – Za Noza Nov 03 '14 at 15:19