The Soda Pop
Đăng: 2015-09-26 15:22
AdminPichu    [Admin]
Bước 1: Tạo file .htaccess tại thư mục bị DDoS access/request liên tục (thông thường là các thư mục public_html, forum, diendan, 4rum, shop, blog, f v.v...). Nội dung file như sau:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?tendomain.com [NC]
RewriteRule !antiddos.php http://tendomain.com/antiddos.php?%{REQUEST_URI} [QSA]

Copy code

Bước 2: Tại cùng thư mục, tạo file antiddos.php với nội dung:
<?php
$text
=$HTTP_SERVER_VARS['QUERY_STRING'];$text preg_replace("#php\&#si",'php?',$text);echo('<center><a href=http://tendomain.com'.$text.'>[Click vao day]</a><br>de vao dien dan.</center>');?>

Copy code
Đã chỉnh sửa bởi pichu
Like: 0
Hãy Đăng nhập để bình luận và viết bài nhé
Tổng số bình luận 1
Chia sẻ bài viết đến bạn bè
Chia sẻ:SMS Google Zing Facebook Twitter
Link:
BBcode:
Từ khoá: Anti ddos bằng htaccess, xem Anti ddos bằng htaccess hay nhất , tải Anti ddos bằng htaccess miễn phí , đọc Anti ddos bằng htaccess hay nhất , chơi Anti ddos bằng htaccess cực hay
Trực tuyến:
khách: 1
23 Chat - 65 member - 1225621 Views
-
Trang chủ
Google Robots Sitemap
Country : pokemon chim
IP : 3.133.86.172
Host : ec2-3-133-86-172.us-east-2.compute.amazonaws.com
Bây giờ là : 06:47:33 29/04/2024
Thanks to Xtgem.com Load xtscript: 0.000000s.
Timeload : 0.0005/s Timeout : 0.7%