I am looking for a way to find a HTTP_REFERER work around using php and maybe cgi ? As many of you know HTTP_REFERER does not work all the time in php and some older browsers. My question is ther a way to use cgi to look up where the referer is comming from ?
I run a banner exchange and I have a problem with some people reloading the banner in their browser to many times. The problem is that I can't find the url they are using.. I like to know if it's a url or their local hard drive. Below is a clip from my script I am using.. it works only about 35% to 50% the rest of the entires it places is No Referral. I like to find more referral urls than having the database loaded with No referrals.. Is there anybody that can help me out ?
if ($HTTP_REFERER) {
$referral = "$HTTP_REFERER";
}
if (!$HTTP_REFERER) {
$referral = "No Referral";
}
$reportresult = MYSQL_QUERY("INSERT INTO bannercheat VALUES('$date','$user','$referral','$REMOTE_ADDR')");
Thanks in advance,
David Eaton