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.5k stars 132 forks source link

This limiter is amazing. One question though. #16

Closed ghost closed 9 years ago

ghost commented 9 years ago

Cannot find out how / where it performs the ban on the user if they exceeded the requests? Is it a IP ban or just returning false in javascript?

jhurliman commented 9 years ago

Banning, users, and blacklisting IP addresses are all outside of the scope of this library. If you want to detect users exceeding their rate limit, use tryRemoveTokens and check for a false return value.