Reputation: 309
We are are small start up and we are using SailsJS(which sits on top of NodeJS) on our backend. Ours is a API driven architecture. I want to implement rate limiting for most of the API's. I want to start with a small use case for Signup. Signup is a public API and currently anyone can access it to create accounts.
I really appreciate your suggestions and opinions.
Upvotes: 5
Views: 1538
Reputation: 707916
If signup does not have to be purely a programmatic API and can be required to go through a web page, then you can use either a captcha or some other "prove you're a human" mechanism for the signup operation specifically. This will prevent programmatic DoS on the signup API since each request requires human intervention.
Other API requests would need rate limiters though to prevent abuse of an account that was already created. Those subsequent API calls will presumably be referencing a specific account so you can handle the shared corporate IP address by rate limiting the account, not the IP address.
Upvotes: 5