[
https://issues.apache.org/jira/browse/JSPWIKI-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18148849#comment-18148849
]
Alex O'Ree commented on JSPWIKI-1383:
-------------------------------------
looks like tomcat has one built in
<filter> <filter-name>RateLimitFilter</filter-name>
<filter-class>org.apache.catalina.filters.RateLimitFilter</filter-class>
<init-param> <param-name>bucketDuration</param-name>
<param-value>60</param-value> <!-- Time window in seconds (default: 60) -->
</init-param> <init-param> <param-name>bucketRequests</param-name>
<param-value>300</param-value> <!-- Max requests per bucket (default: 300) -->
</init-param> </filter> <filter-mapping>
<filter-name>RateLimitFilter</filter-name> <url-pattern>/*</url-pattern> <!--
Apply to all URLs or specific endpoints like /api/* --> </filter-mapping>
> 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)