在伪静态中加入以下代码即可屏蔽垃圾蜘蛛访问

Nginx环境

if ($http_user_agent ~* (SemrushBot|DotBot|MJ12bot|AhrefsBot|ZoominfoBot|BLEXBot|Python|PetalBot|Barkrowler)) {
      return 403;
}

在伪静态中加入以下代码即可屏蔽垃圾蜘蛛访问

Apache环境

SetEnvIfNoCase ^User-Agent$ .*(SemrushBot|DotBot|MJ12bot|AhrefsBot|ZoominfoBot|BLEXBot|Python|PetalBot|Barkrowler) BADBOT
Order Allow,Deny
Allow from all
Deny from env=BADBOT

在伪静态中加入以下代码即可屏蔽垃圾蜘蛛访问

Intoep小程序

微信扫一扫,打开小程序浏览更便捷

原创文章,作者:howkunet,如若转载,请注明出处:https://www.intoep.com/othen/62381.html

发表回复

登录后才能评论