Friday, January 09, 2009

Block Websites From Hosts File

4


Some hackers use this way to stop updates of there software which they have activated through fake keys and they know that updating it will be dangerous and the website will catch the fake key or activation.But there is a host file in your windows folder which deactivates the website in your browser.


Block Website Url's With Hosts File

Go To C Drive- Windows- System 32- Drivers - etc- Hosts

Open Hosts file with Note Pad and it will something like this

# Copyright (c) 1993-2006 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


Now the Url or website that you need to block Suppose http://www.example.com . You just add the website with 127.0.0.1 and this ip and website must have a single space between it or more.


# Copyright (c) 1993-2006 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 http://example.com

Now Save the file and than try to open it in your browser. If it doesn'nt open. Than its Succes.

Trouble Shoot In Windows Vista

You will have problem in saving the hosts file after editing in windows Vista. You may use the Hosts Xpert
to this job for you.

4 comments:

nice info..
Amm, i couldnt help it notice about your new blog and your posts at labnol.org.

i got a question, have you applied for adsense in recent times?

No it has been 3 months but i haven't used Adsense Ads till now..

dude.. you doing good work.. and best part.. u have started to get some traffic too.

Yea, i dont think adsense is approving until the blogs' atleast six months old.. my site: imandroid.org has been around only 2.5months.

Post a Comment