I am using the below configuration,
stick-table type binary size 100k expire 5s store http_req_rate(5s)
acl abuse sc_http_req_rate(0) ge 5
http-request track-sc0 hdr(room) unless abuse
http-request deny if { sc_http_req_rate(0) gt 5 }
My intention is to count only the success request, so i have added unless criteria to track-sc0.
But for some reason its not working. It appears counter is incrementing even for denied request also.
Any pointer to correct the conditions would be of great help
1 post - 1 participant