有多个插件可以用来阻止坏机器人流量。常用的插件包括 Wordfence Security、All In One WP Security & Firewall 和 Blackhole for Bad Bots。其中,Blackhole for Bad Bots 是一个专门用于阻止坏机器人的简单而有效的插件。
1、使用 Blackhole for Bad Bots 插件:
安装插件:
登录到 WordPress 后台。
导航到 插件 > 安装插件,搜索 “Blackhole for Bad Bots”。
安装并激活该插件。
配置插件:
激活插件后,导航到 设置 > Blackhole。
该插件会自动生成一个隐藏的陷阱链接。任何访问该链接的机器人将被视为坏机器人,并被永久阻止。
您可以自定义陷阱链接的路径,或者使用默认设置。
自动阻止坏机器人:
当坏机器人访问陷阱链接时,插件会将其 IP 自动加入阻止列表,防止其再次访问您的网站。
Blackhole for Bad Bots 的工作原理:
插件在页面中插入一个隐藏链接,正常用户和良性机器人不会访问该链接。
坏机器人(通常是抓取整个页面的脚本)会点击该链接,暴露自身。
插件将这些点击隐藏链接的机器人 IP 自动加入黑名单,阻止其再次访问。
2、使用 Wordfence Security 插件阻止坏机器人:
Wordfence Security 也是一个强大的安全插件,能够帮助您监控并阻止坏机器人。
安装插件:
登录到 WordPress 后台。
导航到 插件 > 安装插件,搜索 “Wordfence Security”。
安装并激活插件。
配置插件:
激活插件后,导航到 Wordfence > Firewall。
在 防火墙设置 页面中,开启 Brute Force Protection 和 Rate Limiting,限制可疑 IP 地址的访问速度。
启用机器人阻止功能:
在 Wordfence > Tools > Live Traffic 中,您可以查看访问您网站的机器人流量。
We use technologies like cookies to store and/or access device information. We do this to improve browsing experience and to show (non-) personalized ads. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.