Skip to content
November 1, 2008 / technocrawl

How To Block Websties Without Thirdparty tools

Use this Trick to deny access or block access to websites without using any third party tools or
softwares, Just do the following…
[NOTE] –  Applies only for windows boxes.

1. We have already discussed about DNS Spoofing in the General Hacking Discussion, this works just
by tricking the hosts file found in the location ‘C:\WINDOWS\system32\drivers\etc\hosts’.
2. Open the Host file using a Notepad.
3. You will see something like this,

# 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

4. Say if you want to block access to http://www.google.com, after opening the hosts file, Just below the
line which says ‘127.0.0.1       localhost‘, add a line like this,

127.0.0.2  http://www.google.com

5. So when someone tries to access google.com, they will be directed to the localhost \\127.0.0.2,
and you can configure this with a warning message or what ever you wish.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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

%d bloggers like this: