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.
- 
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_agentslibrary
- 
Stores logs in visitor_logs.txt
- 
Displays a warning page to visitors 
- 
Designed with simple HTML/CSS response for demonstration 
- Clone the repo
git clone https://github.com/SiddDevCS/FlaskIPL.git- Go to the app directory
cd FlaskIPL/- Set up a virtual envirionment
python3 -m venv venv
source venv/bin/activate- Install dependencies
pip install -r requirements.txt- Run the web app (local)
python3 main.py- Visit: http://0.0.0.0:5001/
All captured data is logged into visitor_logs.txt in a human-readable format for review and analysis.