AV1611 Posted September 19, 2008 Share Posted September 19, 2008 how can I know the uri for the referring page? i.e. if you come to my site I wanna know you came from www.othersite.com or similar. thanks. Link to comment https://forums.phpfreaks.com/topic/124975-solved-log/ Share on other sites More sharing options...
Stooney Posted September 19, 2008 Share Posted September 19, 2008 $_SERVER['HTTP_REFERER']; Just know that it can be spoofed Link to comment https://forums.phpfreaks.com/topic/124975-solved-log/#findComment-645717 Share on other sites More sharing options...
Maq Posted September 19, 2008 Share Posted September 19, 2008 Don't know if it helps but Javascript has a function similar to PHP's $_SERVER['HTTP_REFERER']; document.referrer Link to comment https://forums.phpfreaks.com/topic/124975-solved-log/#findComment-645727 Share on other sites More sharing options...
AV1611 Posted September 19, 2008 Author Share Posted September 19, 2008 $_SERVER['HTTP_REFERER']; Just know that it can be spoofed I know that but I am creating my own logging like statcounter and I knew all the stuff except that one... I'm not really using it for security as much as general knowledge. thanks. Link to comment https://forums.phpfreaks.com/topic/124975-solved-log/#findComment-645746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.