Contact Us

  • Call Now:+92-336-6234566 , +92-335-8023682
  • Sales Email:info@webhostinpakistan.com
  • Support Email:info@webhostinpakistan.com
  • Address Info:Office No. 38, Ground Floor, Stadium Road, Panorama center, Rawalpindi , Pakistan

Close Support

Support

How to make a link go to a different website of my choice?

  • 22
    Feb

How to make a link go to a different website of my choice?

Question by Neil: How to make a link go to a different website of my choice?
What I am trying to do is make a link from a site that I do not have administrative control over go to a different site that I choose. I want this to only happen on MY computer of course, is there any possible way to accomplish this? Ideally, the link would open up into a different picture and whether it opens in a new window/tab is of no issue to me.

Best answer:

Answer by Mantis
You can do what you are looking for. Mostly.

On your computer (assuming Windows here using defaults) in the folder %systemroot%\system32\drivers\etc there is a file called “hosts.” Open this file up in notepad and you redirect any domain to any IP address. For example,

127.0.0.1 google.com

This will send all google.com traffic from your machine to a web server running on your own machine (127.0.0.1 is the standard local address).

You could send all traffic from amazon.com to woot.com like this (You can usually get the IP address of a web site by using the ping command):

209.170.118.16 amazon.com

But if you’re following a link to, say, www.somesite.com\files\data\images\image.png, this trick will still keep the path. You’d need to create on your own local web page a \files\data\images\image.png for this to work.

Good luck.

Give your answer to this question below!

You May Also Like These Post

Comments are closed.