Home » Browsers, Internet

Block Websites on your Computer without any third-party Software

24 June 2009No Comment

There are lots of applications/softwares available which allows you to prevent access to websites from your computer. But if you do not want to spend any money, then you can do it manually by using the following procedure:

  1. Go to C:\Windows\system32\drivers\etc folder.
  2. Find the file named as hosts and open it in notepad [For Linux users, this file is located in the /etc/ directory. you could run a sudo nano /etc/hosts/ to edit the file].
  3. Under the line that says localhost, add a new entry    <website to be blocked> and save the file.
  4. For example, if you want to block “www.santabanta.com” website, then add an entry like this: www.santabanta.com
  5. For every website that you want to be blocked, just add “1” to the last number in the internal ip ( followed by the web address to be blocked, as shown below:         website0         website1         website2
    ..       website33  …. and so on.

I tested this procedure to block www.google.com website from my windows 7 operating system and it works. After adding entry for blocking Google website, my Firefox and IE browser shows a page like below:


Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.