.htaccess:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Baiduspider [NC]
RewriteRule .* - [F]
Or
SetEnvIf User-Agent ^Baidu baidu
Deny from env=baidu
httpd.conf
SetEnvIfNoCase User-Agent "^Baidu" bad_bot
Order Allow,Deny
Allow from all
Deny from env=bad_bot
Module Identifier: setenvif_module
沒有留言:
張貼留言