?
Solved

Linux equivalent of Windows Hosts file

Posted on 2004-04-03
5
Medium Priority
?
568 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 200 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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