Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows Host file to block Internet usage

Posted on 2013-05-30
4
Medium Priority
?
356 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
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…
Suggested Courses

609 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