You Are Here: Home » Linux » Networks » Tips & Tricks » Web » Windows » Windows 7

How-To block websites on your computer without use of any software?

By on February 18th, 2009     

website-blockedThere are commercially available softwares which will prevent access to websites you specify from your computer. But this can also be done on your computer without even spending a single penny.  We will show you how to do it absolutely for free:

1. Browse to C:\WINDOWS\system32\drivers\etc

2. Find the file named hosts (for linux users, this file is locate in the /etc/ directory. you could run a sudo nano /etc/hosts/ to edit the file)

3. Open it in notepad.

4. Under the line that says 127.0.0.1   localhost Add a new entry 127.0.0.2       <website to be blocked> and save the file.

5. The website will no longer be accessible.  (you might be required to restart your computer.)

For every site after that you want to be blocked, just add "1" to the last number in the internal ip (127.0.0.2) followed by the web address to be blocked, as shown below:
127.0.0.3         websiteO
127.0.0.4         website1
127.0.0.5         website2
.

.

127.0.0.33       website33  .... and so on.

Related Article: How-To get the real ip address of a visitor on your website?

Technorati Tags: , , ,




         Submit to Reddit     Stumble


Related Posts by Tags: , , , , , , , ,



  • B.

    I keep on trying to do this, but it wont work. on a previous website ive been on saying the same thing, it said ‘im assuming you have ‘. i have windows vista. is this whats causing it to not work? please post something for windows vista.

  • Joe Onzuka

    The fastest way to block website is to use BrowseControl (http://www.BrowseControl.com)

    Our company use it to manage our network. Quick and easy set up.

  • http://bit.ly/bJwmm quicksilver

    Ive been using http://bit.ly/bJwmma .
    It uses a better procedure than blocking social media sites because it only monitors websites during production hours. People/Employees still have the option to use it for a breather or during breaks really . Sometimes they use it for work too .

    For me its really unnecessary to block websites.



How-To block websites on your computer without use of any software? was originally published on Digitizor.com on February 18, 2009 - 8:27 am (Indian Standard Time)