CHEKER IP, страны и города на свой сайт | ФОРУМ СОЦИАЛЬНОЙ ИНЖЕНЕРИИ ⭐️MeHack⭐️ - Читы, базы, раздачи аккаунтов, сливы скриптов, способы заработка
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 401

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 403

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 409

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 411

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 417

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 423

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 425

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 427

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 429

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 435

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 437

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 443

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 445

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 451

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 453

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 455

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 457

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 463

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 469

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 475

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 491

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/Siropu/AdsManager/Helper/General.php on line 2627

CHEKER IP, страны и города на свой сайт

Тема в разделе "Другие скрипты / боты", создана пользователем lolzteam, 22.02.23.Просмотров: 280

  1. lolzteam МультиМагнат

    lolzteam

    356 сообщения
    5 симпатий
    0
    розыгрышей
    3 года с нами
    9 месяцев с нами
    13 дней с нами
    CHEKER IP, страны и города на свой сайт

    Сегодня я расскажу как отправлять данные юзера через Telegran бота тебе в личку, который зашел на твой сайт.
    Данные действия легальные и не запрещены законом РФ!


    1. Создаём файлик index.php
    2. Вставляем скрипт ниже

    Код:
    <!DOCTYPE html>
    <html lang="en">
    <head>
    
        ЗДЕСЬ КОД ТВОЕГО САЙТА
    
    </head>
    </html>
    
    <?php
    
    $token = "Токен бота";
    $chat_id = 1234567; #здесь ID твоего аккаунта TG, или ID чата, куда хочешь присылать данные
    
    $ip = $_SERVER['REMOTE_ADDR'];
    $query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip.'?lang=ru'));
    
    $arr = array(
        date('Y-m-d H:i:s ') . ' - новый посетитель сайта: ' => $ip, 'Страна:' => $query['country'], 'Город:' => $query['city']
      );
    
      foreach($arr as $key => $value) {
        $txt .= "<b>".$key."</b> ".$value."%0A";
      };
    
      $sendToTelegram = fopen("https://api.telegram.org/bot{$token}/sendMessage?chat_id={$chat_id}&parse_mode=html&text={$txt}","r");
    
    ?>
    3. Загружаем на хостинг