חיפוש בתמיכה

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

Prevent users from editing browser settings (policies.json, mozilla.cfg, local-settings.js not working)

  • אין תגובות
  • 0 have this problem
  • 12 views
more options

On the operating system of windows where the Mozilla browser is installed, we desire to disable user access to all settings so that they can't be accessed. I already generated a working policies.json file but user can still access settings.

Then I put the file local-settings.js in the "firefox_application_folder/defaults/prefs/" with the following text // 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");

Then I put the file mozilla.cfg in the firefox application folder with the following text // lockPref(); // lock pref, disallow changes

Firefox (v. 113.0.2) returns the following error message: Netscape.cfg/AutoConfig failed. Please contact system administrator. Error: lockPref failed: [Exception... "Component returned failure code 0x80070057] (NS_ERROR_ILLEGALVALUE) [nslPrefBranch.preflsLocked]" nsresult: "0x80070057 (NS_ERROR_ILLEGALVALUE)" location: "JS frame :: prefcalls.js :: lockPref ::line 61" data:no]


See also: http://kb.mozillazine.org/Locking_preferences

On the operating system of windows where the Mozilla browser is installed, we desire to disable user access to all settings so that they can't be accessed. I already generated a working policies.json file but user can still access settings. Then I put the file local-settings.js in the "firefox_application_folder/defaults/prefs/" with the following text // 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"); Then I put the file mozilla.cfg in the firefox application folder with the following text // lockPref(); // lock pref, disallow changes Firefox (v. 113.0.2) returns the following error message: Netscape.cfg/AutoConfig failed. Please contact system administrator. Error: lockPref failed: [Exception... "Component returned failure code 0x80070057] (NS_ERROR_ILLEGALVALUE) [nslPrefBranch.preflsLocked]" nsresult: "0x80070057 (NS_ERROR_ILLEGALVALUE)" location: "JS frame :: prefcalls.js :: lockPref ::line 61" data:no] See also: http://kb.mozillazine.org/Locking_preferences

השתנתה ב־ על־ידי straccia.giulio