https://github.com/hxr16f/ip-logger-revamped
Python script built with Flask to log client IP addresses and user agents.
https://github.com/hxr16f/ip-logger-revamped
grabber ip-grabber ip-logger logger logging
Last synced: 3 months ago
JSON representation
Python script built with Flask to log client IP addresses and user agents.
- Host: GitHub
- URL: https://github.com/hxr16f/ip-logger-revamped
- Owner: hXR16F
- License: gpl-3.0
- Created: 2023-12-08T13:20:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-13T20:30:22.000Z (almost 2 years ago)
- Last Synced: 2025-01-26T07:46:17.701Z (9 months ago)
- Topics: grabber, ip-grabber, ip-logger, logger, logging
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ip-logger-revamped
IP Logger Revamped is a Python script built with Flask to log client IP addresses and user agents.
![]()
# Overview
**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](https://github.com/hXR16F/IP-Logger).# Features
* 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.# Installation
1. Install Ngrok by following the instructions at [ngrok.com](https://ngrok.com) and add it to environment variable.
2. Clone this repository:
```
git clone https://github.com/hXR16F/ip-logger-revamped.git
cd ip-logger-revamped
```
3. Install the required Python libraries:
```
pip install -r requirements.txt
```
4. Run the script:
```
python ip-logger-revamped.py
```# Usage
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.# Notes
Please be aware that URL shortening services may have rate limits.# Donate
If you support my work or like my projects, [you can donate me some money](https://github.com/hXR16F/donate/blob/master/README.md). Thank you 💙