-1

I need the site address that is redirecting the user to my website when my link in the other website is clicked.

How to get the website address that redirects to my site?

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
asghar
  • 1
  • 3

1 Answers1

1

Use $_SERVER["HTTP_REFERER"].

Aviram
  • 3,017
  • 4
  • 29
  • 43
  • It isn't reliable. http://stackoverflow.com/a/6023980/ and will most certainly not work with Facebook for one thing, should the OP want to use it for that. 9 times out of 10, that's what they need it for. – Funk Forty Niner Jul 27 '15 at 01:44