A multi-threaded HTTP analyzer built using raw Python sockets.
This project demonstrates low-level HTTP request handling, logging, and basic route management without using any external web frameworks.
- Multi-threaded client handling
- Raw HTTP request parsing
- JSON-based request logging
- Path statistics tracking
- 403 Forbidden route blocking
- Live server stats endpoint
- Log export endpoint
| Endpoint | Description |
|---|---|
/ |
Default welcome page |
/stats |
Shows total request count and path statistics |
/logs |
Returns all logs in JSON format |
/admin |
Blocked route (returns 403 Forbidden) |
- Python
- socket
- threading
- datetime
- json
python analyzer_server.pyServer runs on:
{
"time": "2026-02-22 09:07:18.340123",
"ip": "127.0.0.1",
"method": "GET",
"path": "/stats"
}