Solved

Linux equivalent of Windows Hosts file

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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

707 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