-1

we can get the reference link using

$_SERVER['HTTP_REFERER'] 

But, is there any way to find the reference link of that reference?

Suppose, we go to abc.php from xyz.php so, in abc.php, xyz.php is the reference link. So, we are now in abc.php but, we came to xyz.php from another page. I wanna know that reference.

Amimul Ehshan
  • 192
  • 1
  • 12

1 Answers1

0

The previous visited sites are not stored on the HTTP Referer you receive in your code. You can store every user activity in your site but you cannot spy what they do before or after passing your site using HTTP Referers (except the referer received).

There are ways to know previous user activity, like tracking cookies (which are implemented by Amazon and other big websites) but those methods require mutual webmasters approvation.

Also, a friendly bit of advice, avoid invading users privacy. This won't do any good to your website reputation.

Community
  • 1
  • 1