express-limiter
express-limiter copied to clipboard
Rate limiting middleware for Express
Is there a way to limit all endpoints on my application except one? Or how can I set all endpoints to 5 requests per second, but a specific endpoint limit...
Hello, I recently found out that when using `lookup` as a function, the param `opts` is mutable. That means, if you modify it, subsequent request made by same user or...
I set the rate limit at 3 TPS. When I send 4 TPS, it works and I see 3TPS rate honored. However, when I put this into production, as the...
When I tried to use `jwtPayload.email` I got a `TypeError: Cannot read property 'email' of undefined` because I was using an unauthenticated method, so I fixed that.
Hi, I have added Mongo db support for rate limiter. This one was much needed feature as you can see multiple request has been raised in the issues section to...
I "consoled" the block about the lookup option being a function: ``` if (typeof(opts.lookup) === 'function') { console.log('1:' + opts.lookup); middleware = function (middleware, req, res, next) { console.log('2:' +...
The whitelist feature is great, however my function need to be able to return a Promise, something like the example below :/ ``` JavaScript whitelist: function(request) { return new Promise(function(resolve,...
How can I use the mongodb with the express-limitter using native mongodb driver
I tired to change the client to mongo and it failed. Has anyone used it? Appreciate help. Thanks
Hi - Thank you for taking the time to create this! How do I protect multiple endpoints in express? ``` const rateLimiter = RateLimiter(app, app.locals.redisClient0); rateLimiter({ path: '/api/fetch', method: 'post',...