Skip to content

A proxy server that acts as a man in the middle between browser and web server with ability to block and cache websites. Handles HTTP and HTTPS requests.

License

Notifications You must be signed in to change notification settings

A51F221B/ProxyServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

platform: cross Python: 3 lisence

A Proxy Server.

HTTP-Proxy-Server

- LIBRARIES USED IN THE PROJECT

- CODE DESCRIPTION

The proxy acts as the man-in-middle between client which is our browser and the web server to which the request (HTTP or HTTPS) is sent. To use the proxy, we will have to set it in the browser proxy setting with IP 127.0.1.1 at port 8080.

Before running the proxy, we have to make sure that no other process is running on port 8080. To do that, open terminal (linux) and type:

sudo lsof -t -i tcp:8080 | xargs kill -9

Initially, the object of the class server is created by which we are able to access the methods of the class. The function server( ) triggers the proxy server. Now, the proxy checks if the requested website is blocked or not. For port 80 it will call HTTP() function and for port 443 it will call HTTPS() function. If the website is requested more than once, the proxy will automatically cache it. This whole process is displayed on terminal with current date and time.

About

A proxy server that acts as a man in the middle between browser and web server with ability to block and cache websites. Handles HTTP and HTTPS requests.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages