
You should prevent users from editing the browser settings (namely, the proxy server settings)
On the operating system of windows where the Mozilla browser is installed, it is desirable to disable all settings (they are interested in the proxy server settings that could not be changed / deleted
Chosen solution
You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.
A local-settings.js file needs to be placed in the "defaults/pref" folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);
These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes
The mozilla.cfg and local-settings.js files need to start with a comment line (//).
See Configuration:
See also:
- http://kb.mozillazine.org/Locking_preferences
- http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
All Replies (4)
migovde said
On the operating system of windows where the Mozilla browser is installed, it is desirable to disable all settings (they are interested in the proxy server settings that could not be changed / deleted
So Firefox users on Windows OS should have all setting disabled, because those users are interested in the proxy server settings?
Or maybe you're asking, if there's an option to disable modifying the proxy settings? Yes, there is such an option.
I would like to prevent access to the browser settings themselves, can this be done?
Modified
Chosen Solution
You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.
A local-settings.js file needs to be placed in the "defaults/pref" folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);
These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes
The mozilla.cfg and local-settings.js files need to start with a comment line (//).
See Configuration:
See also:
Thanks a question is resolved