0) $badVisitor = TRUE ; //Ahrefs back links hvy crawler 201-02-21 if (stripos($USER_AGENT, 'brandprotect') > 0) $badVisitor = TRUE ; // scraping T52, 2015-03-26 if (stripos($USER_AGENT, 'brandimensions') > 0) $badVisitor = TRUE ; // scraping T52, 2015-03-26 if (stripos($USER_AGENT, 'MegaIndex') > 0) $badVisitor = TRUE ; // scraping , 2015-05-18 if (stripos($USER_AGENT, 'LinkWalker') > 0) $badVisitor = TRUE ; // scraping T52, 2015-03-26 if (stripos($USER_AGENT, 'NING/') > 0) $badVisitor = TRUE ; // scraping T52, 2015-03-26 if (stripos($USER_AGENT, 'MegaIndex') > 0) $badVisitor = TRUE ; // scraping T52, 2015-02-23 if (stripos($USER_AGENT, 'robospider') > 0) $badVisitor = TRUE ; // scraping T52 & posenL, breaking rules //if (stripos($USER_AGENT, 'WebIndex') > 0) $badVisitor = TRUE ; if (stripos($USER_AGENT, 'yandex') > 0) $badVisitor = TRUE ; if (stripos($USER_AGENT, 'yoozBot') > 0) $badVisitor = TRUE ; if ($badVisitor) { //mail('james@birchy.com','Blocked: '.$IP,'Blocked: '.var_export($_SERVER,TRUE).' '.var_export($_ENV,TRUE).' '.var_export($HTTP_SERVER_VARS,TRUE) ) ; //header('No such page', true, 404); //include('your_404_page.php'); die('No scraping allowed!'); } ?>
Warning: Cannot modify header information - headers already sent by (output started at /home/blockIPs.php:142) in /home/old-friends/public_html/header_php.php on line 3
Could not CONNECT to the database: SQLSTATE[HY000] [2019] Can't initialize character set utf8 (path: /usr/share/mysql/charsets/)