如何对抗bingbot / 2.0

时间:2015-03-23 14:28:15

标签: apache .htaccess robots.txt bingbot

我厌倦了bingbot,如何对抗这个机器人。它创建了会话。

我在ht访问中这样做: 意见?

#bingbot create too session
RewriteCond %{HTTP_USER_AGENT}  ^bingbot/.*         [OR,NC]
RewriteCond %{HTTP_USER_AGENT} bingbot [NC]
RewriteRule ^(.*)$ http://go.away/                      [L]

1 个答案:

答案 0 :(得分:0)

的.htaccess

RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} (bingbot) [NC]
RewriteRule .* - [R=403,L]

或使用robots.txt

User-agent: bingbot
Disallow: /