Posted by: Saubhik | July 18, 2010

How To Block Websites

Use the host file…I’ll assume u have XP

C:\Windows\System32\Drivers\etc\hosts

Note: Below locations are for the typical default paths of hosts file:-
Windows Vista = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2K = C:\WINNT\SYSTEM32\DRIVERS\ETC

Once you have found the hosts file, right click it and select Properties. Uncheck the “Read-Only” attribute (if checked). Click OK.

Double click the ‘Hosts’ file and select “Notepad” from the list of programs to open it with.

Once you have the hosts file open in Notepad, you will see an entry such as:

Code:
# Copyright (c) 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:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

To block a certain web page from loading, add the following:

127.0.0.1 http://www.webpage.com

Your Hosts file will now look like this:

127.0.0.1 localhost
127.0.0.1 http://www.webpage.com
127.0.0.1 http://www.orkut.com

Add as many web addresses as you like in the same fashion.

Once you are finished, go up to ‘File’ and click ‘Save’.

The web pages listed in your ‘Hosts’ file should be blocked from access.

It may be necessary for you to reboot your computer for these changes to take effect.

Help Guide:-
========
Blocking Unwanted Parasites with a Hosts File

Advertisements

Responses

  1. Exelent


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: