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
  • 30,962
  • 25
  • 85
  • 135
ma77c
  • 1,052
  • 14
  • 31

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
  • 8,516
  • 2
  • 29
  • 35
-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.