-1

Alright so I am making a tracking system where I would write down every user that came from a different domain (let's say that my domain is https://aaa.com) so any user that comes from any other website would first have to go "/tracking.php" and then I would do the rest via code.

Basically if HTTP_REFERER is not https://aaa.com then redirect the user to tracking.php page

Tomislav Tomi Nikolic
  • 608
  • 3
  • 10
  • 15

1 Answers1

0

Take a look at https://developer.mozilla.org/de/docs/Web/API/Document/referrer is you want to use a JS approach to this.

For php, a solution is been posted PHP: How to get referrer URL?

Lithium
  • 69
  • 3