I'm using sails js in developing a node js application and I want to apply some prevention for DOS and DDOS attack, I see "express-rate-limit" and "express-limiter" packages, In express it is easy to implement using
app.use(limiter({ some parameters }))
but how to implement using sailsjs app?
Use rate-limiter-flexible, which is not bound to any framework.
Here is basic example:
There are a lot more examples on a package Wiki.