How to limit flood connections?
-
NodeBB
I remember on the old version NodeBB we have setting to limit onetime connections from one user and user get 503 custom page error, when start flood requests, but now this rules
traffic-management
not work and I don't understand why. I'm set 70 loop lag threshold and 50 loop interval and nothing, users keep send flood-requests > 100/per second without get 503 page (temporarily unavailable due to excessive load)Nginx
To protect a nginx I found info about
limit_req_zone
, but when I try add it to my default or forum config, I get error when try restart nginx. Somebody have a worked config with this protection? -
The traffic management settings only kick in when the module detects the nodejs event loop lagging behind. At that point it starts serving a 503 page. It applies to all users so it is not a targeted DDoS protection like limit_req_zone which can target a single IP.