<Block a client address in KTor server?> I have in...
# forum
r
Block a client address in KTor server? I have installed a Rate Limiter for my KTor server as below code. I now want to be able to block a client IP address from contacting my server if it reaches the rate limit. I do not want the blocked client from wasting my server resources anymore after it reaches the rate limit. This is potentially for preventing brute force attack to bring down my server by sending millions of requests per second. How to do this in code? install(RateLimit) { global { rateLimiter(limit = 10, refillPeriod =...