9 and isset($_SERVER["HTTP_USER_AGENT"])) { $agents = array( 'msnbot-media/1.0 (+http://search.msn.com/msnbot.htm)', 'Sphere Scout&v4.0 - scout at sphere dot com', 'Mozilla/5.0 (compatible; Exabot/3.0; +http://www.exabot.com/go/robot)', 'Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)', 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko) (Exabot-Thumbnails)', 'http://instanttrafficrobot2.com', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', 'Mozilla/5.0 (Twiceler-0.9 http://www.cuil.com/twiceler/robot.html)' ); // googebot removed form above 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', foreach ($agents as $agent) { if ($_SERVER["HTTP_USER_AGENT"] == $agent) { header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Status: 503 Service Temporarily Unavailable'); print "503 Service Temporarily Unavailable"; exit; } } } $agentsbanned = array( 'Sphere Scout&v4.0 - scout at sphere dot com', 'Mozilla/5.0 (compatible; Exabot/3.0; +http://www.exabot.com/go/robot)', 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko) (Exabot-Thumbnails)', 'http://instanttrafficrobot2.com', 'Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com)', 'Mozilla/5.0 (compatible; SISTRIX Crawler; http://crawler.sistrix.net/)', 'Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)', 'Mozilla/5.0 (Twiceler-0.9 http://www.cuil.com/twiceler/robot.html)' ); foreach ($agentsbanned as $agentbanned) { if ($_SERVER["HTTP_USER_AGENT"] == $agentbanned) { header('HTTP/1.1 403 Page Not Found'); header('Status: 403 Page Not Found'); print "403 Page Not Found"; exit; } } // End of throttling and checking include_once($_SERVER['DOCUMENT_ROOT']."/inc_first.php"); $strReq = trim($_SERVER['REQUEST_URI'],'/'); if ($strReq == "" or (strpos($strReq,"/") === false and (substr($strReq,-4) == ".php" or substr($strReq,-5) == ".html" or substr($strReq,-4) == ".htm"))){ doPage(); }else{ getQueryInfo(); } ?>