Friday, February 11, 2011

How to spoof a domain a domain name on your localhost

Hi,
Some time we need to check the live code on our local host and there are many API calls which works only on verified domains names, and when you run the same code on your localhost, those calls fails.

So there is an alternative to that. You can change the localhost name to original verified domain name. Thats called domain spoofing.

To do that, Just find the hosts file in your windows directory. Usually its available at following location

C:\WINDOWS\system32\drivers\etc\host

Open this file, you will see an entry for localhost, change localhost name to domain name you want to spoof.

Easy ... Right...

No comments:

Post a Comment