Basic code for detecting and not counting robots:
setbrowser.inc.php:
Code:
[...]
$isIpad = false;
$isIphone = false;
$isSEbot = false; // is Serch Engine bot
[...]
// detecting known bot's and bot's in general
$isSEbot = strstr($ua, 'Googlebot') || strstr($ua, 'bingbot') || strstr($ua, 'Baiduspider') || strstr($ua, 'Yandex')
|| strstr($ua, 'waybackarchive') || strstr($ua, 'Spider') || strstr($ua, 'spider') || strstr($ua, 'robot')
|| strstr($ua, 'bot.htm') || strstr($ua, 'Crawler') || strstr($ua, 'crawler');
}
setspecials.inc.php:
Code:
if ($isSEbot) { // special setting for search engines
$enable_counter= false; // don't count search engine bots, this was the main reson for creating this!
}