This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| Quick and dirty filtering HTTP proxy using only Python stdlib | |
| Change REMOTE_HOST below and adjust the regexp to suit your needs | |
| """ | |
| from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
| from urllib import urlopen, basejoin | |
| import re |
NewerOlder