B4J Question jServer limit request per minute

Alexander Stolte

Expert
Licensed User
Longtime User
Hey,

how can i set a limit for request from the same IP for example in one minute?
with
Code:
AddDosFilter("/*",CreateMap("maxRequestsPerSec": 10,"delayMs": -1))
i can set the max request per sec from the same ip, but this is too short...

Greetings
 
The purpose of the DOS filter is to protect from a denial of service attack. Why do you want to limit it to one request per minute? Most requests complete in a few milliseconds. Limiting it to 1 request per second should give you reasonable protection.

It should be quite simple to create your own filter.
 
Upvote 0
Back
Top