Jump to content


Photo

How to check the linking website


  • Please log in to reply
2 replies to this topic

#1 Csani

Csani
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 12 October 2006 - 11:39 AM

Hi Y'all!

Is it possible to check the linking website's address with PHP? For example, if there's a link to my website on another page, can PHP find out where the link is, i.e. where the "hit" is coming from?

Thank you for your attention!

Csani

#2 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 12 October 2006 - 11:44 AM

Yeah. You can use $_SERVER['HTTP_REFERER'] to find out what page that linked to it.

(I bet it wont take very long before somebody come and tell that it can be spoofed)

#3 Csani

Csani
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 12 October 2006 - 12:08 PM

Thanks! So, is there a way without being spoofed? :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users