is it really an api or just a normal form? if api - you can have a throttle middleware. if normal form then you can check the ip and store it the first time user enteres an email - and then block him from doing so again.. you could also verify emails are real using an external service.
Jun 7, 2019
5
Level 9
How to protect API route from flood
I want to make newsletter subscription. And I'm afraid that someone could flood my database with many fake emails. Using passport is not an option, because I what to subscribe unregistered users too.
Any ideas how to prevent that API flood?
Level 122
but you validate that the recaptcha is there and has been verified. It woukd be a pointless concept if you could just bypass it.
Please or to participate in this conversation.