Re: ACLs that depend on cookie values

2012-05-10 Thread Willy Tarreau
On Wed, May 09, 2012 at 04:01:12PM -0700, Malcolm Handley wrote: Oh, one more question: if I use reqrep to modify the cookies header that's going to destroy the original header, I suspect, which would cause problems for the web server that wants to read those cookies. Is there any way around

Re: ACLs that depend on cookie values

2012-05-09 Thread Malcolm Handley
On Tue, May 8, 2012 at 1:24 AM, Willy Tarreau w...@1wt.eu wrote: Hi Malcolm, On Mon, May 07, 2012 at 06:19:36PM -0700, Malcolm Handley wrote: 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

Re: ACLs that depend on cookie values

2012-05-09 Thread Malcolm Handley
Oh, one more question: if I use reqrep to modify the cookies header that's going to destroy the original header, I suspect, which would cause problems for the web server that wants to read those cookies. Is there any way around that? On Wed, May 9, 2012 at 3:51 PM, Malcolm Handley

Re: ACLs that depend on cookie values

2012-05-08 Thread Willy Tarreau
Hi Malcolm, On Mon, May 07, 2012 at 06:19:36PM -0700, Malcolm Handley wrote: 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

ACLs that depend on cookie values

2012-05-07 Thread Malcolm Handley
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