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)
LVL 7
BarryTiceAsked:
Who is Participating?
 
Karl Heinz KremerConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.