nationskollen / server

Nationskollen infrastructure backend
2 stars 0 forks source link

Add rate limiting to requests #154

Open Frewacom opened 3 years ago

Frewacom commented 3 years ago

We should make sure to block malicious users sending too many requests. There are packages available for this, e.g. https://www.npmjs.com/package/rate-limiter-flexible (as per a comment from AdonisJS discord server). Combined with a middleware, this should do just fine.

McFrappe commented 3 years ago

https://github.com/reg2005/adonis-request-throttler might be better suiting