Monday 28 January 2013

URL REDIRECTION and BLOCK WEBSITE


HOST FILE

The hosts file is a computer file used by an operating system to map host names to IP addresses. The hosts file is a plain text file, and is conventionally named hosts.
It’s location is c:\windows\system32\drivers\etc

It can be called a local DNS server it can be used for various purposes.
What can be done with host file
1.Blocking certain websites which contained bad things or whatever website u want to block like www.facebook.com
for blocking website just goto c:\windows\system32\drivers\etc
then u can see a file named hosts right click on that file and open it through notepad and then make entry in blank line in that hosts file
127.0.0.1 www.facebook.com
after making entry save ur file (ctrl+s).After editing ur hosts file looks like
2.Play with ur friends or someone to redirect most visited website into some embracing
website.  Facebook.com to playboy.com .For this we need the ip address of playboy.com to know ip address of any website just goto cmd prompt i,e goto run and type cmd and hit enter.
then cmd prompt open .use ping command to find ip address just type ping <websitename>
i,e, c:\>ping playboy.com
then u can get ip address of playboy.com just make a entry in hosts file first write ip of playboy.com then space then write www.facebook.com so whenever anyone type www.facebook.com then it will automatically redirected to playboy.com .

and then save ur file i,e, ctrl+s shortcut to save .so if you want to redirect google to facebook.com then justknow ip address of facebook through using ping facebook.com command and write ip address of facebook.com and space www.google.com in hosts file then when u open google then automatically facebook is open .to remove these setting just delete the entry which u make and then save ur hosts file.



No comments:

Post a Comment