"That confirms that it is your script. If you check through your log files for today and yesterday you will see when the spammers are using your script. They are the onse without referrer and no browser type."
I know I can get the browser type using this
$browser = $_SERVER['HTTP_USER_AGENT'];
But how do I test for NO browser type?
(Sorry for such a naive question).
Also what is a "referrer" and how do I test for it?
Grateful for all suggestions.
BTW I'm already testing for the presence of an IP address (I think*) but that isn't stopping them.
- Code: Select all
function getIP() {
//$ip;
if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP");
else if(getenv("HTTP_X_FORWARDED_FOR")) $ip = getenv("HTTP_X_FORWARDED_FOR");
else if(getenv("REMOTE_ADDR")) $ip = getenv("REMOTE_ADDR");
else $ip = "unknown";
return $ip;
}
$ip = getIP();
*I say I think I'm testing for the IP because I'm posting this on behalf of a friend who is using my script but she may have disabled the IP check!

