List of bots, spiders and hackers
Check if your visitor is a bot
API access example in PHP
$botip = $_SERVER['REMOTE_ADDR'];
$botsrc = $_SERVER['HTTP_REFERER'];
$botdev = $_SERVER["HTTP_USER_AGENT"];
optional $urlpart = $_SERVER["REQUEST_URI"];
$botdata = array(
'isbot'=>'', // use 3 to get a json list of bot information else only return is true or false
'ip'=>$botip,
'src'=>$botsrc,
'dev'=>$botdev,
'urlpart'=>$urlpart // if urlpart is set, ip, src and dev is ignored
);
$boturl= 'https://lessto.dk/puppiesandkittens.php?'.http_build_query($botdata);
$result = file_get_contents($boturl);
if ($result == 'true') {
// Delete or mark records as bot entry's
}
else
{
// Do nothing or mark records as valid users
}
Or simply use commandline like this
Use dev= or src= parameters, remember to url encode strings.