visitor referral

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
giliat
Forum Commoner
Posts: 28
Joined: Sun May 20, 2007 2:00 pm

visitor referral

Post by giliat »

hello
is there a way to know the site visitor referral - if the visitor came by typing the site address or from google yahoo or anothere sites ???

:?:

i am looking for a php script

thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Using $_SERVER['HTTP_REFERER'] may optionally contain the referring url. However, this variable can be blocked or manipulated by the client.

In conclusion, it is impossible to know for sure where the user came from.
Post Reply