Software to redirect URLs

  • Thread starter Thread starter Alexander Fischer
  • Start date Start date
A

Alexander Fischer

Hello,
I'm looking for a piece of software that I can install on my Win2000
computer. The purpose of this software - I guess it would be a Proxy or
something - shall be that http requests to certain pages/IPs get
redirected: When the user enters http://cnn.com into his browser, he
should be sent to "localhost" instead.

Is this possible? What do I need/what do I have to do?

Thank you,
Alex
 
Search for a file called HOSTS with no extension and read the brief details
in it using notepad... does that help?

This is probably not an anwser if you are considering this for security
reasons by the way.

Charlie
 
Thanks for your replies.

I can't just use the HOSTS file because I want to be able to change
those associations dynamically. A proxy server through which all http
connections are channeled, and which allows me to "switch on/off" the
redirection to localhost would be exactly what I need. However, most
proxy servers either don't offer this functionality, or I do not know
how to set it up....

Thanks again,
Alex
 
Well a simple answer would be to create two copies of the hosts file called
hosts.case1 and hosts.case2 and then have two batch files called case1.bat
and case2.bat.

Case1.bat would contain

copy [path]hosts.case1 [path]hosts

and case2.bat would contain

copy [path]hosts.case2 [path]hosts

Note I exaggerated the single space for clarity


Of course this contains no error checking and would not be the most secure
thing in the world, but if you simply want a quick way to manually flip
between two options it should be alright and all you would need is a desktop
shortcut for each .bat file.

If this is for different users you should be able to put a shortcut in the
user's startup programs.

I think this should work, my DOS batch commands are a bit rusty :)

Charlie
 
Back
Top