Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firefox proxy settings via command line

How do I change Firefox Proxy settings via command line on windows xp/2k?

Thanks

like image 526
bluegene Avatar asked May 09 '09 13:05

bluegene


People also ask

How can I see proxy settings in CMD?

Click Start, click Run, type cmd, and then click OK. At the command prompt, type netsh winhttp show proxy, and then press ENTER.

Where are Firefox proxy settings stored?

The proxy setting is stored in the user's prefs. js file in their Firefox profile. where " 7b9ja6xv " is a random string. However, the directory of the default profile always ends in ".

How do I use Firefox command line?

You can open the command line interface by pressing Shift+F2.


1 Answers

The proxy setting is stored in the user's prefs.js file in their Firefox profile.

The path to the Firefox profile directory and the file is:

%APPDATA%\Mozilla\Firefox\Profiles\7b9ja6xv.default\prefs.js

where "7b9ja6xv" is a random string. However, the directory of the default profile always ends in ".default". Most of the time there will be only one profile anyway.

Setting you are after are named "network.proxy.http" and "network.proxy.http_port".

Now it depends on what technology you are able/prepared to use to change the file.

P.S.: If this is about changing the proxy settings of a group of users via the logon script or similar, I recommend looking into the possibility of using the automatic proxy discovery (WPAD) mechanism. You would never have to change proxy configuration on a user machine again.

like image 83
Tomalak Avatar answered Sep 20 '22 14:09

Tomalak