Some times it is necessary to block a particular website in our system but we can block a particular site in particular browser easily but blocking a site in all browser is some what skilly but it is easy by using this trick we can able to block the site in all browsers. To block site in all browsers we need to add the site to be block to the windows HOSTS file. Once you added site to this file the website will never opens it gives error like “Failed to Connect”.
The steps to block website in all browser by manually as follows :
- Go to “RUN“
- Type the following address in that (this is the address for the “HOST” file where it is located)C:\WINDOWS\SYSTEM32\DRIVERS\ETC {for Windows XP and Windows Vista}
C:\WINNT\SYSTEM32\DRIVERS\ETC
{for Win 2000}
C:\WINDOWS
{for Windows 98 and ME}
- Open it in NOTEPAD The default windows Host look 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
—————————
- To block a website in all browser add one more line below the line 127.0.0.1 as follows127.0.0.1 site to block ex: 127.0.0.1 www.youtube.com
127.0.0.1 http://www.youtube.com
This blocks the website youtube.com you can add any number of website to this list to block in all browsers
Save and exit
Open that website in any browser it will not open it will displays the error
Cannot find server or DNS Error saying: “The page cannot be displayed” or some other error as displayed in the image
0 comments:
Post a Comment