Saturday, June 23, 2007

BLOCKING WEBSITES

wow
Its long before I posted. Sorry for I have been working on a very important project
 
I was to post on how to block websites from your computer.
If you want to protect your computer users from accessing some sites just do this:
open this directory
c:\windows\system32\drivers\etc
 
here you will find a file called "hosts." open the file in Notepad. (NB: its not the hosts.ics file)
Scroll down to the line that reads
 
127.0.0.1       localhost
Now we want to block a website called www.google.com
 just below the 127.0.0.1 line add this line
 
127.0.0.1    www.google.com
 
then save your file and exit. Go to your browser and try to visit the site.
 
NB: seperate 127.0.... and the site name with TAB
      Continue adding a single line for every website
 
what happens: The system tries to redirect the website to address 127.0.0.1 which is the IP address of each and every Windows PC with or without a NIC
 
Chao..

0 comments: