Skip to content

amarjin6/proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub language count GitHub repo size GitHub commit merge status GitHub code size in bytes GitHub watchers

TCP proxy server logging HTTP requests 🎲

💡Main idea💡

Needed to implement a simple proxy server that logs proxied HTTP requests with the help of sockets API. The program should run as a service and display brief information about proxied requests (URL and response code) as a log.

📰How it works📰

In computer networks, A proxy server is a server ( A computer system or an application ) that acts as an intermediary for requests from clients seeking resources from other servers. A client connects to the proxy server, requesting some service, such as a file, connection, web page, or other resource available from a different server and the proxy server evaluates the request as a way to simplify and control its complexity. Proxies were invented to add structure and encapsulation to distributed systems. Today, most proxies are web proxies, facilitating access to content on the World Wide Web and providing anonymity.

proxy

What Bob thinks is the server ( i.e the proxy ) asked for the current time, But what Bob didn't know was, Alice asked for the current time but through the proxy server. The proxy server returns the current time to Alice. So we can basically say, Server Bob has been tricked. The proxy server acts as a man in the middle serving two people without revealing their identities to each other, Each person sees only the proxy but not the other end.

⚒️How to Run⚒️

  • Clone project to your folder: git clone https://github.com/amarjin6/proxy-server.git
  • Check for updates and install all necessary requirements: pip install -r ./requirements.txt
  • Run project in terminal: python proxy.py
  • Don't forget to turn on PROXY on your OS🔌

🥽Preview🥽

sEW1iCZAX_QJf4MqqHhr-jKzQSflarjpFaO6FRYP3xnUKLLddtkT4ZLhHKrJ-yfKXaVE1pj6lbX0h0hTzUYEVZQ4

Python Socket Proxy

About

TCP proxy server logging HTTP requests 🎲

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages