Cloudflare 防火墙速率限制规则设置参考,速率限制规则只有一条,设置好可以防御大部分流量攻击
排除掉静态文件,这些文件不用限制速率,因为 Cloudflare 缓存了,不用请求源服务器
根据自己网站的动态请求数量设置一个合理的数值,我这里设置成60,可以设置成更小,例如20-30
可以点编辑表达式,把下面的代码添加进去
(http.request.uri.path contains "/" and not ends_with(http.request.uri.path, ".png") and not ends_with(http.request.uri.path, ".jpg") and not ends_with(http.request.uri.path, ".woff2") and not ends_with(http.request.uri.path, ".js") and not ends_with(http.request.uri.path, ".webp") and not ends_with(http.request.uri.path, ".ico") and not ends_with(http.request.uri.path, ".svg") and not ends_with(http.request.uri.path, ".css") and not ends_with(http.request.uri.path, ".bmp") and not ends_with(http.request.uri.path, ".woff"))