Go Back   Cựu Học Sinh Lê Quý Đôn - Long An > :: Góc Học Tập :: > Tin học > Tin tức > Bảo mật

Bảo mật Các tin tức liên quan đến bảo mật

Code chống Ddos

Code chống Ddos

this thread has 0 replies and has been viewed 3639 times

Gởi Ðề Tài Mới Trả lời
 
Ðiều Chỉnh Xếp Bài
Old 30-03-2006, 08:08 PM   #1
Hồ sơ
ZenkyNemesis
Senior Member
 
ZenkyNemesis's Avatar
 
Tham gia ngày: Jan 2005
Cư ngụ: Ngày hôm qua
Tuổi: 36
Số bài viết: 174
Tiền: 25
Thanks: 0
Thanked 119 Times in 23 Posts
ZenkyNemesis is an unknown quantity at this point
Default

Save thành file firewall.php up lên root site rồi chèn cái này vào đầu file index.php
<?php include "firewall.php";?>
Code:
<?php

session_start();

global $_firewall_OK;

$_firewall_OK = 0;



if(!session_is_registered("anti_firewall") || $anti_firewall != "true")

{

if(isset($antisecurity) && $_POST['antisecurity'])

{

 settype($antisecurity,"string");

 settype($num,"string");

 if($antisecurity == $num)

 {

 session_unregister("num");

 session_unregister("error");

 session_register("anti_firewall");

 $anti_firewall = "true";

 return 1;

 }

 else

 {

 $error = $error + 1;

?>

<html>

<head>

<title>WELCOME TO NARUTOVN</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">

<!--

body,td,th {

color: #FF0000;

}

body {

background-color: #000000;

}

.style1 {

color: #FFFF00;

font-weight: bold;

}

.style6 {font-size: 18px}

.style7 {font-size: xx-large}

.style8 {color: #999999}

.style10 {

font-size: 18px;

color: #999999;

font-style: italic;

}

-->

</style></head>

<body>

<center>

 <span class="style7">NarutoVN Firewall</span> 

 <p class="style8">(Firewall nà y được dựng lên để đảm bảo an toà n cho Forum trước tình trạng tấn công DOS của các ****er )</p>

 <p><span class="style6"><em><span class="style8"><em>Nhập mã số là </em> :</span></em> <span class="style1"><? echo $num;?></span></span> <span class="style10"> và o ô dưới để vượt qua Firewall

</span></p>

<form method="POST" action="index.php">

  <p>

   <input name="antisecurity" type="text" size="6" maxlength="6">

</p>

  <p>

   <input type="submit" name="Submit" value="Click here">

</p>

 </form>

 <p>

 </p>

</center>

<center>

<?php

if($error < 3){ echo "Bạn đã nhập sai mã số ! Vui lòng nhập lại !";}

if($error >= 3){ echo "Bạn đã nhập sai mã số ! Vui lòng nhập lại !<br><br> Nếu bạn gặp rắc rối với Firewall , h&atilde;y li&ecirc;n hệ với anti qua một trong c&aacute;c nick Yahoo : noixa03 , yeuemdaikho22 , langduintel , langtuhaohoabmt2002";}

?></center>

</body>

</html>

<?php

 //session_unregister("error");

 exit(-1);

 

 }

}

else

{

 //Tao session "num" va gan gia tri so ngau nhien co 6 chu so

 session_register("num");

 mt_srand((double) microtime()*1000000);

 $num = mt_rand(100000,999999);

 session_register("error");

 $error = 1;

 

 //Form

?>

<html>

<head>

<title>WELCOME TO NARUTOVN</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">

<!--

body,td,th {

color: #FF0000;

}

body {

background-color: #000000;

}

.style1 {

color: #FFFF00;

font-weight: bold;

}

.style6 {font-size: 18px}

.style7 {font-size: xx-large}

.style8 {color: #999999}

.style10 {

font-size: 18px;

color: #999999;

font-style: italic;

}

-->

</style></head>

<body>

<center>

 <span class="style7">NarutoVN Firewall</span> 

 <p class="style8">(Firewall nà y được dựng lên để đảm bảo an toà n cho Forum trước tình trạng tấn công DOS của các ****er )</p>

 <p><span class="style6"><em><span class="style8"><em>Nhập mã số là </em> :</span></em> <span class="style1"><? echo $num;?></span></span> <span class="style10"> và o ô dưới để vượt qua Firewall

</span></p>

<form method="POST" action="index.php">

  <p>

   <input name="antisecurity" type="text" size="6" maxlength="6">

</p>

  <p>

   <input type="submit" name="Submit" value="Vượt Firewall">

</p>

 </form>

 <p>

 </p>

</center>



</body>

</html>

<?php 

 exit(-1);

}



}
else
{
return 1;
}
?>
__________________
Men cry not for themselves, but for their comrades
--------------------------------------------------
ZenkyNemesis is offline   Trả Lời Với Trích Dẫn
Trả lời



Quyền Sử Dụng Ở Diễn Ðàn
Bạn không được quyền gởi bài
Bạn không được quyền gởi trả lời
Bạn không được quyền gởi kèm file
Bạn không được quyền sửa bài

vB code đang Mở
Smilies đang Mở
[IMG] đang Mở
HTML đang Tắt
Chuyển đến


Website sử dụng phần mềm vBulletin phiên bản 3.6.8
do Công ty TNHH Jelsoft giữ bản quyền từ 2000 - 2024.
Múi giờ GMT +7. Hiện tại là 01:21 PM.

Hội CHS Lê Quý Đôn-Long An giữ bản quyền nội dung của website này

Tự động[F9]TELEX VNI VIQR VIQR* TắtKiểm chính tảDấu cũ
phan mem quan ly ban hang | thuê vps