Sharing insights on tech, life, food, education, and personal experiences.

Block unwanted websites and ads without any software.

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.


Comments

2 responses to “Block unwanted websites and ads without any software.”

  1. 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 ([email protected] or [email protected] or [email protected]).

    Thanking you.

    Yours faithfully,
    Deepak K
    Hubli
    Karnataka

  2. Gurvinder Singh avatar
    Gurvinder Singh

    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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.