C > Windows > System 32 > drivers > etc

# 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

E.g.: 127.0.0.2 www.****.com

E.g.: 127.0.0.2. www.yahoo.com

If you want to block another website then type is as below.

127.0.0.3 www.****.com

127.0.0.4 www.****.com

127.0.0.5 www.****.com

127.0.0.6, 7, 8, 9, 10…….

In this post I’m going to explain about how to block websites easily without using any software. We have seen that most of the schools and computer institutions are using this way to block certain websites. If you are aware of this method, you can simply unblock the blocked websites using the way that I’m going to explain in this post.First you need to log to your computer as an administrator for do this. Otherwise you can log to a user account which is making as an administrator. In Windows 7, there's an option called "". Then follow the following path.Now open the hosts file using a note pad which is inside in the etc folder. Now you can see the followings.Now sites you want to block as a sentence below the localhost line and type the website which you want to block. Look at the following example.Like that you can type many number of websites which you want to blockby using the following format again and again.Now save this file. But if you not log as an administrator you cannot save the new changes to the file. In Windows 7, you can open the hosts file by right clicking and "Run as Administrator" command.If you want go to the recently blocked website using any of web browsers. I’m pretty sure you will not be allowed going to these websites.Also you can unblock the blocked websites using the same way backward. You just have to do is log to the computer as an administrator and erase the line of the blocked website by opening the hosts file with a note pad.Do this simple trick and enjoy and learn.