• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 581
  • Last Modified:

Linux equivalent of Windows Hosts file

In http://www.experts-exchange.com/Miscellaneous/Lounge/Q_20676769.html, baldrick provided a nifty way to kill 98% of the ads and pop-ups you get online by remapping a long list of ad servers to 127.0.0.1 in your Hosts file in Windows.

Is there a comparable file in Linux?

Thanks.

-- b.r.t. (penguinista in training)
0
BarryTice
Asked:
BarryTice
1 Solution
 
Karl Heinz KremerCommented:
Yes: /etc/hosts - this is actually where Windows got the idea of a hosts file :-)
0
 
sunnycoderCommented:
Hi BarryTice,

/etc/hosts

Sunnycoder
0
 
sunnycoderCommented:
sorry khkremer ... didn't mean to dup you post ...

BarryTice, pls ignore my post
0
 
BarryTiceAuthor Commented:
Thanks, both. That's just what I needed.

-- b.r.t.
0
 
pbhjCommented:
Or use firefox (www.mozilla.org) with the "adblock" extension ... I'm finding this to be excellent. Not sure about the performance hits of either method. Keeping /etc/hosts up to date was always a hassle for me though.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now