Solved

Info in Hosts file

Posted on 2007-11-22
6
1,433 Views
Last Modified: 2013-11-15
Hi,
Why does Spybot fill your hosts file with hundreds of URLs?
Surely that's a big no no.
John
0
Comment
Question by:jasonbournecia
  • 3
  • 3
6 Comments
 
LVL 47

Expert Comment

by:rpggamergirl
ID: 20337290
Some pc users prefer to block unwanted sites using a hosts file, like using WinHelp2002 hosts, or Spybot S&D hosts.
http://www.mvps.org/winhelp2002/hosts.htm

You don't have to use Spybot S&D Hosts list, just remove it. I only use Spybot's immunize feature.
0
 

Author Comment

by:jasonbournecia
ID: 20339309
Thanks for your response rpggamergirl, I always thought the only address in the host file should be the local machine 127.0.0.1.
In the page you linked, it has the example 127.0.0.1 ad.doubleclick.net. In my naivety, I thought this would point your localhost at ad.doubleclick.net. Are you saying it doesnt?
John
0
 
LVL 47

Accepted Solution

by:
rpggamergirl earned 50 total points
ID: 20340773
>>In the page you linked, it has the example 127.0.0.1 ad.doubleclick.net. In my naivety, I thought this would point your localhost at ad.doubleclick.net. Are you saying it doesnt?<<

127.0.0.1 ad.doubleclick.net

No it doesn't, it means the site is blocked.
The above line in your hosts file means that as.doubleclick.net is blocked.
127.0.0.1 is your home address or a loop address, so any line in your hosts file preceeded with that loop address 127.0.0.1 will never connect to that site.

If you want to block a certain website using your hosts file just add a line in your hosts file after a 127.0.0.1 and save, as in --> 127.0.0.1 name of the site here


0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Closing Comment

by:jasonbournecia
ID: 31410575
Thanks rpggamergirl, something new to add to my tiny knowledge base
John
0
 

Author Comment

by:jasonbournecia
ID: 20356983
Thanks rpggamergirl, you've help tremendously. One last thing

Because the file says 127.0.0.1       localhost, if using 127.0.0.1 blahblah.website blocks blahblah,
how come 127.0.0.1  localhost doesnt block localhost from 127.0.0.1?
John
0
 
LVL 47

Expert Comment

by:rpggamergirl
ID: 20357305
>>how come 127.0.0.1  localhost doesnt block localhost from 127.0.0.1?<<

127.0.0.1 localhost
The above line means localhost is 127.0.0.1...when the hosts file is read, that line tells your pc that the localhost' numerical address is 127.0.0.1

So an entry like the one below always loops back to your pc(localhost).
127.0.0.1 badsite.com
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert 5 digit numbers to date 10 105
Zeus black pop up screen virus 7 64
Dentrix G4 1 47
Sophos Enterprise migration to Cloud? 2 49
This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
Viewers will learn how to use the Hootsuite Dashboard.

910 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

21 Experts available now in Live!

Get 1:1 Help Now