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

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)



Back to the top