Coder Social home page Coder Social logo

rohit427 / proxy-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aayushsanghavi/proxy-server

0.0 0.0 0.0 190 KB

It is a threaded proxy server that can serve HTTP requests from multiple hosts. It supports caching, blacklisting of requests and authentication

Home Page: https://aayushsanghavi.github.io/projects/ProxyServer.html

Python 100.00%

proxy-server's Introduction

  • Run both scripts to simulate the two ends.
  • Run them multiple times to simulate many servers and clients.
  • Check the scripts to see how to run them.

Features -

  • Threaded Proxy server
  • The proxy keeps a count of the requests that are made. If a URL is requested more than 3 times in 5 minutes, the response from the server is cached. In case of any further requests for the same, the proxy utilises the “If Modified Since” header to check if any updates have been made, and if not, then it serves the response from the cache. The cache has a memory limit of 3 responses.
  • The proxy supports blacklisting of certain outside domains. These addresses should be stored in “black-list.txt”. If the request wants a page that belongs to one of these, then, it returns an error page.
  • Proxy handles authentication using Basic Access Authentication and appropriate headers to allow access to black-listed sites as well. The authentication is username/password based, and can be assumed to be stored on the proxy server.

proxy-server's People

Contributors

aayushsanghavi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.