Class RateLimitGuard
java.lang.Object
com.djrapitops.plan.delivery.webserver.RateLimitGuard
- Direct Known Subclasses:
RateLimitGuard.Disabled
Simple guard against DDoS attacks to single endpoint.
This only protects against a DDoS that doesn't follow redirects.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
resetAttemptCount
(String accessor) boolean
shouldPreventRequest
(String requestPath, String accessor)
-
Constructor Details
-
RateLimitGuard
public RateLimitGuard()
-
-
Method Details
-
shouldPreventRequest
-
resetAttemptCount
-