Cloudflare:WAF防火墙设置

注意:只有开启小云朵才有效

创建规则

WAF规则只能免费创建5个

Cloudflare:WAF防火墙设置

托管质询:即开启CF的5秒盾

点击编辑表达式,填入以下代码即可(代码请结合自身调整)

Cloudflare:WAF防火墙设置

特定IP放行

(ip.src eq 192.168.7.17) or (ip.src eq 2901:c080:1110:4c91:5400:4ff:feb8:130a)

SEO放行

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

特定国家区域放行

(cf.threat_score ge 5 and not cf.client.bot) or (not http.request.version in {"HTTP/2" "HTTP/3"}) or (not ip.geoip.country in {"AU" "CA" "FR" "DE" "HK" "IR" "JP" "KR" "MY" "SG" "TW" "GB" "US" "CN"})

1.跳过设置

Cloudflare:WAF防火墙设置

2.托管质询设置

Cloudflare:WAF防火墙设置

频率设置

按照图示设置即可

Cloudflare:WAF防火墙设置
Cloudflare:WAF防火墙设置
Cloudflare:WAF防火墙设置

设置完毕后,不在你的规则之内的访问都会触发CF的5秒盾。

发布者:木木,转载请注明出处:https://blog.mmcool.site/6839.html

Like (0)
Donate 微信 微信 支付宝 支付宝
木木的头像木木VIP用户
Previous 2025 年 1 月 12 日 上午11:46
Next 2025 年 1 月 14 日 下午8:21

相关推荐

发表回复

Please Login to Comment
SHARE
TOP
🔈Hi,朋友。欢迎来到木木の博客小站!