Hi,

You could easily do this with HAproxy in front of your Varnish...
If all the requests are miss ones, you could also put your HAProxy
between Varnish and your backend.

cheers


On Thu, Jul 14, 2011 at 2:52 PM, Hettwer, Marian
<[email protected]> wrote:
> Hi All,
>
> Before we are going to try to write our own VMOD, does anybody
> accomplished to do rate limiting with varnish?
> As in:
>
> We like to rate limit some scrapers. They don't generate cache hits and
> will always punch right through to the backend. This is not good(tm).
> The thought here is to do rate limiting on client.ip base.
> If client.ip hits us more than n times / second, go to vcl_error and
> either throw him an error or probably even drop the connection.
> If bots are nasty to us, sometimes it's good to be nasty to them, eh? ;)
>
> Any thoughts/pointers on how one would implement this in varnish?
>
>
> Thanks in advance,
> Marian
>
>
> _______________________________________________
> varnish-misc mailing list
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to