Blog Index

3.14.2010

How to Block A website in All Web Browsers

Following Method will work in XP, 2003 server and Vista.
1. First locate in which drive your system file are installed by default it is in C drive
2. In C Drive double click windows folder.
3. In windows folder there is system32 folder open that folder.
4. In system32 folder there is driver folder there is etc folder.


5. In etc there is host file open it in notepad.
In your Address bar it will show you C:\WINDOWS\system32\drivers\etc

After opening it will show you as follow
---------------------------------------------------------------------------------
# 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
---------------------------------------------------------------------------------
For example to block the website yahoo.com, simply type:
127.0.0.1 yahoo.com just below this line 127.0.0.1 localhost
So it will look like this
# 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 yahoo.com

After editing save the file.
To Open this file through command promt way is
1. Click start -> Run and paste this notepad c:/windows/system32/drivers/etc/hosts.
2. Edit the file as shown above and save it.
3. This will only work if your Operating System is installed in C drive. If its in other drive give that Drive letter

No comments:

Post a Comment