How do you block specific websites?

Associate
Joined
18 Oct 2002
Posts
835
Location
Solihull
Hi,
I have a need to block a couple of websites on my son's computer.
Please could you let me know how to do this without the computer asking for permission to access all websites via a password.
So if he logs onto the specific site there is no access but all other sites are fine.
The computer runs XP.

Thank you for your help,
PeterT
 
If it is just a couple of sites that you need to block, the easiest way is to put an entry into the host file on the PC which points those sites to 127.0.0.1. What OS version is the PC running?
 
Hi,
The computer is running XP with Sp 3 and internet explorer 7.
Any easy to follow instructions would be great!!

PeterT
 
Go to the folder C:\Windows\system32\drivers\etc, and you'll find a file called "hosts" (no extension). Right-click on it, select "Properties" and make sure the "read only" attribute is cleared, then right-click it again, open with Notepad, and for each site you want to block add the line 127.0.0.1 followed by the web address (it's pretty self-explanatory, and should look something like this):

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
# Start of entries inserted by Spybot - Search & Destroy
127.0.0.1 www.007guard.com
127.0.0.1 007guard.com
127.0.0.1 008i.com
127.0.0.1 www.008k.com
127.0.0.1 008k.com


Save and exit Notepad, and you're done.

I can't recall if you need to use a full administrator account to save the modified hosts file in XP (you certainly do in Vista) - if so, find Notepad in the start menu, right-click on the icon and choose to run as administrator, then navigate to the hosts file in the location as above. :)
 
Last edited:
You could if you were using a proxy but that would be overkill.

Hosts files is easiest if you have a router some come with categories that you could potentially block as well - may well be worth looking into.

Other than that parental controls / safesurf is another good option.



M.
 
Back
Top Bottom