Deny http connection

2011-11-25 Thread Sander Klein

Hi,

I was wondering if it is possible to start rate-limiting or deny a 
connection based on response codes from the backend.


For instance, I would like to start rejecting or rate limit a HTTP 
connection when a client triggers more than 20 HTTP 500's within a 
certain time frame.


It this possible?

Greets,

Sander



Re: Deny http connection

2011-11-25 Thread Baptiste
Hi,

You could do that using a stick table and the option http_err_rate.

cheers


On Fri, Nov 25, 2011 at 1:50 PM, Sander Klein roe...@roedie.nl wrote:
 Hi,

 I was wondering if it is possible to start rate-limiting or deny a
 connection based on response codes from the backend.

 For instance, I would like to start rejecting or rate limit a HTTP
 connection when a client triggers more than 20 HTTP 500's within a certain
 time frame.

 It this possible?

 Greets,

 Sander