Solved

Windows Host file to block Internet usage

Posted on 2013-05-30
4
352 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

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

First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
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 give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

729 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