LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Tags used in this thread
Popular LQ Tags , , , , , , , ,

Reply
 
Thread Tools
Old 06-11-2009, 02:10 AM   #16
BslBryan
LQ Newbie
 
Registered: May 2009
Distribution: Ubuntu
Posts: 3
Thanked: 1

Original Poster

[Log in to get rid of this advertisement]
Wow, I didn't mean to start a flame war. Sorry, guys!

Thanks, Ruler2112 for your kind words, and to everyone else, yeah, there are certainly easier ways to block ads. I just found this hosts file and thought it was neat.

I might add in a little disclaimer that it's only for knowledge. I'm not recommending this tutorial, because there really are simpler ways of doing this, but there certainly isn't any harm in posting it here, or even following the steps.

Also, some people might find this comes in useful if they are using a very new, unstable browser that has no add-ons, etc.

EDIT: Just realized that the link to the hosts file has been modded out.
Anyway, thanks for reading, and I'm glad most of you seemed to enjoy it. I suppose it really is worthless now.

Last edited by BslBryan; 06-11-2009 at 02:16 AM..
BslBryan is offline     Reply With Quote
Old 06-11-2009, 12:13 PM   #17
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: Debian Lenny / Squeeze / Sid
Posts: 7,213
Blog Entries: 5
Thanked: 246
Since Adblock was mentioned I'll throw in that the Untangle Gateway has adblock now, so it can do ad blocking for your entire network while it's sitting at the gateway. Plus all the other nifty features of the UTM device..
farslayer is offline     Reply With Quote
Old 06-16-2009, 03:02 AM   #18
BeacoN
Member
 
Registered: Nov 2008
Distribution: Linux Mint
Posts: 35
Thanked: 1
cool

I'm definitely one for knowing how to do something. many ways. This is yet another way to blacklist ip addresses from toturing you. Thanks for the post!
BeacoN is offline     Reply With Quote
Old 06-25-2009, 05:11 AM   #19
nowonmai
Member
 
Registered: Jun 2003
Posts: 380
Thanked: 17
Quote:
Originally Posted by pwc101 View Post
My understanding is having a huge hosts file slows down address lookups since every time you enter an address, your browser has to scan through 15,000 lines before realising www.google.com isn't a dodgy address. I may be wrong on this, but that is my understanding.
Not really... name lookups will have to do this anyhow for new domain names. For other, cacheable names, the browser will remember. For non cacheables (ads for instance) it will have to do the lookup every time, either in the hosts file or via DNS.
nowonmai is offline     Reply With Quote
Old 06-25-2009, 05:14 AM   #20
nowonmai
Member
 
Registered: Jun 2003
Posts: 380
Thanked: 17
Quote:
Originally Posted by BslBryan View Post
I just found this hosts file and thought it was neat.
And you're right, it is...

I, for one, am not a fan of loading layer upon layer of software on my network stack and/or browser. I really have no interest in privoxy, adblock and so on... they cause sluggishness, IMO.

This, simple, lightweight addition gives many of the benefits with little of the bloat.

Last edited by nowonmai; 06-25-2009 at 05:20 AM..
nowonmai is offline     Reply With Quote
Old 06-25-2009, 05:32 AM   #21
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 6,739
Blog Entries: 2
Thanked: 216
Quote:
Originally Posted by nowonmai View Post
And you're right, it is...

I, for one, am not a fan of loading layer upon layer of software on my network stack and/or browser. I really have no interest in privoxy, adblock and so on... they cause sluggishness, IMO.

This, simple, lightweight addition gives many of the benefits with little of the bloat.
I'm betting a hosts file is a lot slower actually.
H_TeXMeX_H is offline     Reply With Quote
Old 06-25-2009, 06:21 AM   #22
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,718
Blog Entries: 30
Thanked: 285
Quote:
Originally Posted by nowonmai View Post
This, simple, lightweight addition gives many of the benefits with little of the bloat.
Since you say "gives many of the benefits" please explain how you would do this / block these using only your precious "simple, lightweight addition":
- incrementally update your blocklist,
- block ad-tracking cookies (for those using Firefox have a look at the www.ghostery.com plugin),
- block in-page ads residing in a path on the same server you visit,
- block ads from a hostname of which the domainname is the same as the server you visit,
- block ads presented through Javascript or Flash,
- block ads by host or path substring match,
- block only webbugs (you know, those tiny 1 pixel transparent images),
- set session-only cookies for a range of sites,
- selectively block popups, refresh-tags and redirects,
- keep images with specific sizes from displaying,
- block visiting domains based on content (like those parked sites).
Well, actually you don't need to try because you can't.
As such your "many of the benefits with little of the bloat" phrase can not based on reading (and actually understanding) what's been said in this thread already.


Also it turned out that the owner of the site where the hosts file resided is one of the Ubuntu people. That particular "hosts tutorial" got plastered over several web logs in the month it got posted here. Since this is not some radically new idea and the site owner does not make clear the content is not his but originates from mvps.org it must have been done purely for promotional purposes. He should have either linked to it or made clear it's not his work. File under plagiarism.

Last edited by unSpawn; 06-25-2009 at 06:37 AM.. Reason: more *is* more.
unSpawn is offline     Reply With Quote
Old 06-25-2009, 06:40 AM   #23
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,718
Blog Entries: 30
Thanked: 285
...and since this isn't about Linux Security I'll move it elsewhere.
unSpawn is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux: Which internet/web browser do you use and favour ? frenchn00b General 33 11-08-2008 05:59 AM
Unable to access internet thru web browser corbis_demon General 3 10-22-2006 05:46 AM
Internet connection problem, able to ping but unable to get web page in browser rajnishmishra Linux - Networking 13 07-15-2004 01:54 AM
Emptying Internet cache under Konqueror web browser piggysmile Linux - Software 2 05-25-2004 05:31 AM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration