Guide How to block Web Sites without any Softwares

  • Thread starter Thread starter MysticYogi
  • Start date Start date
Steps

1] Browse C:\WINDOWS\system32\drivers\etc
2] Find the file named "HOSTS"
3] Open it in notepad
4] Under "127.0.0.1 localhost" Add 127.0.0.2 sitenameyouwantblocked.com , and that site will no longer be accessable.
5] Done!

-So-

127.0.0.1 localhost
127.0.0.2 www.blockedsite.com

- www.blockedsite.com is now unaccessable
For every site after that you want to add, just add "1" to the last number in the internal ip (127.0.0.2) and then the addy like before.

IE:
127.0.0.3 sms chat
127.0.0.4 sms chat
127.0.0.5 sms chat

This also works with banner sites, just find the host name of the server with the banners and do the same thing with that addy.

Hoep this small tutorial could keep you going in simple way of blocking websites. ;)
 
MysticYogi said:
Steps

1] Browse C:\WINDOWS\system32\drivers\etc
2] Find the file named "HOSTS"
3] Open it in notepad
4] Under "127.0.0.1 localhost" Add 127.0.0.2 sitenameyouwantblocked.com , and that site will no longer be accessable.
5] Done!

-So-

127.0.0.1 localhost
127.0.0.2 www.blockedsite.com

- www.blockedsite.com is now unaccessable
For every site after that you want to add, just add "1" to the last number in the internal ip (127.0.0.2) and then the addy like before.

IE:
127.0.0.3 sms chat
127.0.0.4 sms chat
127.0.0.5 sms chat

This also works with banner sites, just find the host name of the server with the banners and do the same thing with that addy.

Hoep this small tutorial could keep you going in simple way of blocking websites. ;)

This is not the proper way man ;). Hey all, if you want to block websites using simple method then below is the trick. Start from step 1 to step 3 as shown above. Then add the entries shown in the below example.

# 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

127.0.0.1 www.blocksite.com
127.0.0.1 blocksite.com

Notice the two different lines having the same domain name after the line '127.0.0.1 localhost'. This way we can totally block some simple websites. If we just enter the domain name like 'www.blocksite.com' in the hosts file the website can still be accessed just by removing the www. i.e. type 'blocksite.com' in the browser bar. It will load. Same is for reverse. Both lines having the same domain name (www.blocksite.com and blocksite.com) must exist in the hosts file. Otherwise this trick wont work.

This method is totally useless against IP address blocking. For eg. If the website Google has the IP as 209.85.147.147 and if we enter that in the hosts file, it just wont work. You have to type 'www.google.com' and google.com in the hosts file to block it (Type without quotes).

Hope this helps :). If anyone has queries or found some fault in what I told then inform me.

-GPMlore
 
Just checked OpenDNS. It is very good compared to website blocking using hosts file. Found another disadvantage of hosts file. If we add too many entries in the hosts file it will start eating up CPU resources. So +1 to OpenDNS.
 
it really worked buddy,thank you
clapping.gif
 
Back
Top