Skip to content

SiddDevCS/FlaskIPL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Visitor Info Logger (Educational Use Only)

This is a Flask-based web application that logs detailed visitor information. This web application DOES NOT work without ngrok.

The web app logs data such as IP address, geolocation, user agent, and more. It is intended only for learning and cybersecurity awareness purposes.

Disclaimer: This project is for educational and ethical use only. Do not deploy or use it in a way that violates privacy, consent, or applicable laws. Unauthorized tracking or logging of individuals may be illegal.

main.py is meant for understanding the concept: logging data. So if you are looking to learn how to log sensitive data, check out main.py.


Features

  • Logs:

    • IP address and hostname
    • Geolocation data (city, region, country, latitude, longitude)
    • ISP and ASN info
    • Device/browser/OS details
    • Referrer URL
  • Uses ipapi.co for IP geolocation

  • Parses user agent strings using user_agents library

  • Stores logs in visitor_logs.txt

  • Displays a warning page to visitors

  • Designed with simple HTML/CSS response for demonstration


Try it out local:

  1. Clone the repo
git clone https://github.com/SiddDevCS/FlaskIPL.git
  1. Go to the app directory
cd FlaskIPL/
  1. Set up a virtual envirionment
python3 -m venv venv
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Run the web app (local)
python3 main.py
  1. Visit: http://0.0.0.0:5001/

File Logging

All captured data is logged into visitor_logs.txt in a human-readable format for review and analysis.

About

Simple IP Logger, for educational purposes only!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages