Posts: 18
Tom
Joined: 30 Jul 2013
#1
polipo is a small proxy with webserver. It can be used for blocking ads and replacing them with a transparent image.
Add forbidden hosts or URLs (RegEx) to /etc/polipo/forbidden or to ~/.polipo-forbidden.

In /etc/polipo/config add

Code: Select all

forbiddenRedirectCode = 302
forbiddenUrl = http://127.0.0.1:8123/transparent.gif
Create your own image with 1 transparent pixel or search the web. Save it to /usr/share/polipo/www/transparent.gif .
Restart polipo:

Code: Select all

/etc/init.d/polipo restart
Make your browser use the proxy
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://127.0.0.1:8123"
linktext was:"http://127.0.0.1:8123"
====================================
. Use the same URL for browsing the documentation of polipo.



========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.pps.univ-paris-diderot.fr/~jch/software/polipo/"
linktext was:"http://www.pps.univ-paris-diderot.fr/~j ... re/polipo/"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://en.wikipedia.org/wiki/Polipo"
linktext was:"https://en.wikipedia.org/wiki/Polipo"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://127.0.0.1:8123"
linktext was:"http://127.0.0.1:8123"
====================================
# After installing polipo
man polipo