Solved

Linux equivalent of Windows Hosts file

Posted on 2004-04-03
5
556 Views
Last Modified: 2013-12-15
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
Comment
Question by:BarryTice
5 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 50 total points
ID: 10747547
Yes: /etc/hosts - this is actually where Windows got the idea of a hosts file :-)
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10747569
Hi BarryTice,

/etc/hosts

Sunnycoder
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10747570
sorry khkremer ... didn't mean to dup you post ...

BarryTice, pls ignore my post
0
 
LVL 7

Author Comment

by:BarryTice
ID: 10748033
Thanks, both. That's just what I needed.

-- b.r.t.
0
 
LVL 5

Expert Comment

by:pbhj
ID: 10859687
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question