Solved

Info in Hosts file

Posted on 2007-11-22
6
1,434 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

813 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

9 Experts available now in Live!

Get 1:1 Help Now