• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

[Share] code chống ddos bản beta

Admin

Well-Known Member
Staff member
Administrator
PHP:
<?php
$debug = true; 
if ($debug) error_reporting(E_ALL);
else error_reporting(0);
$ddos = 1;
$log = false;
$dir = dirname(__file__) . '/cailonkonkec/'; 
$ddos_redirect_host = 'http://google.com/';
$icq = 'konkeccailonongconoithangnaoddos';
$off_message = 'BUG.';
$anticyka = md5(sha1('botik' . strrev(getenv('HTTP_USER_AGENT'))));
$ban_message = 'You have been banned, try to contact administrator admin@tuoitreit.vn' .
$icq . '<hr>(c)CCV antiddos module';
$exec_ban = "iptables -A INPUT -s " . $_SERVER["REMOTE_ADDR"] . " -j DROP";
$load = sys_getloadavg();
$ddosuser = 'lol_ddos';
$ddospass = substr(ip2long($_SERVER['REMOTE_ADDR']), 0, rand(2, 4));
$google = strpos(gethostbyaddr($_SERVER['REMOTE_ADDR']), "googlebot.com") !== false;
$yandex = strpos(gethostbyaddr($_SERVER['REMOTE_ADDR']), "yandex.ru") !== false;
$rambler = strpos(gethostbyaddr($_SERVER['REMOTE_ADDR']), "ramtel.ru") !== false;
$rambler2 = strpos(gethostbyaddr($_SERVER['REMOTE_ADDR']), "rambler.ru") !== false;
$aport = strpos(gethostbyaddr($_SERVER['REMOTE_ADDR']), "aport.ru") !== false;
$sape = strpos(gethostbyaddr($_SERVER['REMOTE_ADDR']), "sape.ru") !== false;
$msn = strpos(gethostbyaddr($_SERVER['REMOTE_ADDR']), "msn.com") !== false;
$yahoo = strpos(gethostbyaddr($_SERVER['REMOTE_ADDR']), "yahoo.net") !== false;
//
if(!file_exists($dir . 'banned_ips')) file_put_contents($dir . 'banned_ips', '');
if (strstr(file_get_contents($dir . 'banned_ips'), $_SERVER['REMOTE_ADDR']))
die($ban_message); //GTFO )
if (! $google || ! $yandex || ! $rambler || ! $rambler2 || ! $aport || ! $sape ||
! $msn || ! $yahoo) {
$f = fopen($dir . $_SERVER["REMOTE_ADDR"], "a");
fwrite($f, "zapros cyka\n");
fclose($f);
function ban()
{
if (! system($exec_ban)) {
$f = fopen($dir . 'banned_ips', "a");
fwrite($f, $_SERVER['REMOTE_ADDR'] . '|');
fclose($f);
}
echo $ban_message;
header('Location: ' . $ddos_redirect_host . '');
die();
}
switch ($ddos) {
case 1:
if (empty($_COOKIE['ddos']) or ! $_COOKIE['ddos']) {
$counter = @file($dir . $_SERVER["REMOTE_ADDR"]);
setcookie('ddos', $anticyka, time() + 3600 * 24 * 7 * 356);
if (count($counter) > 10) {
if (! $debug) ban();
else die("Blocked");
}
if (! $_COOKIE['ddos_log'] == 'bil') {
if (! $_GET['antiddos'] == 1) {
setcookie('ddos_log', 'bil', time() + 3600 * 24 * 7 * 356);
header("Location: ./?antiddos=1");
}
}
} elseif ($_COOKIE['ddos'] !== $anticyka) {
if (! $debug) ban();
else die("Blocked.");
}
break;
case 2:
if (empty($_COOKIE['ddos'])) {
if (empty($_GET['antiddos'])) {
if (! $_COOKIE['ddos_log'] == 'bil')
die('<meta http-equiv="refresh" content="0;URL=?antiddos=' . $anticyka . '" />');
} elseif ($_GET['antiddos'] == $anticyka) {
setcookie('ddos', $anticyka, time() + 3600 * 24 * 7 * 356);
setcookie('ddos_log', 'bil', time() + 3600 * 24 * 7 * 356);
}
else {
if (! $debug) {
ban();
die("Forward line of adress");
}
else {
echo "Forward line of adress";
die("Blocked.");
}
}
}
break;
case 3:
if (! isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER'] !== $ddosuser ||
$_SERVER['PHP_AUTH_PW'] !== $ddospass) {
header('WWW-Authenticate: Basic realm="Vvedite parol\': ' . $ddospass .
' | Login: ' . $ddosuser . '"');
header('HTTP/1.0 401 Unauthorized');
if (! $debug) ban();
else die("Blocked");
die("<h1>CCV 401 Unauthorized</h1>");
}
break;
case 4:
die($off_message);
break;
case 5:
if ($load[0] > 80) {
header('HTTP/1.1 503 Too busy, try again later');
die('<center><h1>CCV 503 Server too busy.</h1></center><hr><small><i>Server CCV too busy. Please try again later. ' .
$_SERVER['HTTP_HOST'] .
' at port 80 with <a href="domain/">ddos protect</a></i></small>');
}
break;
default:
break;
}
if ($_COOKIE['ddos'] == $anticyka) @unlink($dir . $_SERVER["REMOTE_ADDR"]);
}
?>
Thanks lấy tinh thần nào
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
Kayashiteru Share Share code chống reg nick quá 3 lần trên 1 IP All Shared Scripts 0
Admin Share code chống ddos cho anh em Bảo mật 0
Admin Share code chống flood Mã nguồn wap 2
Admin Share 15GB source code Android bao gồm Unity Android, iOS 5
Admin Share code Nukeviet 4.4.02 mới nhất - Code tin tức tốt nhất Việt Nam Mã nguồn web 3
Admin Share code và data game bài Gowin 2019 mới nhất Mã nguồn web 9
Npnken Share Share code shop nick tự động - shopbumma.com PHP 3
SuperTroll Share code chat cho wap4.co Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
SuperTroll Share Code đua Pet cho MXH Team Johncms 0
SuperTroll Share Code JohnCMS Mefun.VN Johncms 0
L Share Full Code Gocvn.Org Johncms 1
cuongpro9x Share Share Code Chia Sẻ Video Cực Đẹp Nhiều Chức Năng All Shared Scripts 1
MrTrieu Share Share code blog JohnCMS làm wap game, truyện, blog thủ thuật đẹp Johncms 2
cuongpro9x Share Share Code Get Link Max BW onbox All Shared Scripts 1
H Share Share Full code VBB openitvn.net Vbulletin 1
H Share Share code game oẳn tù tì lột đồ girl cho JohnCMS by Nguyên Ary Johncms 1
H Share Share code và data WapIT JohnCMS 4.5.1 Johncms 0
T Share Tổng Hợp Code Tool Mod Java Online [full] All Shared Scripts 0
cuongpro9x Share Share code MXH Avatar trên wap VINA4U.MOBI PREMIUM Johncms 14
H Share [XtGem] Share code lấy id tag tên và ảnh b.bè trên FaceBook Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
H Share Share Code GhCMS - code giúp cho việc tạo wap trên WapMienPhi thật đơn giản Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
H Share Share Code sao lưu, Phục Hồi CSDL Cực Cool chỉ 1 file duy nhất All Shared Scripts 0
H Share Share code Wilib mod giống trasua.mobi All Shared Scripts 0
T Hỏi Anh em pro nào có code này share em với ạ ! Wordpress 1
NhokLove Share Share lại code nhật ký love All Shared Scripts 3
T Share tổng hợp code tiện ích của gocvn PHP 0
T Share code wap chat PHP v1.3 PHP 0
T SHARE Code cùng chuyên mục blog xtgem Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
T Share Code xóa quảng cáo Xtgem bằng css Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
V Share - Code blog JohnCMS làm wap game, truyện Johncms 5
V Share Share code filelist 99% không time out + toolpost cho xtgem by Sắt Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
T Share Share Code Mod Thay đổi Màu Nick Tùy Ý Cho Johncms Johncms 1
H Code m4um giống m4v 99% share by F4v Johncms 1
H ai share giup e code upload voi Mã nguồn wap 1
K Share Share code fake sms củamobiviet.vn đang dùng All Shared Scripts 1
Kayashiteru Share code đánh dấu trang Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
Kayashiteru Share share code igunny.ml pb v3 fix sach loi va có nhieu game mini All Shared Scripts 2
djdungcuty Share Share Code trang trí cho website đón Tết cực đẹp Javascript/ajax 1
KhangSkull Share code Bazar Shop - Template bán hàng cực đẹp Wordpress v2.0.0 Wordpress 5
Yeukodamnoi Share Share code auto like Facebook - Bấm vào đâu cũng like All Shared Scripts 3
W Share Share code wap 18+ Johncms 2
H Share code WapFTP by DienDanVn.Me Johncms 2
Myshare Share Code Blog JohnCMS 5.1.0 Giống Wap4VN Johncms 1
Yeukodamnoi [JohnCMS] Share code auto tag lấy từ kết quả hiển thị của Google Johncms 0
H Share code johncms giống teamobi hàng độc by vina4u.mobi Johncms 0
C Share Share code filelist SMS KUTE cho ai làm wap xtgem đây!! Javascript/ajax 1
A Share Code PHP Tạo Logo "Angry Birds" By Nguyên Ary Mã nguồn wap 1
N Share share code Xenforo Vntech24.Net Full Mod 2013 Xenforo 5
V Share code Xenforo giống daivietpda All Shared Scripts 2
V Share code xenforo dùng làm wap truyện, game, tin tức All Shared Scripts 0

Similar threads

New posts New threads New resources

Back
Top