Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 16 Sep 2014, 23:37
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
[HowTo] Block ads on all browsers
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1906
Location: Israel, somewhere in the beautiful desert

PostPosted: Mon 02 Aug 2010, 04:07    Post subject:  [HowTo] Block ads on all browsers
Subject description: The easiest way to block all ads
 

This is the easiest and most efficient method to block all ads for all browsers. Your browser won't even download the ads, so you save time, nerves and bandwidth.

The trick is simple, it redirects the addresses of ad services to your own computer's address.

1) Go to http://pgl.yoyo.org/as
2) Select “host --in hosts file format” and click “go”.



3) Select all the lines that begin with 127.0.0.1.



4) Open /etc/hosts with a text editor and paste them after the file’s current content.



5) Reboot.

Two notes:
- If you find any other site with ads, add it to the list.
- Update the ad sites list once in a while. Just delete all the lines you pasted last time and put the new ones.

Cheers Wink

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Mon 02 Aug 2010, 07:09    Post subject:  

Thanks for sharing this tip Smile
Back to top
View user's profile Send private message 
don922

Joined: 19 Jan 2008
Posts: 380
Location: The land of 14" monitors

PostPosted: Tue 03 Aug 2010, 04:41    Post subject: How did you make the 1st post in this thread?  

I have made the addition to /ect/hosts that you described above. It seems to be working -- Thank You.

How did you make the first post in this thread, ie., where the graphics are part of the original post; not part of an attachment.

This makes a much nicer and more understandable presentation.

_________________
Don -- Thailand

Back to top
View user's profile Send private message 
CatDude


Joined: 03 Jan 2007
Posts: 1473
Location: UK

PostPosted: Tue 03 Aug 2010, 11:57    Post subject:  

Hello don922

don922 wrote:
How did you make the first post in this thread, ie., where the graphics are part of the original post; not part of an attachment.

This makes a much nicer and more understandable presentation.


If you are logged in (on the forum), click on the Quote button in Iguleder's post,
and you will see how it is done.

