Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty Block IP based on visits

If you prefer servlet filters to jetty handlers, you could of course use that instead.

Btw, users coming from behind an http proxy often use the same ip address. In addition, these same proxies often use several ip addresses.

Cheers,

Stefan

On 5 December 2011 09:33, Thomas Becker <tbecker@xxxxxxxxxxx> wrote:
Hi Cheney,

jetty doesn't support this out of the box, no. But you can deal with it yourself by for example writing a custom handler (http://wiki.eclipse.org/Jetty/Howto/Write_Jetty_Handler) which counts the requests per IP per hour/day and respond with an error page if the configured limit has been reached. If you're expecting a huge amount of requests be careful on how you track requests as this might need a big amout of memory depending on how you count/store the requests from the last day for example.

Cheers,
Thomas

On 12/5/11 7:57 AM, Xin Chen wrote:
Hi,

Can you Jetty do this?

Specifying the maximum request e.g. 1000 per day or per hour, for certain IP. If that IP reaches the limit, Jetty will show them error message etc.

Thanks,
cheney
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users

--
thomas becker
tbecker@xxxxxxxxxxx

http://webtide.com / http://intalio.com
(the folks behind jetty and cometd)

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
BEKK Open
http://open.bekk.no


Back to the top