0

I need to know what page a user made the request FROM ...

$_SERVER["REQUEST_URI"] tells me what file the request is made to, however I want to know what file / page the user was on when the request was made.

Dharman
  • 26,923
  • 21
  • 73
  • 125
ma77c
  • 967
  • 13
  • 30

2 Answers2

0

Some Antivirus applications remove that referrer from the header, so it may be empty, then. You can not rely on that field.

Markus Zeller
  • 5,528
  • 2
  • 29
  • 32
-1

You can't know where is the request come from, unless it have indicator as if you redirect to any website from Facebook it types in URL "?fbclid=..." as a "get" method so your website knows it comes from Facebook.