搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Locking down Firefox Connection settings

  • 7 回覆
  • 4 有這個問題
  • 6 次檢視
  • 最近回覆由 cor-el

more options

Due to Google removing their support for IE8, I'm being forced down the road to look at an alternative Browser to support my users when connecting to Google tools.

Using IE I have locked down users to enforce them to use our cloud based web security using a PAC file and now need to use the same with firefox.

I've edited the registry with the PAC file but now want to effectivly grey out the options on the Connections setting page

I've read a few guides and tried them but they are all for older version of FF.

Can anyone out there point me in the right direction?

Due to Google removing their support for IE8, I'm being forced down the road to look at an alternative Browser to support my users when connecting to Google tools. Using IE I have locked down users to enforce them to use our cloud based web security using a PAC file and now need to use the same with firefox. I've edited the registry with the PAC file but now want to effectivly grey out the options on the Connections setting page I've read a few guides and tried them but they are all for older version of FF. Can anyone out there point me in the right direction?

所有回覆 (7)

more options

hello, the following guide should give a good first starting point on how to implement a lock on certain preferences: http://kb.mozillazine.org/Locking_preferences

more options

Marginllay related see /questions/963956 and this series of blogs mike.kaply.com/

more options

Its not so much the preferences but more the entire Connection settings.

Ive tried writing tests and adding to the .cfg but this doesnt change anything

more options

You may get an answer here but as i suggested in the other thread an alternative forum may be more likely to provide an answer.

more options

Did you create a local-settings.js that specifies to use the mozilla.cfg file?

Can you post the content of the mozilla.cfg file?

Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift

See:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes
more options

I think this has got a little more complicated than it needs to be.

All I want to do is to set the Tools>Options>Network>Settings menu to non-editable (greyed out)
more options

If you really want to prevent users from changing settings then the only way to achieve this is via a mozilla.cfg file.

It is not really that difficult.
You need to create to plain text files.

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift

The mozilla.cfg file to be located in the main Firefox program folder should contain these lines:

// mzila.cfg should start with a comment line
lockPref("network.proxy.type", 2);

See also: