Do you want to block a certain websites to prevent your kids from access to these sites?, or you want to block it because it has virus, Trojan or malware?, whatever the reason you want to block this site.
Of course there are many software that allow you to block some websites, but what if you wanted just to block one or two websites? installing software takes memory disks pace and CPU power making your computer more slower.
Instead of installing any additional software there is trick you can use to block certain website, in windows there is file called the Hosts files which is used to control mapping networks names
The hosts files is located in "C:\Windows\System32\drivers\etc" we are going to edit it to block certain websites
Note: make sure you backup copy of hosts files before you edit it
Right click on hosts file and choose open with then choose notepad
# Copyright (c) 1993-2006 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 host127.0.0.1 localhost
::1 localhost
No you need to know the ip of the website you want to block, you can go to http://www.domaintools.com/ and type website address and it will give you its ip
Alternative solution Open Command promot windows (start/run/cmd) and type tracert www.ssitename.com
and it will give you the site ip.
No you need to edit the hosts file ad add this line
127.0.0.1 blockedsite.com
replace blockedsite.com with the site name you want to block, save the hosts file, now let’s try it you will noticed when you try to visit this site you will automatically redirect to 127.0.0.1 and it’s address for local machine.
Repeat this steps when you want to block additional sites.









No Comment Received
Leave A Reply