LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-03-2004, 01:23 AM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
does the /etc/hosts file work same as the M$ hosts file?


title basicaly said it all. i want to know if i add a large list of spyware sites to my /etc/hosts file will that stop them from getting into my laptop like it does on M$ OS?
 
Old 04-03-2004, 01:30 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Usually you can add the site name and add the IP to be your localhost IP, 127.0.0.1.. which should work as I've done it to site before. Why would you be concerned about spyware sites in Linux though? They usually don't have the capabilities to install and or track you, etc when your using Linux..
 
Old 04-03-2004, 01:35 AM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
it also holds a rather large list of banner adds that to me are just ugly and detract from viewing the information i want to read.

not worried about spyware on Linux at all, or should i be?

and thank you very much for the answere. i so love learning new things.

this time i was even able to find the right hosts file without help. so getting better and whereis is my friend.
 
Old 04-03-2004, 01:37 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by Lleb_KCir
not worried about spyware on Linux at all, or should i be?
I'm not and never have been, never had a problem. I've never run a virus scanner either, even in Windows I didn't and have yet to get a virus in my 9 years of using computers.. hmmm..
 
Old 04-03-2004, 02:26 AM   #5
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by trickykid
I'm not and never have been, never had a problem. I've never run a virus scanner either, even in Windows I didn't and have yet to get a virus in my 9 years of using computers.. hmmm..
well as for M$ not getting a virus, you are just lucky. have lost count how many ive had to clean out thanks to my kids or wife.
 
Old 04-03-2004, 11:04 AM   #6
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
as for banners, mozilla-firefox has the ability to block any image coming from a different domain than what you're browsing.
 
Old 04-03-2004, 04:33 PM   #7
Rick485
Member
 
Registered: Sep 2003
Location: Arizona
Distribution: Kubuntu 8.04
Posts: 202

Rep: Reputation: 30
A few months ago I added a list of ad server URLs to my /etc/hosts file. I edited the hosts file to take the ad server URLs and redirect them to the 127.0.0.1 loopback address on my computer. I did that in the Red Hat 9 Linux hosts file and also in the Windows 2000 hosts file. Afterwards, only about half as many advertisements appeared on most webpages. That solution worked for both Linux and Windows. The missing advertisements now appear as empty rectangles. The telephone lines in my neighborhood are only good for about 26.4 K so with less advertisements the webpages load much more quickly. It made a big difference and the Internet is now much more useable at 26.4 K.

In the /etc directory there is not only the hosts file but also the hosts.allow file and the hosts.deny file. One linux user claimed that I could have just used the hosts.deny file to block those URLs instead of using the hosts file to divert them to the loopback address of my computer. I have not tried that so I do not know if it could be used instead or not. I found a list of what URLs to block on the Mike Skallas' Ad Blocking Hosts file website. He mainly talks about how to block the adds with Windows but he also describes how to do it with Linux/Unix. Here is his website:

http://www.everythingisnt.com/hosts.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hosts file? milesstandish Red Hat 2 11-02-2004 10:57 PM
PB with /etc/hosts file(s) ptreves Linux - Networking 0 09-10-2004 06:39 PM
/etc/hosts file plexi100 Linux - Newbie 4 10-16-2003 05:03 PM
/etc/hosts File Crashed_Again Linux - Newbie 7 02-01-2003 12:04 AM
Hosts.allow file skopje909 Linux - Security 3 11-16-2001 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration