凉风有信,秋月无边。
亏我思娇的情绪好比度日如年。

套cf后 站点WAF防火墙规则设定 这两条就够了 全能防御恶意流量攻击!

最近导航网站经常被流量攻击,疯狂跑网站流量,两个小时20G左右吧,一直困扰着我,

后来在电报群里的大神指点下,用上了CF的WAF的防火墙规则!

image

 

image (1)

添加防火墙规则表达式

第一

(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")

赞(0) 打赏
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的内容,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。本博客资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。如果本文导致的版权问题以及内容纠错问题请联系站长QQ:1004619 | 点此给我发送邮件
本文标题:《套cf后 站点WAF防火墙规则设定 这两条就够了 全能防御恶意流量攻击!》
本文地址:https://www.1004619.com/mianfei/zhide/tao-cf-hou-zhan-dian-waf-fang-huo-qiang-gui-ze-she-ding-zhe-liang-tiao-jiu-gou-le-quan-neng-fang-yu-e-yi-liu-liang-gong-ji/

相关推荐

  • 暂无文章