Filtering Advertising with Privoxy

Post links to your 32-bit module repos here. Repo maintainers are responsible for resolving any issues caused by their xzm's.
User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Filtering Advertising with Privoxy

Post#1 by wread » 07 Sep 2013, 22:49

Hi all!
Take a look at that:
Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk. Privoxy has a flexible configuration and can be customized to suit individual needs and tastes. It has application for both stand-alone systems and multi-user networks.
This is a normal webpage with advertising,

Image

Now the same webpage without advertising,

Image


This can be done using Privoxy for Porteus; download it from here. You will need both, privoxy-3.0.21 and pcre-8.33.

Awesome, isn't it?

Enjoy 8)
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Filtering Advertising with Privoxy

Post#2 by francois » 08 Sep 2013, 02:16

@wread:

Very interesting application. 8)

I have tried it on 64 bit with chromium and compat. It does not work. Any suggestion?
http://www.privoxy.org/config/ yields:

Code: Select all

The fact that you are reading this page shows that Privoxy was not used in the process of accessing it.
I have tried to config proxy settings on chromium. It is not possible. :)
Prendre son temps, profiter de celui qui passe.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Filtering Advertising with Privoxy

Post#3 by wread » 08 Sep 2013, 02:38

You have to start privoxy, first. I do it in rc.local:

Code: Select all

# Start the Privoxy daemon
if [ -a /etc/privoxy/config ]; then
    echo "starting the privoxy daemon..."
    /usr/sbin/privoxy /etc/privoxy/config
fi
#
Then it should work!

Regards!
Last edited by wread on 08 Sep 2013, 02:52, edited 1 time in total.
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Filtering Advertising with Privoxy

Post#4 by wread » 08 Sep 2013, 02:52

@francois
To configure proxy settings in chromium, I installed the plugin switchysharp and it worked ok.

You can make a module of this by saving /mnt/live/memory/changes/root/.cache/chromium or by copying it to rootcopy.

I first put it in rootcopy, but now I am using a module, because I have the impression the module loads quicker...

:Yahoo!:
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Filtering Advertising with Privoxy

Post#5 by francois » 15 Sep 2013, 00:20

@wread:

As I mentioned, I am not on 32 bit, but trying 64 bit and compat.xzm. I have put the script in rc.local. Clearly its there. And I realized that proxy switchysharp was already there as a tool, with some manual setting for tor.

I have put manual settings privoxy, still does not work. :(
Prendre son temps, profiter de celui qui passe.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Filtering Advertising with Privoxy

Post#6 by wread » 15 Sep 2013, 01:38

@francois
First of all check if privoxy is installed and running (rc.privoxy must be chmod +x):

Code: Select all

root@porteus:~# /etc/rc.d/rc.privoxy
Usage: privoxy {start|stop|reload|restart|condrestart|status|top|kill}
root@porteus:~# /etc/rc.d/rc.privoxy status
 1846 ?        Ss     0:00 /usr/sbin/privoxy /etc/privoxy/config
root@porteus:~# 
If not working, check if you have pcre installed and activated.

Second, your Switchysharp must be configured for Privoxy with Manual Configuration>HTTP 120.0.0.1 Port 8118 and Socks5

Both conditions must be fullfilled to get it working.

Good luck!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

hypomania
Samurai
Samurai
Posts: 130
Joined: 10 Mar 2011, 10:50
Distribution: Windows phone
Location: Saudi Arabia

Re: Filtering Advertising with Privoxy

Post#7 by hypomania » 15 Sep 2013, 02:57

there is plugin for firefox , it's work the same function to prevent advertising called (AdBlock)
https://addons.mozilla.org/en-US/firefo ... serprofile

Post Reply