HomeProjects & InfosCommodore16Bit ComputerCP/M ComputerCP/M Software
Detection of a virus 
Protect yourself 
Linux BootCDs 
Analyzing Tools 
Obvious Virus places 
EXE Types 
Display Driver Error 
Changing VGA cooler 
Outpost Distribution Tool 
Overclocking PIII 
Transfer service 
Flea market 
About Z80 
About me 


How to get a cheap (client side) failover for company (http) proxies

Facing the problem to implement a failsafe configuration for (http) proxy usage, but without spending a lot of money, I tried several Internet Explorer LAN setting variations. Unfortunately Microsoft did not really implement any kind of failover mechanism on client side to choose a second proxy server, if the first given address for downloading an automatic proxy configuration script fails (if this server is not reachable). Typically automatic proxy config scripts (PAC files) are used to set up rules for a proxy usage depending on DNS entries or IP addresses. Also, you can define a sequence of proxy server addresses which will be used in the given order (e.g. first server is tried, then the second one, and so on).
See also for examples the pages at ,

Also, the PAC file does NOT work, if the IE was not started. So at the time of firing up IE, the download address for the PAC file has to exist.

If you want to go the expensive way, just set up a DNS round robin scenario for each proxy server (so with one address more than one server is used).

If you want to go the cheap way, you have to use a kind of client side failover mechanism like I was implementing with the following program, written in Turbo Delphi Explorer (2006). I have to be a little bit clever because Turbo Delphi Explorer did not offer the ability to use additional components like Indy.

That's the idea behind it: Creating a wrapper / shell for the Internet Explorer.

I will offer the program in source code only, because you have to change two parameters also inside unit1.pas (if you are using the registry settings always, you do not need this, but...).
This program stores its own settings in HKEY_CURRENT_USER\Software\ProxyFailover and it changes the settings of IE in the branch HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings , so it does not really need administration rights at runtime also.
For an explanation how to preconfigure the program, please take a look into the .reg file within the ZIP file.

After preconfiguration is done (only one time), you can start the program like starting the original iexplore.exe - just click on it (it looks similar to the original IE, but the color is a bit changed).

The created proxyfailover.exe will start, depending on the registry settings, IE with the first download address for the PAC file, if the given http address works.
If not, the second one is used. IE can be preconfigured by changing also registry settings (see source code).

So it's an easy way to start IE everytime with a working download address for the PAC file, and the program will hide itself from the taskbar.

The program can be easily extended to use 3 download addresses if this is really necessary.

Here's the source code package with all needed files (even with the .ICO file):

Feel free to use the source within your own projects, but do not forget to mention me always if you do so (if you are using my code).

HomeProjects & InfosCommodore16Bit ComputerCP/M ComputerCP/M Software

Copyright (c) 2005-2014 Peter Dassow. All rights reserved. (remove NOSPAM. for a proper mail address)