?
Solved

Windows Host file to block Internet usage

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
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
Course of the Month14 days, 19 hours left to enroll

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