PDA

View Full Version : Code Anti DDos tổng hợp nhiều FireWall



Tuxedo
08-09-2009, 11:20 AM
Thấy good mang về cho anh em



Version 1, mình share đã được 1 năm. Qua đó, có 1 số hạn chế cộng lỗi liên tục.

Ở version 2 này, code đã được tối ưu hóa. Mô tả:

+ Sử dụng .htaccess làm nền tảng.
+ Tích hợp ERC, InV-Firewall.
+ Sửa được lỗi sercurity token mắc phải ở version 1.

Hướng dẫn:

+ Upload toàn bộ file lên thư mục root của forum cần được bảo vệ.
+ Cấu hình lại các file:

! .htaccess:

PHP Code - SELECT ALL (http://hoiquantinhoc.com/forum/showthread.php?t=6730#)

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?hoiquantinhoc.com [NC]
RewriteRule !antiddos.hqth.phtml http://hoiquantinhoc.com/antiddos.hqth.phtml?%{REQUEST_URI} [QSA]


Sửa hoiquantinhoc.com (http://diendan.lethanhton.info/) thành domain diễn đàn của bạn, ví dụ: diendan.lethanhton.info (http://diendan.lethanhton.info/)

! config_firewall.php:

PHP Code - SELECT ALL (http://hoiquantinhoc.com/forum/showthread.php?t=6730#)

<?php
$conf['path'] = './log'; // thu muc luu tru log
$conf['site_url'] = 'http://hoiquantinhoc.com'; // url domain cua ban
$conf['mailadds'] = 'n2@]hoiquantinhoc.com'; //email lien he
$conf['mailname'] = 'n2@hoiquantinhoc.com';
$conf['maxaccess'] = 3; // If exceed the limits, the client will be banned from access
$conf['interval'] = 2; // Time interval in seconds
$conf['requests'] = 5; // Number of possible requests during $conf['interval'] seconds
$conf['blocktime'] = 10; // How long the client has to wait when they are blocked
?>

Sửa hoiquantinhoc.com (http://diendan.lethanhton.info/) thành domain diễn đàn của bạn, ví dụ: diendan.lethanhton.info (http://diendan.lethanhton.info/)

! antiddos.hqth.phtml:

PHP Code - SELECT ALL (http://hoiquantinhoc.com/forum/showthread.php?t=6730#)

$domain = 'http://hoiquantinhoc.com'; // Chú ý: Không có dấu / ở cuối domain


Sửa hoiquantinhoc.com (http://diendan.lethanhton.info/) thành domain diễn đàn của bạn, ví dụ: diendan.lethanhton.info (http://diendan.lethanhton.info/)
Chú ý: không có dấu / ở cuối dòng

! global.php:

PHP Code - SELECT ALL (http://hoiquantinhoc.com/forum/showthread.php?t=6730#)

include ("erc.php");


P/S: chính thức ngừng support version 1.

Hi vọng script này giúp bạn hạn chế phần nào hậu quả của "con quỷ ddos".

THPT Lê Thánh Tôn (http://lethanhton.info/) | Diễn đàn THPT Lê Thánh Tôn (http://diendan.lethanhton.info/) | Upload ảnh (http://photo.lethanhton.info/)

Hướng dẫn sửa lỗi Security Token trong Code AntiDDOSS tổng hợp nhiều Firewall:



http://hoiquantinhoc.com/forum/attachment.php?attachmentid=12954&stc=1&d=1244167594

Leech bên HQTH

Link down
ver 1 http://www.mediafire.com/?jgmnqzyuzhm
ver 2 http://www.mediafire.com/?ztnndtzdjjm

sharigamih2
16-09-2009, 07:42 AM
Tuxe chạy làng rùi ah ! ^^! bây giờ mới thấy tuxe sang itvnn.net ! :confuse:

Mr.Won
16-09-2009, 12:36 PM
web lethanhton cấu hình file .htaccess sai rồi thì phải -> error

Tuxedo
16-09-2009, 06:23 PM
không phải của tux mà :|, thấy hay post lên thôi :|

Mr.Won
16-09-2009, 07:13 PM
Cái bản v2 thì ko khớp hướng dẫn nhỉ :|

sharigamih2
16-09-2009, 07:46 PM
Tưởng của tuxe sáng tạo ra chứ ! thanks share nhé xề

hau_ooo
17-09-2009, 04:08 PM
Cái này của http://www.silveryhat.com

Dùng ngon cho cả VBB, IPB, PhpBB

Diễn đàn hỗ trợ http://www.silveryhat.com/delynie/

tuthienbao1989
19-09-2009, 12:41 PM
ui chời hương dan với code hình như sai đâu thi phải thiếu cả file nữa phải ko nhỉ

lamdpcm
15-01-2013, 12:52 PM
Hix, làm theo hướng dẫn mà ko được không được. Nhưng cũng thanks bạn.