[ 
https://issues.apache.org/jira/browse/JSPWIKI-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149319#comment-18149319
 ] 

Arturo Bernal commented on JSPWIKI-1383:
----------------------------------------

Before adding the RateLimitFilter snippet to web.xml: the class 
org.apache.catalina.filters.RateLimitFilter is not in every Tomcat 9.0 release. 
I tested a 9.0.70 jar (absent) and a 9.0.80 jar (present). On a Tomcat without 
it the webapp does not start (ClassNotFoundException, GET / returns 404).

I tested the war with the filter on Tomcat 10.1. After 330 consecutive 
requests, 327 got 200 and 3 got 429. Once the window passed, requests got 200 
again.

One cold page view (empty cache) is 10 requests, so 300 per minute is about 30 
page views. The counter uses the client address (getRemoteAddr). Behind a 
reverse proxy, all clients would share one bucket. I did not test that setup.

> Optional rate limiting servlet filter
> -------------------------------------
>
>                 Key: JSPWIKI-1383
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1383
>             Project: JSPWiki
>          Issue Type: New Feature
>            Reporter: Alex O'Ree
>            Assignee: Alex O'Ree
>            Priority: Major
>
> to reduce or at least throttle bot traffic



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to