Wednesday, December 7, 2011

An Easy Way To Block Websites in Windows
Posted on
  • Wednesday, December 7, 2011
  • by
  • Unknown
  • , in
  • .
  • If you are a windows user, then you can block websites easily, just by editing a small filehosts-file-windows that resides in your Windows installation directory. The Hosts file is the simplest way you  can either block a website or redirect to some other website whenever someone visits the website.
    No matter which version of Windows you are using, you can access the Host file of Windows, by typing this command in the Run dialog box (Windows + R).
    %systemroot%\system32\drivers\etc\
    If you are using Windows XP, the open the hosts file with notepad. Upon opening, you will see something like this:
    127.0.0.1       localhost
    as the last line of the file. You can add the name of the website you would like to block by adding the line
    127.0.0.1       <the website address>.com
    In case you want to redirect a website URL to another website, you need to type the IP address of the website you would want to redirect to, instead of 127.0.0.1. Here is an example:
    209.85.175.132    google.com
    The above code will redirect all the requests to go to google.com to the IP address.
    [Note: If you want to find the IP address of a website, type “ping website.com” to get its IP.]

    For Windows Vista/7 users:

    If you use Windows Vista or Windows 7, you cannot easily modify the hosts file as windows will give you a “restricted access” error. To edit the file, you need to first open notepad, as an administrator, and then browse to the location of the hosts file and then edit it.

    Subscribe to more tutorials

    Your privacy is taken very seriously.
    Share article: | Subscribe to RSS:

    0 Responses to “An Easy Way To Block Websites in Windows”

    Post a Comment

    Modified Mash2 theme being used