Solved

Info in Hosts file

Posted on 2007-11-22
6
1,430 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
Comment Utility
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
Comment Utility
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
Comment Utility
>>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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Closing Comment

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

Author Comment

by:jasonbournecia
Comment Utility
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
Comment Utility
>>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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
Ransomware continues to be a growing problem for both personal and business users alike and Antivirus companies are still struggling to find a reliable way to protect you from this dangerous threat.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

743 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

12 Experts available now in Live!

Get 1:1 Help Now