We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is this possible to like "whitelist" ip/req.param from being rate-limited without making next endpoint? or use other rate-limit for ip/req.param?
The text was updated successfully, but these errors were encountered:
Yes, you can set skip to a function like so:
skip
const limiter = rateLimit({ skip: (req, res) => { if (req.ip === '1.2.3.4') { return true; } else { return false; } });
That will whitelist the IP 1.2.3.4.
Sorry, something went wrong.
Doc improvements
52f40cc
Partially for #156
I've noticed adding skip and returning true. It stops my call from continuing. How can I debug this?
No branches or pull requests
is this possible to like "whitelist" ip/req.param from being rate-limited without making next endpoint?
or use other rate-limit for ip/req.param?
The text was updated successfully, but these errors were encountered: