(AhrefsBot|aliyun|bingbot|crawler|CipaCrawler|commoncrawl|Digital AlphaServer|DomainCrawler|DotBot|dacongyun|daum|Epiphany|feedly|Go-http-client|GroceryHouse|greatdealshop|http-client|KOCMOHABT|ltx71|inoreader.com|msnbot|Miniflux|MJ12bot|magpie-crawler|mail.ru|Media Center PC 6.0|MSIE 6.0|MegaIndex.ru|Nimbostratus-Bot|Nexus 7 BuildNimbostratus|opensiteexplorer|pingbot|PhantomJS|Python-urllib|python-requests|python|php-market|Qwantify|rssbot|Scrapy|SemrushBot|subscribers|t.me|uptime|WinHttp|x09Chrome|YandexBot|zgrab|9.1.0.0 Safari|17.0.963.56|34.0.1847.116|41.0.2227.1|45.0.2454.93|57.0.2987.133 Safari|59.0.3071.115 Safari|535.11|20101213)
- 软件管理 → nginx防火墙 → 全局配置 → User-Agent过滤
if ($http_user_agent ~* "^$" ) { return 403; }
- 宝塔面板 – 网站 – 设置 – 配置文件
IP 地址段写法:
- 192.168.0.0/24(屏蔽 192.168.0 开头的全部 IP地址)
- 192.168.0.0/16(屏蔽 192.168 开头的全部 IP地址)
- 192.168.0.0/8 (屏蔽 192 开头的全部 IP地址)
可以的 很多垃圾采集太频繁 非常恶心 屏蔽了省心~
终于更新了