PHP DIE for Multiple Personality Useragent
Posted: Tue Apr 04, 2006 3:47 am
This useragent mocks my stats script...
I basically only want to block useragents (manually) that declare themselves as multiple useragents.
So I need a little help getting this to work...
Once I get that to work their UA will be blocked until they fix their agent. I am 100% sure I want to do this...the scipt just isn't working for me like the way I setup it up however.
John
So what are you? You look like MSIE with a toolbar called "NuSearch" to my stats script!NuSearch Spider (compatible; MSIE 6.0)
I basically only want to block useragents (manually) that declare themselves as multiple useragents.
So I need a little help getting this to work...
Code: Select all
$useragent = $_SERVER['HTTP_USER_AGENT'];
if ($useragent=="NuSearch" && $useragent=="MSIE"){header("HTTP/1.0 403");die();}John