Solved

Linux equivalent of Windows Hosts file

Posted on 2004-04-03
5
554 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
i can not do linux commands in cygwin windows 10 6 60
What language/protocol is the Angular Chat? 2 56
High Available Storage based on linux 6 68
CentOS 7 Installation 7 58
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now