ip-logger-revamped
IP Logger Revamped is a Python script built with Flask to log client IP addresses and user agents.
IP Logger Revamped is a Python script utilizing Flask, aimed at logging client IP addresses and user agents.
This tool not only records crucial information but also offers the flexibility to redirect clients to a specified URL and generate shortened links for convenient access to the logging endpoint.
This project is an evolution of its predecessor: hXR16F/IP-Logger.
- Logs client IP addresses, user agents, and timestamps into a designated file (ip-logger-revamped.txt).
- Option to redirect clients to a specified URL.
- Generates shortened links using various URL shortening services.
- Install Ngrok by following the instructions at ngrok.com and add it to environment variable.
- Clone this repository:
git clone https://github.com/hXR16F/ip-logger-revamped.git
cd ip-logger-revamped
- Install the required Python libraries:
pip install -r requirements.txt
- Run the script:
python ip-logger-revamped.py
Once the script is running, it listens for incoming connections.
Client IP addresses, user agents, and timestamps are logged into the ip-logger-revamped.txt file.
If a redirect URL is specified, clients are redirected; otherwise, a 404 error is returned.
Please be aware that URL shortening services may have rate limits.
If you support my work or like my projects, you can donate me some money. Thank you 💙