I'd like to write an ACL that compares the integer value of a cookie with a constant. (My goal is to be able to block percentiles of our users if we have more traffic than we can handle, so I want to block a request if the cookie's value is, say, less then 25.)
I understand that I can do something like hdr_sub(cookie) -i <regular expression> but that doesn't let me treat the value as an integer and compare it. I also know about hdr_val(<header>) but that gives me the entire value of the cookie header, not just the value of a particular cookie. Is there any way that I can do this?