GithubHelp home page GithubHelp logo

network's Introduction

Synopsis

This is a simple http proxy.

How to use it

Because Firefox defaults to using HTTP/1.1 and your proxy speaks HTTP/1.0, there are a couple of minor changes that need to be made to Firefox's configuration. Fortunately, Firefox is smart enough to know when it is connecting through a proxy, and has a few special configuration keys that can be used to tweak the browser's behavior.

  1. Type'about:config'inthetitlebar.
  2. In the search/filter bar, type 'network.http.proxy'
  3. You should see two keys: network.http.proxy.pipelining, and network.http.proxy.version.
  4. Set version to 1.0. Make sure that pipelining is set to false.
  5. Manually set up proxy with host name localhost and port number with any portnumber you want to test on.
  6. In your terminal where this script is at, do python minimal proxy.py -portnumber.
  7. The portnumber of 5 and 6 needs to be matched.

Motivation

A toy proxy for understanding how proxy actually works.

Blocking

'www.baidu.com','www.cnn.com','www.nyu.edu','www.aol.com','www.dmv.org', 'www.stackoverflow.com','www.bbc.co.uk','www.youku.com','www.ticketmaster.com','www.columbia.edu' are blocked. These are set arbitrarily for test

Filtering

Filtering words are: 'research’,’porn’. These are set arbitrarily for test

network's People

Contributors

senongtor avatar

Watchers

 avatar  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.