Class RateLimitGuard

java.lang.Object
com.djrapitops.plan.delivery.webserver.RateLimitGuard
Direct Known Subclasses:
RateLimitGuard.Disabled

public class RateLimitGuard extends Object
Simple guard against DDoS attacks to single endpoint.

This only protects against a DDoS that doesn't follow redirects.

  • Constructor Details

    • RateLimitGuard

      public RateLimitGuard()
  • Method Details

    • shouldPreventRequest

      public boolean shouldPreventRequest(String requestPath, String accessor)
    • resetAttemptCount

      public void resetAttemptCount(String accessor)