Privoxy

From miki
Revision as of 19:18, 5 January 2017 by Mip (talk | contribs) (Created page with "'''Privoxy''' is a HTTP non-caching filtering Proxy Server. It does not support FTP. == Configuration == === Corporate proxy === Tell privoxy to forward some request to corp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Privoxy is a HTTP non-caching filtering Proxy Server. It does not support FTP.

Configuration

Corporate proxy

Tell privoxy to forward some request to corporate proxy. By default corporate proxy is proxy.company.com:8080. One can configure browser to use privoxy as proxy, and then add the following rule to /etc/privoxy/config:

forward    /   proxy.company.com:8080

Filters

Fix Cubefreak visualcube links

Add to /etc/privoxy/user.action:

#################################################################################
# Fixup cubefreak.net broken links to visualcube. This transforms html tag like
#
#        <img src="/v/?r=x-25y25&case=R'U'RU'R'U'R&stage=f2l&bg=t&fmt=png">
#
# into
#
#        <img src="http://cube.crider.co.uk/visualcube.php?r=x-25y25&case=R'U'RU'R'U'R&stage=f2l&bg=t&fmt=png">
#
FILTER: cubefreak-fixup This repairs links to Visualcube which no longer works
s|<img src="/v/\?|<img src="http://cube.crider.co.uk/visualcube.php?|g

Add to /etc/privoxy/user.filter:

# A filter to repair cubefreaks broken links to visualcube
# See user.filter for details
{ +filter{cubefreak-fixup} }
cubefreak.net