weixin_39826984
2021-01-02 06:08How to block User-Agent and blank / empty User-Agent Strings
As I know we can block bots with bots.d/blacklist-user-agents.conf
files but does not understanding that what code need add in blacklist-user-agents.conf
files. Please give me code for User-Agent "Yandex
" and "Baidu
", Also we have lot of block blank User-Agent strings is this good or need block? If so how we can block?
Please note, User-Agent- Majestic-12
and linkdexbot/2.0
still are not blocked.
该提问来源于开源项目:mitchellkrogza/nginx-ultimate-bad-bot-blocker
- 点赞
- 回答
- 收藏
- 复制链接分享
22条回答
为你推荐
- utf-8中的错误解码字符串中的JSON解码器
- json
- encoding
- utf-8
- 1个回答
- 我无法在for循环中同时写入文件-Goroutine无法正常工作
- concurrency
- for-loop
- 1个回答
- 当使用k8s.io/client-go库更改kubernetes部署时,获得通知的最佳方法是什么?
- kubernetes
- 1个回答
- 将表作为html表单中的隐藏值传递 - 奇怪的单/双引号问题
- html
- javascript
- php
- 1个回答
- PHP - 将字符串转换为具有千位分隔符支持的整数
- type-conversion
- php
- 2个回答
换一换