Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Convert CloudFlare Rules to HAPROXY

$
0
0

Hi,
I am trying to convert the following rule to HAPROXY rule but it is not working for some reason. maybe somebody can help :star_struck:

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

HAPROXY:

 acl test1 hdr_cnt() gt 60
 http-request deny  if METH_GET test1

also tried with same method above and it didn’t work

req.fhdr_cnt

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>