jhurliman / node-rate-limiter

A generic rate limiter for node.js. Useful for API clients, web crawling, or other tasks that need to be throttled
MIT License
1.51k stars 135 forks source link

Rate limit by Parameter #60

Closed ghost closed 5 years ago

ghost commented 5 years ago

I'm assuming this is by IP? Is there anyway I can insert via the options like a parameter to use instead?

For example right now it is set up to not allow more then 5 requests per IP address per minute. But right now I'm hoping to make it by email.

jhurliman commented 5 years ago

All of that is part of your application design, and is out of scope for this library which only handles the actual tracking of rate limiters and does not know about IP addresses or emails.