Thursday, February 11, 2010

Trick to block websites in Mozilla Firefox,Opera and IE

You can easily and effectivily block access to a website by adding it to your Windows HOSTS file.(Yes, Hosts is capitalised for some strange reason). Without any software. Doesn't matter what browser that you use.

1.Go to your HOSTS file which is located at:
C:\WINDOWS\SYSTEM32\DRIVERS\ETC for windows Vista and XP
C:\WINDOWS for Windows 98 and ME

2. Open HOSTS with Notepad.

(but before this, make its backup in some other drive)

The default Windows HOSTS looks like this:

# Copyright © 1993-1999 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a "#" symbol.
# For example:
# # source server
# # x client host
# localhost

3. Directly under the line that says Localhost, you will want to type: name of the URL you want to block

For example to block the homepage (highly recommended!), simply type:

Other parts of MySpace could be blocked in a similar way:
etc etc etc...

You may need to add sites with both with and without the "www.". Test after blocking to make sure you got it right.

You can add as many sites as you wish to block in this fashion. I, myself, have over 12000 undesireable and dangerous sites in my personal HOSTS file!

4. Close Notepad and answer "Yes" when prompted.

5. Reboot your computer and attempt to access your now blocked website. You should see a Cannot find server or DNS Error saying: "The page cannot be displayed".


Post a Comment