How to block websites?

Wednesday, July 6, 2011 , Posted by Anugrah Narain at 11:26 PM



Trick :- how to block website using host file.

what is hosts file?



The host file contains Domain Name and IP address associated with them.  Your host file will be in this path:

C:\Windows\System32\drivers\etc\

Whenever we enter the Domainname or URL (for eg: www.webaddress.com), a query will be send to the DNS (Domain Name server).  This DNSconnect to the IP address whichis associated with the Domain Name.   But before this to be done, the host file in our system will check for the IP address associated with the Domain Name.

block websites
let us assume the website that you want to block is www.facebook.com.

1. Open the hosts file with notepad.
2.type 127.0.0.1 www.facebook.com below the 127.0.0.1 localhost
3.save the file.
4. open Mozilla, type www.facebook.com
and hit enter. Now it will show page not found so user can not access the facebook.com

Currently have 0 comments:

Leave a Reply

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Check Page Rank of your Web site pages instantly:

Free automatic backlinks