Basically all you do is,
upload your images somewhere (tinypic.com in Iguleder's case),
then, using the links provided when you uploaded your images, insert them in the appropriate place in your post.

CatDude
.

_________________

Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Tue 03 Aug 2010, 12:42    Post subject:  

Could I take the lists of addresses in PeerBlock and add them (in the correct format of course) to the host file?

That would be lovely, don't know why it never occured to me before..
But maybe someone else does, so thought I'd just ask..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
chrismt


Joined: 21 Apr 2010
Posts: 255

PostPosted: Tue 03 Aug 2010, 16:29    Post subject:  

@ Iguleder

These hosts are updated frequently and there are a lot of hosts which not only block ads but also malware Very Happy

Like

Cameleon

* Site: http://sysctl.org/cameleon/
* Source: http://sysctl.org/cameleon/hosts


hpHosts

* Site: http://www.hosts-file.net/
* Source: http://support.it-mate.co.uk/downloads/hphosts.zip
* Mirror: http://hphosts.gt500.org/hosts.zip


hpHosts (Ad and tracking servers only)

* Source: http://www.hosts-file.net/ad_servers.asp
* Mirror: http://updates.it-mate.co.uk/hphosts/ad_servers.asp


hpHosts (Partial)

* Source: http://www.hosts-file.net/hphosts-partial.asp
* Updated: Frequently
* Mirror: http://updates.it-mate.co.uk/updates.asp


MVPS Hosts

* Site: http://www.mvps.org/winhelp2002/hosts.htm
* Source: http://www.mvps.org/winhelp2002/hosts.zip


I wish someone create a small tool which does this automatically and checks for updates every time I launch that app

It would be time consuming to update these hosts by hand
Back to top
View user's profile Send private message 
Shel

Joined: 11 Apr 2009
Posts: 103
Location: Seattle, WA, USA, or Southern France

PostPosted: Tue 03 Aug 2010, 17:20    Post subject:  

Absolutely the best way to do this sort of blocking is to run your own DNS server and have the updates applied automatically to the appropriate zone files by a script run by a cron job. As far as machines on your LAN are concerned, you become the "authoritative" DNS server for all those advertisingh/malware domains, and you can redirect all attempts to contact them to 127.0.0.1 or 0.0.0.0 or even your own webserver.

This has the additional advantage of making the updated information available automatically and transparently to any machine on your network.

-Shel
Back to top
View user's profile Send private message 
Ibidem

Joined: 25 May 2010
Posts: 489
Location: State of Jefferson

PostPosted: Thu 02 Dec 2010, 01:29    Post subject:  

I advise you to make sure that the file saves as text:
Code:
wget \
http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext
file serverlist.ph*
#if text, just copy to /etc/hosts:

I break so noone copies too much:
Code:
#IF NOT HTML:
cat serverlist.ph*|grep ^127\\.0\\.0\\.1>>/etc/hosts

Basically, I just checked the "plain text" box and copied the URL.
Grep sorts out all lines beginning (^) with 127.0.0.1 (\\. is a literal period, as . or \. matches any character); this is appended to /etc/hosts.
NOTE that this hasn't been tried!

Same method might work with others.
Back to top
View user's profile Send private message 
don922

Joined: 19 Jan 2008
Posts: 380
Location: The land of 14" monitors

PostPosted: Tue 15 Mar 2011, 08:57    Post subject: Doesn't seem to work in Wary 5.0  

I have used this method of blocking ads in Puppy 4.0, Puppy 4.12, Puppy 214X and have not had a problem. Seems to work great.

However, I have tried to use it in Wary 5.0 and it doesn't seem to work.

I have used it with firefox browsers either FirePup (firefox 1.5.0.12) or FireFox 3.5.9.

What can I do to make the host file blocking work in Wary?

_________________
Don -- Thailand

Back to top
View user's profile Send private message 
shadower_sc

Joined: 21 Apr 2010
Posts: 129
Location: Texas

PostPosted: Fri 18 Mar 2011, 13:40    Post subject: Flashblock
Subject description: Flashblock blocks Flash and allows for easy play of useful items.
 

I use the Firefox Add-On Flashblock. It blocks all Flash content from playing and gives you a nice little Flash icon to click on, if you need to play the item. This way I skip all the Flash Ads. Smile You can also add a site to the Flashblock Whitelist, if you do not want it to block Flash on that site. I think you have to restart Firefox for the changes to the Whitelist to take effect.
Back to top
View user's profile Send private message 
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Fri 18 Mar 2011, 17:11    Post subject:  

Mostly I use SeaMonkey with the Firefox/SeaMonkey addon called Prefbar. With a mouse click you can individually disable flash, animation, JavaScript and/or images. It also has a easy UserAgent changer for those sites that insist on IE. I also use AdBlock Plus that works quite well.

I use a DNS service that “censors” malware and other harmful sites. Right now I'm using the free version of OpenDNS, but there are dozens of others. To use OpenDNS just change your DNS to 208.67.222.222 and 208.67.220.220. This works with all browsers.
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Fri 18 Mar 2011, 17:35    Post subject:  

Crazy question. (Edit: Ooops forgot to thank Iguleder for excellent presentation)

Would not the ad firms know if we do such things?

Them getting ravingly mad at us and getting back on us using persistent cookies somethign and sneaking in the backdoor. I mean these people do pay for total access to our buying habits Smile

Sure I tease a bit but I am dead serious too. If they are so nasty that they produce persistent cookies on some 8 to 11 places hard to find on the HDD then they would collect instances of such tricks we do here and them come up with even more nasty circumvention to win the war we escalate on them.

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Fri 18 Mar 2011, 18:11    Post subject:  

nooby wrote:
Crazy question. (Edit: Ooops forgot to thank Iguleder for excellent presentation)

Would not the ad firms know if we do such things?

Them getting ravingly mad at us and getting back on us using persistent cookies somethign and sneaking in the backdoor. I mean these people do pay for total access to our buying habits Smile

Sure I tease a bit but I am dead serious too. If they are so nasty that they produce persistent cookies on some 8 to 11 places hard to find on the HDD then they would collect instances of such tricks we do here and them come up with even more nasty circumvention to win the war we escalate on them.
they want consumers that are interested in their commercial product, so some may actually be thankful depending on how the ad revenues are set up besides we are less than 1% of the market share ... sometimes its nice to be invisible. also it would cost them $ to change strategies, while all we would need to do is add another line to a text file (for free)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Fri 18 Mar 2011, 20:44    Post subject:  

technosaurus wrote:

they want consumers that are interested in their commercial product, so some may actually be thankful depending on how the ad revenues are set up besides we are less than 1% of the market share ... sometimes its nice to be invisible. also it would cost them $ to change strategies, while all we would need to do is add another line to a text file (for free)

It's not just Linux -- I blocked ads and most cookies for years in Windows. Adblock is available for Firefox (PC) and Safari (Mac) plus Opera has its own ad blocking extension. I imagine the majority of web surfers block ads. Advertisers know that 99% of viewers don’t look at their ads but to make money they only need one out of a hundred thousand to take the bait and click.
Back to top
View user's profile Send private message 
Luluc


Joined: 16 Mar 2011
Posts: 200

PostPosted: Sat 19 Mar 2011, 01:43    Post subject:  

I always handled that problem with Privoxy. Is there a Puppy package for Privoxy? But anyway, the hosts file tweak is a good option too.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0927s ][ Queries: 12 (0.0047s) ][ GZIP on ]