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.
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,
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):
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.
Give your answer to this question below!
Comments are closed.