1.0.8 β€’ Published 5 months ago

ip-logger-rate-limiter v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

IP Logger and Rate Limiter Middleware

A highly efficient and optimal middleware for Express.js that combines IP logging and rate limiting in one package. With this middleware, you can easily log user IPs and prevent abuse by enforcing a customizable rate limit for each endpoint.

Perfect for applications that require basic traffic control while keeping your setup lightweight and easy to use.

Features πŸš€ Optimized for performance: Minimal memory usage and fast execution. πŸ“Š IP logging: Logs each user’s IP address and the requested URL to a local .txt file. ⏱️ Custom rate limiting: Set the time window for request limits (e.g., 10 seconds or 30 seconds) to avoid overloading your server. πŸ”„ Automatic request cleanup: The middleware automatically removes expired IP records from memory, keeping things lean. πŸ”’ Simple and secure: Prevents DDoS-like behavior by limiting the number of requests a user can make within a set time window.

Installation

Install the package using npm:

Github

https://github.com/ronie-coder/Optimized_IpLogger_RateLimiter

Usage

Below is a simple example of how to configure the middleware

Example Image

npm install ip-logger-rate-limiter
1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago