Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

You should prevent users from editing the browser settings (namely, the proxy server settings)

  • 4 replies
  • 6 have this problem
  • 384 views
  • Last reply by migovde

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

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:

Read this answer in context 👍 1

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 by migovde

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