Hi!请登陆

使用cloudflare后,务必要设置这两条WAF防火墙规则,可自动防御恶意流量攻击!

2023-2-12 512 2/12

使用cloudflare的CND以后,一定要记得添加下面这2条WAF的防火墙规则!

 

 

使用cloudflare后,务必要设置这两条WAF防火墙规则,可自动防御恶意流量攻击!

 

 

 

使用cloudflare后,务必要设置这两条WAF防火墙规则,可自动防御恶意流量攻击!

 

 

添加防火墙规则表达式

第一,这个要JS质询

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

 

相关推荐