1 points · by JasonKing01 · 4y ago · 1 comment
CF Rule
(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 Firewall Rules Page: (https://developers.cloudflare.com/firewall/cf-firewall-language/fields#dynamic-fields "Documentation")
Tried something simple without http version and query string, but still not working.
HAPROXY:
acl test1 hdr_cnt() gt 60 http-request deny if METH_GET test1 also tried with same method below and it didn’t work
req.fhdr_cnt
[1] - https://www.google.com/search?q=site%3Aserverfault.com+hapro...
[2] - https://discourse.haproxy.org/
[3] - https://docs.haproxy.org/2.6/configuration.html#4-stick-tabl...
[4] - https://gist.github.com/procrastinatio/6b6579230d99be5bfa26d...