搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Is there a way to password protect the access options pannel, in particular the Connection Settings?

  • 4 个回答
  • 4 人有此问题
  • 1 次查看
  • 最后回复者为 daveada

more options

Is there a way that access to the Options panel can be locked by an administrator. In particular I would like to block a user from being able to change the proxy server settings in Tools > Options > Advanced > Network > Connection Settings. I would like to be able to lock the settings to (Use system proxy settings). The OS is windows 7 standard user account controlled by a windows small business server 2008.

Is there a way that access to the Options panel can be locked by an administrator. In particular I would like to block a user from being able to change the proxy server settings in Tools > Options > Advanced > Network > Connection Settings. I would like to be able to lock the settings to (Use system proxy settings). The OS is windows 7 standard user account controlled by a windows small business server 2008.

被采纳的解决方案

If you get the Failed to read error then that means that there is a problem with the mozilla.cfg file or Firefox doesn't find the file as you may have created mozilla.cfg.txt in case you saved the file as a text file (check the type in the Properties via the right-click context menu to see if it is a CFG file).
The mozilla.cfg file should be in the main Firefox program folder where also the firefox.exe file is located.

You should have at least two lines in mozilla.cfg.
The first line should always be a comment (//) because this line is skipped.
The value of the pref depends on what you want to use for the connection settings, for use system proxy settings use 5.

//
lockPref("network.proxy.type", 5);
定位到答案原位置 👍 2

所有回复 (4)

more options

You can lock the related network.http prefs to prevent users from changing the settings.
That will only make it impossible to change the prefs on the about:config page directly.


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");

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

Hi Thanks for the reply, however I have still not managed to lock the settings: Tools-Options-Advanced-Network-Connection Settings - and lock the settings to “use system proxy settings”. I have created a file: local-settings.js – local-settings.js is located in the same folder as the channel-prefs.js – There is one line of code in the file: local-settings.js - pref("general.config.filename", "mozilla.cfg"); However if I include "general.config.filename", in that file I receive popup an error on loading Firefox – Configuration Error – “Failed to read the configuration file”. If I remove - "general.config.filename", the program loads. Please advise. Also should the content of the mozilla.cfg file contain this code // lockPref("network.proxy.type", 0); Or should it be // lockPref("network.proxy.type", 5); or should it be - lockPref(); // lock pref, disallow changes. Many thanks Dave

more options

选择的解决方案

If you get the Failed to read error then that means that there is a problem with the mozilla.cfg file or Firefox doesn't find the file as you may have created mozilla.cfg.txt in case you saved the file as a text file (check the type in the Properties via the right-click context menu to see if it is a CFG file).
The mozilla.cfg file should be in the main Firefox program folder where also the firefox.exe file is located.

You should have at least two lines in mozilla.cfg.
The first line should always be a comment (//) because this line is skipped.
The value of the pref depends on what you want to use for the connection settings, for use system proxy settings use 5.

//
lockPref("network.proxy.type", 5);
more options

many thanks, cor-el that worked.

I ended up with this content in the local-settings.js file:

pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13

pref("general.config.filename", "mozilla.cfg");