注意:只有开启小云朵才有效
创建规则
WAF规则只能免费创建5个

托管质询:即开启CF的5秒盾
点击编辑表达式,填入以下代码即可(代码请结合自身调整)

特定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.跳过设置

2.托管质询设置

频率设置
按照图示设置即可



设置完毕后,不在你的规则之内的访问都会触发CF的5秒盾。
发布者:木木,转载请注明出处:https://blog.mmcool.site/6839.html