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
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