Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Block ads/annoying javascript/flash ads with privoxy
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Wed Oct 01, 2003 3:24 pm    Post subject: Block ads/annoying javascript/flash ads with privoxy Reply with quote

Privoxy is a great tool in portage to block ads automatically without user interaction. The default configuration blocks almost ads that I can find :)

To use it follow these steps

1. emerge privoxy (based on the once very popular junkbusters)
2. rc-update add privoxy default
3. /etc/init.d/privoxy start
4. configure it in your browser:

(including instuctions for konq and firebird, since those are what I use)

konqueror:
Configure Konqueror->Proxy->Manually Specify proxy settings->hit setup, put in http://127.0.0.1 as the http proxy, and 8118 as the port

MozillaFirebird:
Options->Connection->put in http://127.0.0.1 as the http proxy, and 8118 as the port

5. goto http://p.p/ to see if it's working.

privoxy is extremely powerful. it can do a LOT of things, but simply adblocking is pretty easy. you could set it up to replace Microsoft with Gentoo for example :)
_________________
what up
Back to top
View user's profile Send private message
fourwood
Apprentice
Apprentice


Joined: 17 May 2003
Posts: 197

PostPosted: Wed Oct 01, 2003 4:37 pm    Post subject: Reply with quote

Can Privoxy do a lot of things Proxomitron can for Windows?
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Wed Oct 01, 2003 4:41 pm    Post subject: Reply with quote

fourwood wrote:
Can Privoxy do a lot of things Proxomitron can for Windows?


Yes, it has a very similiar feature set. You can rewrite/replace CSS, JavaScript, html, any content.
_________________
what up
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Wed Oct 01, 2003 4:44 pm    Post subject: Reply with quote

so far i am using epiphany, which has a built-in feature
to manage popups, and have added over 17.000 ad
hosts to my /etc/hosts file so that they are not loaded
either.

i will check into this though; thanks for posting.
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Wed Oct 01, 2003 5:14 pm    Post subject: Reply with quote

neenee wrote:
so far i am using epiphany, which has a built-in feature
to manage popups, and have added over 17.000 ad
hosts to my /etc/hosts file so that they are not loaded
either.


Yeah, most modern browsers (except for IE :) ) have popup blocking features (moz+related browsers (firebird, epiphany, galeon), konq+related browsers (safari, omniweb), opera).

Adding ad hosts can work, but it may not have as good results as dynamically checking for them. Especially with all of the ads that are not images, but rather put in CSS layers, like the side ad in osnews.com.
_________________
what up
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Wed Oct 01, 2003 6:04 pm    Post subject: Reply with quote

emerge privoxy (3.0.2) fails for me (using gcc-3.3.1-r4):

Code:
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/limits.h:122,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/limits.h:11,
                 from cgi.c:428:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
