How we can block the sites in our computer
There is an easy way to block sites (though it doesn't involve any passwords)
Browse to the C:\WINDOWS\system32\drivers\etc directory
1. First backup the hosts file.
2. Right click -> select properties, and remove the Read-Only attribute
3. Use notepad to open the hosts file.
You'll find a line : 127.0.0.1 localhost
then press enter for a new line, and type the IP address 127.0.0.1 followed by the site you want to block.
E.G :
Code:
# 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
127.0.0.1 www.blocksite1.com #1st block site
127.0.0.1 www.blocksite2.com #2nd block site
5. Right click -> properties, reapply the read only attribute to the hosts file
Ohh and after doing this ... Start->Run-> type ipconfig /flushdns
Note :- This only stops the DNS lookup for that specified address. If you know the IP address by doing a WHOIS lookup through dnsstuff and find the IP address of that site then you can still directly visit that site by entering the IP address



0 Responses to "How we can block the sites in our computer"
Post a Comment