80s toys - Atari. I still have
Đăng: 2016-02-23 03:44
AdminPichu    [Admin]
Để chặn bot user-agent cộng code dưới vào file .htaccess

#block bad bots with a 403
SetEnvIfNoCase User-Agent "facebookexternalhit" bad_bot
SetEnvIfNoCase User-Agent "Twitterbot" bad_bot
SetEnvIfNoCase User-Agent "Baiduspider" bad_bot
SetEnvIfNoCase User-Agent "MetaURI" bad_bot
SetEnvIfNoCase User-Agent "mediawords" bad_bot
SetEnvIfNoCase User-Agent "FlipboardProxy" bad_bot

<Limit GET POST HEAD>
  Order Allow,Deny
  Allow from all
  Deny from env=bad_bot
</Limit>

Copy code



Hoặc code này nếu muốn chuyển nó đến 1 trang khác:

#redirect bad bots to one page
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} facebookexternalhit [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Twitterbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Baiduspider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} MetaURI [NC,OR]
RewriteCond %{HTTP_USER_AGENT} mediawords [NC,OR]
RewriteCond %{HTTP_USER_AGENT} FlipboardProxy [NC]
RewriteCond %{REQUEST_URI} !\/nocrawler.htm
RewriteRule .* http://pichu.wap.sh [L]

Copy code
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á: Cách chặn bot user-agent, xem Cách chặn bot user-agent hay nhất , tải Cách chặn bot user-agent miễn phí , đọc Cách chặn bot user-agent hay nhất , chơi Cách chặn bot user-agent cực hay
Trực tuyến:
khách: 1
23 Chat - 65 member - 1225638 Views
-
Trang chủ
Google Robots Sitemap
Country : United States United States pokemon chim
IP : 18.118.0.240
Host : ec2-18-118-0-240.us-east-2.compute.amazonaws.com
Bây giờ là : 09:38:09 29/04/2024
Thanks to Xtgem.com Load xtscript: 0.000000s.
Timeload : 0.0004/s Timeout : 0.8%