make: *** [cgi.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: net-www/privoxy-3.0.2 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! make failed.
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Wed Oct 01, 2003 8:00 pm    Post subject: Reply with quote

neenee wrote:
so far i am using epiphany, which has a built-in feature
to manage popups, and have added over 17.000 ad
hosts to my /etc/hosts file so that they are not loaded
either.

i will check into this though; thanks for posting.


A posting of that list would be nice - along with a short article of course... these days it seems blacklisting seems to be the most CPU efficient way to avoid porn pop ups.
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Wed Oct 01, 2003 8:08 pm    Post subject: Reply with quote

hmm.. the last time when i made a post
in the tip and tricks section, many replied
to it and commented on my lack of caps
and proper grammar or however it would
be classified.

so i am a bit squeamish about doing it
again. lol.

but i will. just to show 'em.

*update* tada
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Wed Oct 01, 2003 8:28 pm    Post subject: Reply with quote

Lovechild wrote:

A posting of that list would be nice - along with a short article of course... these days it seems blacklisting seems to be the most CPU efficient way to avoid porn pop ups.


CPU efficient means using 1% CPU instead of 2%?
_________________
what up
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Wed Oct 01, 2003 8:37 pm    Post subject: Reply with quote

he was not referring to it as being significantly
more cpu efficient. he was just referring to it as
it seemingly being the most cpu efficient method.

as for an answer to your question:

i think cpu efficient means that a process does
not use more cpu than necessary; as little waste
as possible.

and, speaking for myself, if i can find an alternate
method to perform a task which would use one per-
cent less cpu, i would go for it.

anyway.. to stay on-topic:

i unmerged my kernel-headers which caused the
privoxy compile problem. i emerged them again and
privoxy emerged just fine.

i am trying it out now :wink:
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Wed Oct 01, 2003 8:43 pm    Post subject: Reply with quote

shm wrote:
Lovechild wrote:

A posting of that list would be nice - along with a short article of course... these days it seems blacklisting seems to be the most CPU efficient way to avoid porn pop ups.


CPU efficient means using 1% CPU instead of 2%?


Well, blacklist was mean more as a general term - try the same with spam and you will see on some machine (even current ones) the scoring systems employed by SpamAssassin will take as much as 30s per mail, and when you get 100-200 mails a day like I do that's just unacceptable, so I disabled spamfiltering untill a faster alternative is found - Bogofilter maybe.. needs traning though, and it's not a snug fit in Evolution with any method I know - the closed I've discovered was the GWN hint on bogofilter and it still left dead links to deleted mails in the SPAM folder after it learned from it.. there simple doesn't exist a good way of handling spam today, and by good I mean efficent and correct.
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Wed Oct 01, 2003 8:48 pm    Post subject: Reply with quote

i still use spamassassin, with razor. and indeed it takes long :(

ps. sorry if i came across a bit strong
in that post above. i tend to do that
sometimes. it happens before i have
the chance to correct myself.
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Wed Oct 01, 2003 11:31 pm    Post subject: Reply with quote

Lovechild wrote:

Well, blacklist was mean more as a general term - try the same with spam and you will see on some machine (even current ones) the scoring systems employed by SpamAssassin will take as much as 30s per mail, and when you get 100-200 mails a day like I do that's just


Yes, but your analogy isn't correct because web proxies only add an insignificant amount of latency. This is because, simply put, they don't have to do a large amount of processing (essentially, they don't have to be as intelligent). Email filters often DO have to quite intelligent in order to work properly, and thus, they do take more CPU cycles.
_________________
what up
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Thu Oct 02, 2003 7:19 am    Post subject: Reply with quote

Quote:
5. goto http://p.p/ to see if it's working.


i am not sure what that should do, but it does not load
for me. privoxy was started though, and i have set
the proxy in epiphany and i can browse normal sites.
Back to top
View user's profile Send private message
tetrahydroc
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2003
Posts: 144

PostPosted: Thu Oct 02, 2003 12:03 pm    Post subject: Re: Block ads/annoying javascript/flash ads with privoxy Reply with quote

shm wrote:

konqueror:
Configure Konqueror->Proxy->Manually Specify proxy settings->hit setup, put in http://127.0.0.1 as the http proxy, and 8118 as the port

MozillaFirebird:
Options->Connection->put in http://127.0.0.1 as the http proxy, and 8118 as the port

5. goto http://p.p/ to see if it's working.


you have to drop the http:// part of the proxy address, like this:

Code:

konqueror:
Configure Konqueror->Proxy->Manually Specify proxy settings->hit setup, put in 127.0.0.1 as the http proxy, and 8118 as the port

MozillaFirebird:
Options->Connection->put in 127.0.0.1 as the http proxy, and 8118 as the port


and then go to the url mentioned in step 5.

tetra
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Thu Oct 02, 2003 12:49 pm    Post subject: Reply with quote

it appears i set the proxy in the wrong location;
i have now set it in my gnome configuration and
all is well.

thank you for your reply :wink:
Back to top
View user's profile Send private message
ThE_TemPLaR
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2003
Posts: 149
Location: Salon de Provence

PostPosted: Thu Oct 02, 2003 5:14 pm    Post subject: Reply with quote

neenee wrote:
emerge privoxy (3.0.2) fails for me (using gcc-3.3.1-r4):

Code:
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/limits.h:122,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/limits.h:11,
                 from cgi.c:428:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
make: *** [cgi.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: net-www/privoxy-3.0.2 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! make failed.


Have you copy your /usr/src/linux/include/linux directory to /usr/include ?
_________________
...
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Thu Oct 02, 2003 9:51 pm    Post subject: Reply with quote

privoxy works; please read one of my
previous posts in this thread to see how
i fixed it.
Back to top
View user's profile Send private message
mlsfit138
Guru
Guru


Joined: 20 Sep 2003
Posts: 406
Location: Washington

PostPosted: Tue Dec 16, 2003 11:29 am    Post subject: Reply with quote

giving it a whirl. gives me an excuse to porn surf for a while.
Back to top
View user's profile Send private message
linux_girl
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 287

PostPosted: Thu Dec 18, 2003 5:32 pm    Post subject: Reply with quote

i spend a lot of time using linux/internet for fun/studies/... :o :o :o

I am looking for a way to change the CSS styles of html tags
Code:

[[FROM]]
<body bgcolor="#ffffff" text="#000000"

[[TO]]
<body bgcolor="#000000" text="#ffffff"


#ffffff=white
#000000=black

privoxy sucks a lot i spent 3hours and i dont understand the way to do it ! :( :(


any idea ? :idea:
_________________
:D :D
Back to top
View user's profile Send private message
mlsfit138
Guru
Guru


Joined: 20 Sep 2003
Posts: 406
Location: Washington

PostPosted: Fri Dec 19, 2003 8:38 am    Post subject: Image problems Reply with quote

some images seem to come up kinda funky, some are missing features, some don't animate the way they should. Specifically, some of the emoticons that should be on my screen as I edit this are kinda screwed up. :lol: :cry: :oops: :roll: I can't see any of those properly!
Back to top
View user's profile Send private message
zerojay
Veteran
Veteran


Joined: 09 Aug 2003
Posts: 1033

PostPosted: Sat Nov 27, 2004 5:11 pm    Post subject: Re: Image problems Reply with quote

mlsfit138 wrote:
some images seem to come up kinda funky, some are missing features, some don't animate the way they should. Specifically, some of the emoticons that should be on my screen as I edit this are kinda screwed up. :lol: :cry: :oops: :roll: I can't see any of those properly!


Privoxy is probably set to deanimate gifs. Check the /etc/privoxy/default.action file.
Back to top
View user's profile Send private message
Rheddry
n00b
n00b


Joined: 30 Nov 2004
Posts: 4

PostPosted: Tue Nov 30, 2004 2:48 am    Post subject: Re: Image problems Reply with quote

DarkStalker wrote:
mlsfit138 wrote:
some images seem to come up kinda funky, some are missing features, some don't animate the way they should. Specifically, some of the emoticons that should be on my screen as I edit this are kinda screwed up. :lol: :cry: :oops: :roll: I can't see any of those properly!


Privoxy is probably set to deanimate gifs. Check the /etc/privoxy/default.action file.


nice of you bringing up a nearly 1 year thread! :twisted: :twisted:

anyway...
i use adblock extension for firefox and thunderbird for spam protection!
no extra cpu usage (well... :p) and easy integration with browser/mail client... specially because i can always cancel something to view an ad that happened not to be an ad, and false positives on my mail box!

hope it helps ;)

[[]]
_________________
Deprecated User: Check user "EinZteiN" for further contact! Thank you. :)
Back to top
View user's profile Send private message
z3ro
Apprentice
Apprentice


Joined: 16 Jun 2004
Posts: 261

PostPosted: Tue Nov 30, 2004 2:59 am    Post subject: Re: Image problems Reply with quote

Rheddry wrote:
nice of you bringing up a nearly 1 year thread! :twisted: :twisted:


Hey! He is helping someone, whats the problem! :roll:
Back to top
View user's profile Send private message
Rheddry
n00b
n00b


Joined: 30 Nov 2004
Posts: 4

PostPosted: Tue Nov 30, 2004 3:19 am    Post subject: Re: Image problems Reply with quote

Z3RO 0 wrote:
Rheddry wrote:
nice of you bringing up a nearly 1 year thread! :twisted: :twisted:


Hey! He is helping someone, whats the problem! :roll:



LOL i know!!
And it's great he did, like i did to giving my opinion on new forms of fighting ads and spam! =)

i just... had to say it! :p :twisted: :twisted: 8)
_________________
Deprecated User: Check user "EinZteiN" for further contact! Thank you. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum