Fedora Linux Support Community & Resources Center
  #1  
Old 16th January 2012, 05:33 AM
vonedaddy Offline
Registered User
 
Join Date: Oct 2007
Posts: 143
linuxchrome
Thumbs up Block annoying advertisements using your hosts file

I found this extremely useful, my web surfing is so much more enjoyable now!

http://www.putorius.net/2012/01/bloc...ements-on.html
Reply With Quote
  #2  
Old 16th January 2012, 06:19 AM
cclukins Offline
Registered User
 
Join Date: Feb 2008
Location: Colorado
Posts: 3
linuxchrome
Re: Block annoying advertisements using your hosts file

Nice, thanks for sharing that!
Reply With Quote
  #3  
Old 16th January 2012, 06:25 AM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,097
linuxfirefox
Re: Block annoying advertisements using your hosts file

adblock plus, ghostery, and noscript plugins work even better at the cost of some annoyance of having to manually allow some javascript that noscript blocks.
Reply With Quote
  #4  
Old 16th January 2012, 06:46 AM
vonedaddy Offline
Registered User
 
Join Date: Oct 2007
Posts: 143
linuxchrome
Re: Block annoying advertisements using your hosts file

Quote:
Originally Posted by marko View Post
adblock plus, ghostery, and noscript plugins work even better at the cost of some annoyance of having to manually allow some javascript that noscript blocks.
I agree this is not for everybody, but it does not need to be installed and doesnt take any resources. It does exactly what I need it to do.
Reply With Quote
  #5  
Old 16th January 2012, 06:58 AM
leigh123linux
Guest
 
Posts: n/a
linuxfirefox
Re: Block annoying advertisements using your hosts file

Quote:
Originally Posted by vonedaddy View Post
I found this extremely useful, my web surfing is so much more enjoyable now!

http://www.putorius.net/2012/01/bloc...ements-on.html
Post the content of the blog in post #1 otherwise I will move thread to general support as it only has linked content.
Reply With Quote
  #6  
Old 16th January 2012, 10:22 AM
leigh123linux
Guest
 
Posts: n/a
linuxfirefox
Re: Block annoying advertisements using your hosts file

Moved to Links
Reply With Quote
  #7  
Old 7th March 2012, 03:10 PM
finite9 Offline
Registered User
 
Join Date: Aug 2011
Posts: 15
windows_7firefox
Re: Block annoying advertisements using your hosts file

Can someone help me understand how this works? Let me clarify:

I update my hosts file with the mvps hosts file. I then run traceroute to verify that some bad domains really do go to 127.0.0.1.

But then, when I load Firefox and go to a website that I know links to some of these blocked domains, I can still see in Firefoxes stats bar that it tries to load the domain. Now, I do understand that it is probably just loading from 127.0.0.1, but it's quite slow... a lot slower than I expected.

I compare this to using NoScript: I re-instate a blank hosts file, install Noscript in firefox, and try to load a page, such as phoronix for example. Now the page loads lightning fast, and I don't even see that Firefox tries to load those blocked domains whatsoever: they never appear in Firefoxes status bar.

Am I observing two different things here or is using the hosts file just slower than using NoScript?

I thought that maybe NoScript was blocking Javascript and was therefore faster, but I have allowed the Phoronix domain, so it should be loading all javascript for that site.
Reply With Quote
  #8  
Old 13th March 2012, 12:41 AM
benbadge72 Offline
Registered User
 
Join Date: Mar 2012
Location: WV, USA
Posts: 3
linuxfirefox
Re: Block annoying advertisements using your hosts file

Quote:
Originally Posted by finite9 View Post
Can someone help me understand how this works? Let me clarify:

I update my hosts file with the mvps hosts file. I then run traceroute to verify that some bad domains really do go to 127.0.0.1

Am I observing two different things here or is using the hosts file just slower than using NoScript?

I thought that maybe NoScript was blocking Javascript and was therefore faster, but I have allowed the Phoronix domain, so it should be loading all javascript for that site.
From my understanding, a host file is quicker. You have it all in one easily adaptable place without reliance on external sources. Check back in on some of the sites providing hosts files once in a while, update accordingly.

May even be a possible cron job to run a script to download and update periodically. Although I would suggest using caution in doing that.

Carried this over from Ubuntu / Debian without any hitches. Was kind of chuckle to find in Fedora forums, as well. Was not really a surprise or news.
Reply With Quote
  #9  
Old 13th March 2012, 10:30 AM
finite9 Offline
Registered User
 
Join Date: Aug 2011
Posts: 15
windows_7firefox
Re: Block annoying advertisements using your hosts file

I didn't mention that this was on Windows 7 at work.

I got home, did the same thing on F16 (added hosts file) and it works just as fast as using noscript). The 'advantage' of using noscript is that when you use the Collusion plugin in Firefox, you don't see any links to ad domains. When you use a hosts file, you see the links to ad domains, but they're all going to localhost, which Collusion doesn't tell you.

As an aside, Windows 7 completely failed to work with the msvp hosts file at 7.5MB. I rebooted and Windows failed to even start. As soon as I removed the hosts file it worked fine.

I realised (again) after comparing Win7 to F16 that Linux is beautifully fast. Windows loads so much cruft it really does slow down the browsing experience.
Reply With Quote
Reply

Tags
advertisements, annoying, block, file, hosts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with hosts file Imad Servers & Networking 6 4th November 2007 08:01 AM
Using /etc/hosts.deny to block remote machine (Core4) nade Servers & Networking 8 15th February 2006 05:03 PM
Firefox and 100% CPU flash advertisements meslick Using Fedora 3 2nd April 2005 07:27 AM
Using /etc/hosts.deny to block one IP simply capnqwest Security and Privacy 5 31st January 2005 07:13 AM


Current GMT-time: 14:23 (Thursday, 27-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Billund Ariport Photos on Instagram - AZIMUT Hotel Vladivostok - Seoul , Korea Photos