For security reasons, we need to "lock" some of the preferences in Mozilla Firefox. We are running Windows XP and the latest version of Mozilla version 14.0.1. In particular some of the security preferences such as Security.ask_for_password
. If the user were to do about:config
, we would like the particular options to be greyed out so they cannot click on them.
I have read that this can be done by adding the following in:
\Mozilla Firefox\defaults\pref\test.js
preflock("security.enable_ssl3", false);
However, this does nothing.
Your file should start with double
//
, and I think the correct term islockPref
. The correct contents of your file should be;Also, you should save this file in the root of the installation directory and modify local-settings.js to load the file.
Up to date preference locking for Firefox 63 and Windows 10...
Mozilla Firefox version 63.00 Setup for Locking Files
Open Firefox and type “about:config” into the path bar.
a. For any preference that is locked you will see the entries in italics and the status displaying “locked”
Create the following as text files and change the extension on each.
a. mozilla.cfg – lists desired files to be locked.
b. local-settings.js – uses mozilla.cfg to lock the preferences.
c. user.js – changes the settings for each of the listed preferences.
The folders where mozilla.cfg and local-settings.js files are located have full Administrators and System rights assigned, however to make changes to these files copy them to another folder (i.e. Desktop) then copy it back into its respective folder. The UAC prompt asks to accept the changes. A regular user shouldn’t have rights to do this.
Location is very important for each of the above files. Place each in their respective directories as shown below.
a. mozilla.cfg is placed into:
b. Local-settings.js is placed into:
c. User.js is placed into:
To disable the files listed in mozilla.cfg, open the local-setting.js file and add “//” to the beginning of each line to remark them out, save and then restart Firefox. Verify in Firefox under “about:config” that the “locked” status was removed. Of course, to lock them again, remove the “//”.