Redirect on certain URLs

Tag: windows Author: darice12345 Date: 2009-08-30

Hi I have a problem where I'm setting up an internet Kiosk in a public place and when a user goes to a certain URL I want it to redirect to another particular URL.

For example I want it setup so that if a user goes to I want the browser to automatically go to

The only restriction here is that it has to work on Windows due to hardware limitations.

Does anybody know how I could do this?


Thanks for the answers. I will go with the Browser Helper Object. I also found this FireFox addon - Redirector - -

Best Answer

A couple of ways to do it:

  • Implement a Browser Helper Object, catch the BeforeNavigate event, cancel the navigation and direct it somewhere else.

  • Use a specialized proxy server that responds to a request for the first URL by returning a redirect to the second, and passes all other requests through.


That is a top notch answer. +1

Other Answer1

You could try to modify the Hosts file. In Windows, I think it is found in WINDOWS/system32/drivers/.

It can be used to redirect a request for one IP address to another. Hope that's useful.