Nice little trick to block your sister, friend, girlfriend, dad, little brother (it does wonders if you block their favorite gaming sites, and watch them go nuts 🙂 ) from visiting a site and redirecting to some random website, or playing a nice prank on some non-computer savvy person.
For Xp Windows users:
Go to windows/system32/drivers/etc open the hosts file in it, with wordpad or notepad.
Add an entry at the bottom where it says :
What it will do is redirect the person from myspace website to ip “184.108.40.206” which is the ip for google.com , you can do this trick to any sites you want just keep adding them in the next successive lines.
For example add:
And now yahoo will open as google.com . It can be used a prank also, but I wouldn’t suggest it doing to your bosses computer, cause you will end up fired. And this can only be done if you are system administrator.
If you wish to redirect them to any other site of your liking go to
http://www.hcidata.co.uk/host2ip.htm enter the site you want them to be redirected to it will tell you the sites ip, enter that ip instead of “220.127.116.11” and you are set. Or if you do not want them to be redirected replace “18.104.22.168” with 127.0.0.1
Attached below is the example of how your final hosts file should look like :
# 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
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
# For example:
# 22.214.171.124 rhino.acme.com # source server
# 126.96.36.199 x.acme.com # x client host
Enjoy and happy browsing.