Skip to content

Python script built with Flask to log client IP addresses and user agents.

License

Notifications You must be signed in to change notification settings

hXR16F/ip-logger-revamped

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ip-logger-revamped
IP Logger Revamped is a Python script built with Flask to log client IP addresses and user agents.

vid

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.

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 and add it to environment variable.
  2. Clone this repository:
git clone https://github.com/hXR16F/ip-logger-revamped.git
cd ip-logger-revamped
  1. Install the required Python libraries:
pip install -r requirements.txt
  1. 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. Thank you 💙

About

Python script built with Flask to log client IP addresses and user agents.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages