服务器购买推荐:
点击直达 腾讯云服务器
点击直达 海外服务器
点击直达 阿里云服务器
宝塔环境
Nginx1.22
PHP8.1
MySQL5.7
进入此文章查看 宝塔面板搭建代码
WordPress下载
安全相关插件
AntiVirus
Wordfence安全
WPS隐藏登录
WPS Cleaner
加速相关插件
Redis Object Cache
Imagify
防御恶意流量攻击
添加防火墙规则表达式:
- 第一
(cf.threat_score ge 5 and not cf.client.bot) or (not http.request.version in {"HTTP/1.2" "HTTP/2" "HTTP/3" "SPDY/3.1"}) or (not http.user_agent contains "Mozilla/")
- 第二
(cf.client.bot) or (http.user_agent contains "duckduckgo") or (http.user_agent contains "facebookexternalhit") or (http.user_agent contains "Feedfetcher-Google") or (http.user_agent contains "LinkedInBot") or (http.user_agent contains "Mediapartners-Google") or (http.user_agent contains "msnbot") or (http.user_agent contains "Slackbot") or (http.user_agent contains "TwitterBot") or (http.user_agent contains "ia_archive") or (http.user_agent contains "yahoo")
评论区