Solved

Windows Host file to block Internet usage

Posted on 2013-05-30
4
350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 57

Expert Comment

by:Pete Long
ID: 39208456
did you flush the dns cache?

ipconfig /flushdns
0
 
LVL 23

Expert Comment

by:tailoreddigital
ID: 39208464
0
 
LVL 26

Expert Comment

by:pony10us
ID: 39208587
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
ID: 39208833
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hi Friends, These registry tweaks will help you optimizing your Windows 7 system for any VDI. This will improve the machine performanance and can be used on normal systems also. These are few registry tweaks which will add value by enhancing the …
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

756 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