Solved

Windows Host file to block Internet usage

Posted on 2013-05-30
4
344 Views
Last Modified: 2013-06-12
How can I use the Host file for windows:

C:\windows\system32\drivers\etc    to block someone from using the internet at all or at the very least a few websites.  I opened the file and tried to edit within notepad and added the following however I can still access the websites.

#      127.0.0.1       localhost
#      ::1             localhost

127.0.0.1       www.bing.com
127.0.0.1       www.msn.com
127.0.0.1       www.yahoo.com
127.0.0.1       www.google.com
0
Comment
Question by:Twhite0909
4 Comments
 
LVL 57

Expert Comment

by:Pete Long
Comment Utility
did you flush the dns cache?

ipconfig /flushdns
0
 
LVL 23

Expert Comment

by:tailoreddigital
Comment Utility
0
 
LVL 26

Expert Comment

by:pony10us
Comment Utility
Sorry to ask the obvious but sometimes it's the little things that get forgotten.

1. When you saved the file did you make sure that it didn't save with an extension?

2. flush DNS like PeteLong suggests

3. Disable and enable IPv4 and IPv6
0
 
LVL 50

Accepted Solution

by:
jcimarron earned 500 total points
Comment Utility
Twhite0909--
To block a few sites:
Delete the # in front of both
 127.0.0.1       localhost
and
  ::1             localhost

The HOSTS file would NOT be a good way to block all sites.  

If your objective is to block access to all sites you can use a Proxy Server ( IE Tools|Internet Options|Connections tab|LAN Settings) .
Or do not use an internet connection.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The Display applet of Windows 7 Control Panel has changed a great deal since Windows XP  (it was missing and more or less replaced in Windows Vista by the Personalization applet.)  Below is a screenshot of what the Display applet of Windows XP, whic…
I hope this helps those who have been battling the SanDisk / U3 problem for a while. For anyone that is running Windows 7 64bit and is receiving and searching the internet for the “Windows Error: Windows has allocated a drive letter to the U3 dri…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now