Skip to content

CasualPlotw/-Advanced-HTTP-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Advanced HTTP Analyzer πŸš€

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.


πŸ”₯ Features

  • 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

πŸ“¦ Endpoints

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)

πŸ›  Technologies Used

  • Python
  • socket
  • threading
  • datetime
  • json

▢️ How to Run

python analyzer_server.py

Server runs on:

http://127.0.0.1:8080


πŸ“Š Example Log Entry

{
  "time": "2026-02-22 09:07:18.340123",
  "ip": "127.0.0.1",
  "method": "GET",
  "path": "/stats"
}

About

Multi-threaded HTTP analyzer built with Python sockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages