configuration - 如何将 CloudFlare 规则转换为 HAPROXY?
问题描述
我正在尝试将以下规则转换为 HAPROXY 规则,但由于某种原因它不起作用。也许有人可以帮忙。
CF 规则
(http.request.method eq "GET" and http.request.uri.query eq "" and http.request.version eq "HTTP/1.1" and any(len(http.request.headers.values[*])[*] gt 60) )
Cloudflare 防火墙规则页面:(https://developers.cloudflare.com/firewall/cf-firewall-language/fields#dynamic-fields “文档”)
尝试了一些没有 http 版本和查询字符串的简单操作,但仍然无法正常工作。
代理:
acl test1 hdr_cnt() gt 60
http-request deny if METH_GET test1
也尝试了以下相同的方法,但没有奏效
req.fhdr_cnt
解决方案
推荐阅读
- pine-script - 如果成交量大于 volume20 并且蜡烛在 ema 9 收盘,则显示买入信号
- javascript - 滑块移动时使文本消失
- javascript - 如何使用 $scope angularjs 在文本区域中换行
- c++ - 调用 std::terminate 是否违反 noexcept?
- python - 如果在特定时间后 FastAPI 中没有输入请求,则停止 AWS EC2
- reactjs - 将上下文状态/逻辑移出 App 组件
- java - Apache Spark 和 JDBC:套接字异常:连接重置
- java - 如何以整数分隔和旋转数字?
- report - 如何在通过列表生成的每个页面中重复列标题
- python - Python - 计算缓冲区中的标记