How to google when you try to yahoo ?

hosts
Hi i am sharing a simple trick here .

How to load a Google page when  you type in the URL of Yahoo ?? sounds interesting is it.
Very simple !

open the following file if you are using Windows XP : c:/windows/system32/drivers/etc/hosts
notepad is enough to view and edit that simple file (hosts).

just append the following lines to the end of that file

72.14.221.99  http://www.yahoo.com

here 72.14.221.99 refers to the IP address of Google.

So what happens exactly is that , when you type in the URL of Yahoo in your browser , that URL is mapped to the Google website by being looked up into this HOSTS file.

So what is this HOSTS file anyway ? What process is taking place behind the scenes ? Well you can an excellent 5 min tutorial on these subjects here .

note :
location of the hosts file

Linux/Unix (/etc/hosts)
Windows 3.1/95/98/ME (c:\windows\hosts)
Windows NT/2000/XP Pro (c:\winnt\system32\drivers\etc\hosts or c:\windows\system32\drivers\etc\hosts)
Windows XP Home (c:\windows\system32\drivers\etc\hosts)
Netware (SYS:ETC/HOSTS)
Apple  (System Folder:Preferences and in the System Folder itself.)


you can use this site to find the IP address of a site.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

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