Polipo
(Created new page for Polipo. Still a work in progress but a start...) |
m |
||
(4 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
'''Polipo''' is a caching proxy server. Installing this port enables both caching of web pages and filtering of content. | '''Polipo''' is a caching proxy server. Installing this port enables both caching of web pages and filtering of content. | ||
Line 12: | Line 11: | ||
</pre> | </pre> | ||
− | The default configuration file is at <tt>/usr/local/etc/polipo/config.sample</tt> | + | The default configuration file is at <tt>/usr/local/etc/polipo/config.sample</tt>. |
This file should be updated then moved to <tt>/usr/local/etc/polipo/config</tt> | This file should be updated then moved to <tt>/usr/local/etc/polipo/config</tt> | ||
Line 19: | Line 18: | ||
If you wish to enable adblocking using polipo, there are two scripts which can parse adblock lists (such as https://easylist-downloads.adblockplus.org/easylist.txt) | If you wish to enable adblocking using polipo, there are two scripts which can parse adblock lists (such as https://easylist-downloads.adblockplus.org/easylist.txt) | ||
− | For Python there is http://www.legios.org/scripts/ | + | For Python there is http://www.legios.org/scripts/adblock2polipo.py. |
− | For Ruby there is http://www.legios.org/scripts/ | + | For Ruby there is http://www.legios.org/scripts/adblock2polipo.rb. |
− | To use these scripts, download them and make them executable (chmod +x). Ensure you have either Python or Ruby installed to run these scripts. If you have neither, you can type <tt>pkg_add -r python</tt> to install python, or <tt>pkg_add -r ruby</tt> to install Ruby. | + | To use these scripts, download them and make them executable (<tt>chmod +x</tt>). Ensure you have either Python or Ruby installed to run these scripts. If you have neither, you can type <tt>pkg_add -r python</tt> to install python, or <tt>pkg_add -r ruby</tt> to install Ruby via packages. |
Once you have downloaded and set the script to executable, you can them download the EasyList adblock list. | Once you have downloaded and set the script to executable, you can them download the EasyList adblock list. | ||
To do this, move the EastList list to the same directory as the adblock conversion script, then type | To do this, move the EastList list to the same directory as the adblock conversion script, then type | ||
<pre> | <pre> | ||
− | ./adblock2polipo.py easylist.txt >> /usr/local/etc/polipo/forbidden</pre> for the Python | + | ./adblock2polipo.py easylist.txt >> /usr/local/etc/polipo/forbidden</pre> for the Python script |
or | or | ||
<pre> | <pre> | ||
Line 34: | Line 33: | ||
This will block ads based on the rules in the list that was downloaded. | This will block ads based on the rules in the list that was downloaded. | ||
+ | |||
+ | You can now (re)start Polipo by executing | ||
+ | <pre> | ||
+ | /usr/local/etc/rc.d/polipo restart | ||
+ | </pre> | ||
+ | |||
+ | [[Category:Ports and Packages]] |
Latest revision as of 21:54, 22 June 2011
Polipo is a caching proxy server. Installing this port enables both caching of web pages and filtering of content.
To install this program, you can either install it as a package using
pkg_add -r polipo
Or build it by doing
cd /usr/ports/www/polipo && make install clean
The default configuration file is at /usr/local/etc/polipo/config.sample. This file should be updated then moved to /usr/local/etc/polipo/config
To enable Polipo, the user should add polipo_enable="YES" to /etc/rc.conf
If you wish to enable adblocking using polipo, there are two scripts which can parse adblock lists (such as https://easylist-downloads.adblockplus.org/easylist.txt)
For Python there is http://www.legios.org/scripts/adblock2polipo.py.
For Ruby there is http://www.legios.org/scripts/adblock2polipo.rb.
To use these scripts, download them and make them executable (chmod +x). Ensure you have either Python or Ruby installed to run these scripts. If you have neither, you can type pkg_add -r python to install python, or pkg_add -r ruby to install Ruby via packages.
Once you have downloaded and set the script to executable, you can them download the EasyList adblock list. To do this, move the EastList list to the same directory as the adblock conversion script, then type
./adblock2polipo.py easylist.txt >> /usr/local/etc/polipo/forbiddenfor the Python script
or
./adblock2polipo.rb easylist.txt >> /usr/local/etc/polipo/forbiddenfor the Ruby script
This will block ads based on the rules in the list that was downloaded.
You can now (re)start Polipo by executing
/usr/local/etc/rc.d/polipo restart