Skip to content

Commit

Permalink
Simplify the DosFilter for #1256
Browse files Browse the repository at this point in the history
Use only IP tracking for the DosFilter to fix #1256

Signed-off-by: gregw <gregw@webtide.com>
  • Loading branch information
gregw committed Oct 18, 2023
1 parent 536a38a commit d55eb31
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 252 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ The filter works on the assumption that the attacker might be written in simple
[[dos-filter-using]]
==== Using the DoS Filter

Jetty places throttled requests in a priority queue, giving priority first to authenticated users and users with an HttpSession, then to connections identified by their IP addresses.
Connections with no way to identify them have lowest priority.
To uniquely identify authenticated users, you should implement the The extractUserId(ServletRequest request) function.
Jetty places throttled requests in a queue, and proceed only when there is capacity available.

===== Required JARs

Expand Down Expand Up @@ -94,11 +92,8 @@ Default is 30000L.
insertHeaders::
If true, insert the DoSFilter headers into the response.
Defaults to true.
trackSessions::
If true, usage rate is tracked by session if a session exists.
Defaults to true.
remotePort::
If true and session tracking is not used, then rate is tracked by IP and port (effectively connection).
If true, then rate is tracked by IP and port (effectively connection).
Defaults to false.
ipWhitelist::
A comma-separated list of IP addresses that will not be rate limited.
Expand Down
Loading

0 comments on commit d55eb31

Please sign in to comment.