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
微信扫一扫,打开小程序浏览更便捷
原创文章,作者:howkunet,如若转载,请注明出处:https://www.intoep.com/othen/62381.html
赞 (1)
打赏
微信扫一扫
支付宝扫一扫
Nginx环境、Apache环境配置域名301跳转
上一篇
2023年11月3日 21:41
宝塔面板Nginx启用Fastcgi_cache缓存优化WordPress
下一篇
2023年11月11日 00:49
相关推荐
-
Linux使用宝塔面板+Discuz+cpolar内网穿透工具搭建公网访问论坛
下面我们在Linux上使用宝塔面板+Discuz+cpolar内网穿透工具结合,搭建一套发布到互联网环境的论坛服务,无需公网IP服务器,也无需设置路由器。
-
Suo5 – 一款高性能 HTTP 代理隧道工具 A high-performance http proxy tunneling tool
Suo5 – 一款高性能 HTTP 代理隧道工具 A high-performance http proxy tunneling tool