B4J Question DOS Filter how it works (how to configure correctly)?

Douglas Farias

Expert
Licensed User
Longtime User
Hi all.
I would like to understand how the DOS filter works on the B4J Server


How works the DOS Filter on B4J Server?
This is enabled automatic when you start a server or need some configuration?

i have this line on my code, before the server start.
B4X:
srvr.AddDoSFilter("/*", CreateMap("maxRequestMs": 5 * 60 * 1000))
but this is sufficient?

i made a test, making a lot of requests to a page and i see the log
2020-04-24 14:27:57.851:WARN:eek:ejs.DoSFilter:qtp1288354730-11: DOS ALERT: Request delayed=100ms, ip=127.0.0.1, session=null, user=null
but i m not blocked, only show the logs, but i can enter on the website normal.

Questions
how works the block?
how can i block the users making dos attack?
if a user is blocked how can i check the list of blocks?
how unblock a user (ip)?


Obs: the page about DOS (@Erel ) are with the links off (not working)

if anyone has a working example of how to use the dos filter, show logs, block and unblock users and can share I appreciate it.

Thank you!
 
Top