Oops, I’ve misunderstand the syntax of user agent tag. The following code can exclude most bot hits, with also Baidu search and Yahoo search.
if ( (stristr($useragent, "bot") === TRUE) || (stristr($useragent, "spider") === TRUE) || (stristr($useragent, "crawler") === TRUE) || (stristr($useragent, "baidu") === TRUE) || (stristr($useragent, "Yahoo! Slurp") === TRUE) )
$checkval = TRUE;
So replace it with the old one. If you are new, add this below these two lines (around line 377) in wp-content/plugins/counterize.php:
$excludelist=get_option(‘counterize_excluded’);
$checkval = strpos($excludelist, $remoteaddr);
Old version:
Exclude Bot Hits from Counterize















