Block unwanted websites and ads without any software.
Posted on 10. Aug, 2006 by Sankaranand in Tutorials
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.












Deepak
Jan 10th, 2008
Dear sir/madam,
I have detected a file/folder on my pc named dc, sviq which cannot be deleted and which occurs my whole pc and cpu usage and my pc has become very slow. please suggest me what to do. sir i am in trouble. please send solution or any software name, website address to download to my address (astroavrc@rediffmail.com or dkhubli@yahoo.com or astroavrc@gmail.com).
Thanking you.
Yours faithfully,
Deepak K
Hubli
Karnataka
Gurvinder Singh
Apr 15th, 2008
Sir,
I have the problem to block any site. I am read the article from your site and trying but is doesn’t work. I am paste the link
127.0.0.1 orkut.com under the 127.0.0.1 Localhost.
but it didn’t work. Please Help me to block unwanted sites.
Thankx
Yours faithfully,
Gurvinder singh
From: Punjab