Shreyaa173 / Code-Book

⚡ Empowering Education through Coding Resources
https://code-book-kappa.vercel.app/
97 stars 156 forks source link

add rate limit to login api to enhance security #395

Open AyushSharma72 opened 1 month ago

AyushSharma72 commented 1 month ago

i want to add a rate limiter to the login api advantages: prevent bots brute force attack enhance security reduce load on api

please assign this issue to me @Shreyaa173

Shreyaa173 commented 1 month ago

Can you elaborate it more??

AyushSharma72 commented 1 month ago

Can you elaborate it more??

the rate limiter middleware is used to limit the number of request that can be made to the login api . hackers use brute force methods in which they use many password one by one to login from a specific account if the api process unlimited request from the ip address it can be vulnerable adding the middleware will limit number of request made to the api hence brute force attack are not useful . @Shreyaa173

Shreyaa173 commented 4 weeks ago

assign to you