Rate Limiting
Purpose
Limits the number of requests an IP can make to prevent abuse, brute-force attacks, or DoS attacks.
Key Features
- Uses the
express-rate-limitlibrary to control the rate of incoming requests. - Default rate limit is
100requests per 15 minutes.
Customization
Modify the windowMs and max options to adjust the rate limit:
windowMs: The time window in milliseconds.max: The maximum number of requests an IP can make within the window.
Location: src/middlewares/rateLimitMiddleware.js
Visit the official documentation for more information.