Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Block Websites From Hosts File


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.


This post first appeared on Vnoma, please read the originial post: here

Share the post

Block Websites From Hosts File

×

Subscribe to Vnoma

Get updates delivered right to your inbox!

Thank you for your subscription

×