Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Learn More

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

  • Nema odgovora
  • 0 ima ovaj problem
  • 6 prikaza
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

Izmjenjeno od straccia.giulio