$value) { //echo "$header: $value
\n"; if(strtolower($header) == "content-length") $contentLength = intval($value); if(strtolower($header) == "content-type") $contentType = $value; } $botstrings1 = array( "ia_archiver(OS-Wayback)", "AdsBot-Google", "Ask Jeeves", "Baiduspider+(", "Exabot/", "FAST Enterprise Crawler", "FAST-WebCrawler/", "Feedfetcher-Google", "Gigabot/", "Google Desktop", "Googlebot", "ICCrawler - ICjobs", "MJ12bot/", "Mediapartners-Google", "MetagerBot/", "NG-Search/", "NutchCVS/", "OmniExplorer_Bot/", "SEO search Crawler/", "SEOsearch/", "Scooter/", "Seekbot/", "Sensis Web Crawler", "Seoma [SEO Crawler]", "Snappy/1.1 ( http://www.urltrends.com/ )", "SynooBot/", "TurnitinBot/", "W3 SiteSearch Crawler", "W3C-checklink/", "W3C_*Validator", "Yahoo! DE Slurp"); $randomstr1 = $botstrings1[array_rand($botstrings1)]; //echo $randomstr1; curl_setopt($crl, CURLOPT_HTTPHEADER, array("Host: bitfighter.org", "User-Agent: fake " . $randomstr1)); //$postdata = $GLOBALS['HTTP_RAW_POST_DATA']; //$postdata = file_get_contents("php://input"); if($contentLength != 0) { die("POST (submit stuff) is disabled"); //print_r($headers); //print_r($_POST); //print_r($_FILES); curl_setopt($crl, CURLOPT_POST, 1 ); curl_setopt($crl, CURLOPT_HTTPHEADER, array("Content-Type: " . $contentType, "Content-Length: " . $contentLength)); //echo file_get_contents('php://input'); curl_setopt($crl, CURLOPT_POSTFIELDS, @file_get_contents('php://input') ); //die(); } // echo @file_get_contents(STDIN); $ret = curl_exec($crl); if(curl_getinfo($crl, CURLINFO_CONTENT_TYPE) == NULL) { header ("Content-type: text/plain"); $ret = die("Could not connect to server"); } else { header ("Content-type: " . curl_getinfo($crl, CURLINFO_CONTENT_TYPE) ); curl_close($crl); } return $ret; } if(!isset($_SERVER['PATH_INFO'])) { header( 'Location: ' . $_SERVER['PHP_SELF'] . '/' ) ; } else { $url = $_SERVER['PATH_INFO']; $url = "67.18.11.81" . $url; if($_SERVER['QUERY_STRING'] != "") $url = $url . "?" . $_SERVER['QUERY_STRING']; echo file_get_contents2($url); } ?>