This is a simple step by editing a host file. Although many of them know this trick yet its not popular among public. Ok Lets come to the main part, you can ask me how do one block a website without any software.
The mappings of IP address is contained in Host file. Generally Host file is located in %SystemRoot%\system32\drivers\etc\hosts in windows xp where %Systemroot% is the default root directy that will usually be c: etc. To know more about host file and its location visit Wikepedia. Ok lets talk about how it works .
You can use a host file not only to block website but also to block unwanted ads, banners,etc. Generally a host file contains like this
127.0.0.1 localhost
To block a site just enter the webaddress name after the localserver in the host file located in windows/system 32/drivers/etc, see example below
127.0.0.1 localhost
127.0.0.1 badwebsite1.com
127.0.0.1 badwebsite2.com
Make sure you type the above code without living any line after localhost. Before editing the host file make a backup of it.
Leave a Reply