Usporedi revizije
Customize Firefox using policies.json
Revizija 267031:
Revizija 267031 od AliceWyman učinjena
Revizija 284111:
Revizija 284111 od gijs učinjena
Ključni pojmovi:
Sažetak rezultata pretraživanja:
Cross-platform policy support can be implemented using a JSON file called policies.json.
Cross-platform policy support can be implemented using a JSON file called policies.json.
Sadržaj:
[[Template:enterprise]]
Policy support can be implemented using a JSON file called policies.json. Unlike controlling Firefox with [[Customizing Firefox Using Group Policy|using Group Policy]], the policies.json is cross-platform compatible, making it preferred method for enterprise environments that have workstations running various operating systems.
To implement this policy support, a <code>policies.json</code> file needs to be created. This file goes into a directory called <code>distribution</code> within the Firefox installation directory. This directory is not usually included by default, so you may need to manually create this directory.
The policies.json file looks like this:
{
"policies": {
"BlockAboutConfig": true
}
}
In this example, we are setting the <code>BlockAboutConfig</code> policy to <code>true</code>, which means that the user will not have access to the <code>about:config</code> page.
The latest information about our policies is available at https://mozilla.github.io/policy-templates/ or on the about:policies#documentation page in Firefox.
{note}'''NOTE:''' The above method will not work if Firefox is already being managed using Group Policy.{/note}
[[Template:enterprise]]
Policy support can be implemented using a JSON file called policies.json. Unlike controlling Firefox with [[Customizing Firefox Using Group Policy|using Group Policy]], the policies.json is cross-platform compatible, making it preferred method for enterprise environments that have workstations running various operating systems.
To implement this policy support, a <code>policies.json</code> file needs to be created. On Windows, create a directory called <code>distribution</code> where the EXE is located and place the file there. On Mac, the file goes into <code>Firefox.app/Contents/Resources/distribution</code>. On Linux, the file goes into <code>firefox/distribution</code>, where <code>firefox</code> is the installation directory for Firefox, which varies by distribution - or you can specify system-wide policy by placing the file in <code>/etc/firefox/policies</code>.
The policies.json file looks like this:
{
"policies": {
"BlockAboutConfig": true
}
}
In this example, we are setting the <code>BlockAboutConfig</code> policy to <code>true</code>, which means that the user will not have access to the <code>about:config</code> page.
'''The latest information about our policies is available at https://mozilla.github.io/policy-templates/ or on the about:policies#documentation page in Firefox.'''
{note}'''NOTE:''' The above method will not work if Firefox is already being managed using Group Policy.{/note}