View Full Version: IP + URL rules

FoxyProxy > Help and Support > IP + URL rules


Title: IP + URL rules
Description: Setting FoxyProxy to choose what proxy t


Andi - February 7, 2008 01:37 AM (GMT)
Hi.
I have to use different proxies depending if I'm at work or at home. I use Toshiba's ConfigFree (a useful program) to switch all the system parameters (IP, DNS, gateway, etc.), but it can't handle FireFox. I could use PAC to solve this, but when I'm at work I must use yet a different proxy to acces some specific sites.
Now I'm manually switching foxyproxy between a fixed proxy at home and a pattern-and-priority-based selection when I'm at my workplace, but I would like this to change automatically. ConfigFree can be set to run a program after each switch, but I don't know what file or registry item to change to set foxyproxy to use a different proxy (ie: to change programatically the proxy).
If someone can help me with this, I should be able to make the program myself.

Thanks in advance!

Eric H. Jung - February 8, 2008 05:35 PM (GMT)
Hello Andi,

The file which contains the active proxy name (and all other settings) is foxyproxy.xml. The location of that file is dictated by what you've selected in FoxyProxy's options dialog (Global Settings tab->Settings Storage Location). By default, it's the Firefox profile directory.

The root XML node of that file is <foxyproxy/>. The attribute named mode contains the value of which proxy is active. Its value can be disabled, patterns, or the ID of one of the <proxy/> nodes in the file (this means that proxy is used for all requests regardless of patterns).

So you'll want to write a program that:

1. Closes firefox
2. Edits this file
3. Starts firefox

Good luck! Perhaps you can share with us what you write... I can post it to http://foxyproxy.mozdev.org if you like

Eric

p.s. where can I download this "ConfigFree" to try?




* Hosted for free by InvisionFree