1 **IMPORTANT**: This file is in active development along with the policies in Firefox. To get the policy information that corresponds to a specific release, go to https://github.com/mozilla/policy-templates/releases.
3 Policies can be specified using the Group Policy templates on Windows (https://github.com/mozilla/policy-templates/tree/master/windows), configuration profiles on macOS (https://github.com/mozilla/policy-templates/tree/master/mac), or by creating a file called `policies.json`. On Windows, create a directory called `distribution` where the EXE is located and place the file there. On Mac, the file goes into `Firefox.app/Contents/Resources/distribution`. On Linux, the file goes into `firefox/distribution`, where `firefox` is the installation directory for firefox, which varies by distribution.
5 The content of the JSON file should look like this:
13 Policies are documented below.
16 **Note**: though comments are used in this readme file for documentation, comments are not valid in actual JSON files. Remove all comments before attempting to deploy.
19 This policy is for changing the URL used for application update
22 "AppUpdateURL": "http://yoursite.com"
28 This policy is for configuring sites that support integrated authentication. See https://developer.mozilla.org/en-US/docs/Mozilla/Integrated_authentication for more information.
33 "SPNEGO": ["mydomain.com", "https://myotherdomain.com"],
34 "Delegated": ["mydomain.com", "https://myotherdomain.com"],
35 "NTLM": ["mydomain.com", "https://myotherdomain.com"],
45 This policy removes access to about:addons.
49 "BlockAboutAddons": true
54 This policy removes access to about:config.
58 "BlockAboutConfig": true
62 ### BlockAboutProfiles
63 This policy removes access to about:profiles.
67 "BlockAboutProfiles": true
72 This policy removes access to about:support.
76 "BlockAboutSupport": true
80 This policy allows you to specify bookmarks. You can have any number of bookmarks, although only ten are specified in the ADMX file.
81 Placement can be specified as either toolbar or menu. If a folder is specified, it is automatically created and bookmarks with the
82 same folder name are grouped together.
89 "URL": "http://example.org",
90 "Favicon": "http://example.com/favicon.ico",
91 "Placement": ["toolbar", "menu"],
92 "Folder": "FolderName"
99 This policy can be used to install certificates or to read certificates from the system certificate store on Mac and Windows.
101 The ImportEnterpriseRoots key will cause Firefox to import from the system certificate store.
103 The Install Certificates key by default will search for certificates in the locations listed below.
104 Starting in Firefox 65 you can specify a fully qualified path including UNC. (See cert3.der and cert4.pem, in example).
106 **Be advised if you wish to load a certificate from a UNC path you must use double backslahes.**
107 Example: \\SERVER\\CERTS\CERT5.PEM
110 If Firefox does not find something at your fully qualified path, it will search the default directories.
112 Certificates can be located in the following locations:
114 - %USERPROFILE%\AppData\Local\Mozilla\Certificates
115 - %USERPROFILE%\AppData\Roaming\Mozilla\Certificates
117 - /Library/Application Support/Mozilla/Certificates
118 - ~/Library/Application Support/Mozilla/Certificates
120 - /usr/lib/mozilla/certificates
121 - /usr/lib64/mozilla/certificates
122 - ~/.mozilla/certificates
129 "ImportEnterpriseRoots": true,
130 "Install": ["cert1.der", "cert2.pem", "%SYSTEMDRIVE%\Company\cert3.der", "/Library/Company/cert4.pem", "\\server\\certs\\cert.pem"]
136 This policy controls various settings related to cookies.
141 "Allow": ["http://example.org/"], /* Domains where cookies are always allowed */
142 "Block": ["http://example.edu/"], /* Domains where cookies are always blocked */
143 "Default": [true|false], /* This sets the default value for "Accept cookies from websites" */
144 "AcceptThirdParty": ["always", "never", "from-visited"], /* This sets the default value for "Accept third-party cookies" */
145 "ExpireAtSessionEnd": [true|false], /* This determines when cookies expire */
146 "RejectTracker": [true|false], /* Only reject trackers */
147 "Locked": [true|false] /* If this is true, cookies preferences can't be changed */
153 This policy configures DNS over HTTPS.
158 "Enabled": [true|false],
159 "ProviderURL": "URL_TO_ALTERNATE_PROVIDER",
160 "Locked": [true|false]
165 ### DisableSetDesktopBackground
166 This policy removes the "Set As Desktop Background..." menuitem when right clicking on an image.
170 "DisableSetDesktopBackground": true
174 ### DisableMasterPasswordCreation
175 If this policy is set to true, the master password functionality is removed.
179 "DisableMasterPasswordCreation": [true|false]
184 This policy turns off application updates.
188 "DisableAppUpdate": true
192 ### DisableBuiltinPDFViewer
193 This policy disables the built in PDF viewer. PDF files are downloaded and sent externally.
197 "DisableBuiltinPDFViewer": true
201 ### DisableDeveloperTools
202 This policy removes access to all developer tools.
206 "DisableDeveloperTools": true
210 ### DisableFeedbackCommands
211 This policy disables the menus for reporting sites (Submit Feedback, Report Deceptive Site).
215 "DisableFeedbackCommands": true
219 ### DisableFirefoxScreenshots
220 This policy removes access to Firefox Screenshots.
224 "DisableFirefoxScreenshots": true
228 ### DisableFirefoxAccounts
229 This policy disables Sync.
233 "DisableFirefoxAccounts": true
237 ### DisableFirefoxStudies
238 This policy disables Firefox studies (Shield).
242 "DisableFirefoxStudies": true
246 ### DisableForgetButton
247 This policy disables the "Forget" button.
251 "DisableForgetButton": true
255 ### DisableFormHistory
256 This policy turns off the browser.formfill.enable preferences.
260 "DisableFormHistory": true
265 This policy turns off Pocket.
269 "DisablePocket": true
273 ### DisablePrivateBrowsing
274 This policy removes access to private browsing.
278 "DisablePrivateBrowsing": true
282 ### DisableProfileImport
283 This policy disables the "Import data from another browser" option in the bookmarks window.
287 "DisableProfileImport": true
291 ### DisableProfileRefresh
292 This policy disables the Refresh Firefox button on about:support and support.mozilla.org.
296 "DisableProfileRefresh": true
301 This policy disables safe mode on Windows and macOS only.
305 "DisableSafeMode": true
309 ### DisableSecurityBypass
310 This policy prevents the user from bypassing security in certain cases.
314 "DisableSecurityBypass": {
315 "InvalidCertificate": [true|false], /* Prevents adding an exception when an invalid certificate is shown */
316 "SafeBrowsing": [true|false] /* Prevents selecting "ignore the risk" and visiting a harmful site anyway */
321 ### DisableSystemAddonUpdate
322 This policy prevents system add-ons from being updated or installed.
326 "DisableSystemAddonUpdate": true
331 This policy prevents the upload of telemetry data.
333 Mozilla recommends that you do not disable telemetry. Information collected through telemetry helps us build a better product for businesses like yours.
337 "DisableTelemetry": true
341 ### DisplayBookmarksToolbar
342 This policy turns on the bookmarks toolbar by default. A user can still turn it off, and it will stay off.
346 "DisplayBookmarksToolbar": true
351 This policy turns on the menubar by default. A user can still turn it off, and it will stay off.
355 "DisplayMenuBar": true
359 ### DontCheckDefaultBrowser
360 This policy stops Firefox from checking if it is the default browser at startup.
364 "DontCheckDefaultBrowser": true
368 ### EnableTrackingProtection
369 This policy affects tracking protection.
371 If this policy is not configured, tracking protection is not enabled by default in the browser, but it is enabled by default in private browsing and the user can change it.
373 If Value is set to false, tracking protection is disabled and locked in both the regular browser and private browsing.
375 If Value is set to true, tracking protection is enabled by default in both the regular browser and private browsing.
377 You can choose to set the Locked value if you want to prevent the user from changing it.
381 "EnableTrackingProtection": {
382 "Value": [true, false],
383 "Locked": [true, false]
388 This policy controls the installation, uninstallation and locking of extensions. Locked extensions cannot be disabled or uninstalled.
389 For Install, you specify a list of URLs or paths.
390 For Uninstall and Locked, you specify extension IDs.
395 "Install": ["https://addons.mozilla.org/firefox/downloads/somefile.xpi", "//path/to/xpi"],
396 "Uninstall": ["addon_id@mozilla.org"],
397 "Locked": ["addon_id@mozilla.org"]
401 ### HardwareAcceleration
402 This policy disables hardware acceleration by locking the preference layers.acceleration.disabled to true.
406 "HardwareAcceleration": false
410 ### NoDefaultBookmarks
411 This policy prevents the default bookmarks or the Smart Bookmarks (Most Visited, Recent Tags) from being created. Note: this policy is only effective if used before the first run of the profile.
415 "NoDefaultBookmarks": true
419 ### OfferToSaveLogins
420 This policy sets the signon.rememberSignons preference. It determines whether or not Firefox offers to save passwords. It can either be enabled or disabled.
424 "OfferToSaveLogins": true
429 This policy sets the default homepage value and the default start page. It can also be used to lock the homepage or add additional homepages.
434 "URL": "http://example.com/",
436 "Additional": ["http://example.org/",
437 "http://example.edu/"],
438 "StartPage": ["none", "homepage", "previous-session"]
444 This policy sets domains for which pop-up windows are allowed. It also sets the default pop-up policy.
449 "Allow": ["http://example.org/",
450 "http://example.edu/"],
451 "Default": [true|false], /* If this is set to false, pop-up window are enabled by default. */
452 "Locked": [true|false]
457 ### InstallAddonsPermission
458 This policy sets domains that can install extensions, as well as the default behavior.
462 "InstallAddonsPermission": {
463 "Allow": ["http://example.org/",
464 "http://example.edu/"],
465 "Default": [true|false] /* If this is set to false, add-ons cannot be installed by the user */
471 This policy sets the behavior of Flash on the specified domains, as well as the default behavior.
476 "Allow": ["http://example.org/"], /* Sites on the allow list do not override Flash being completely disabled */
477 "Block": ["http://example.edu/"],
478 "Default": [true|false], /* If this is set to true, Flash is always enabled. If it is set to false, Flash is never enabled */
479 "Locked": [true|false]
484 ### OverrideFirstRunPage
485 This policy allows you to override the first run page. If you leave the URL blank, the first run page will not be displayed.
489 "OverrideFirstRunPage": "http://example.org"
493 ### OverridePostUpdatePage
494 This policy allows you to override the upgrade page. If you leave the URL blank, the upgrade page will not be displayed.
498 "OverridePostUpdatePage": "http://example.org"
503 This policy allows you to change the permissions associated with camera, microphone, location, and notifications
509 "Allow": ["http://example.org/"], /* Origins where camera access is allowed by default */
510 "Block": ["http://example.org/"], /* Origins where camera access is blocked by default */
511 "BlockNewRequests": [true|false], /* Block new requests to access the camera */
512 "Locked": [true|false] /* Don't allow the user to change the camera preferences */
515 "Allow": ["http://example.org/"], /* Origins where microphone access is allowed by default */
516 "Block": ["http://example.org/"], /* Origins where microphone access is blocked by default */
517 "BlockNewRequests": [true|false], /* Block new requests to access the microphone */
518 "Locked": [true|false] /* Don't allow the user to change the microphone preferences */
521 "Allow": ["http://example.org/"], /* Origins where location access is allowed by default */
522 "Block": ["http://example.org/"], /* Origins where location access is blocked by default */
523 "BlockNewRequests": [true|false], /* Block new requests to access location */
524 "Locked": [true|false] /* Don't allow the user to change the location preferences */
527 "Allow": ["http://example.org/"], /* Origins where sending notifications is allowed by default */
528 "Block": ["http://example.org/"], /* Origins where sending notifications is blocked by default */
529 "BlockNewRequests": [true|false], /* Block new requests to send notifications */
530 "Locked": [true|false] /* Don't allow the user to change the notification preferences */
537 This policy allows you to specify proxy settings. These settings correspond to the connection settings in Firefox preferences.
538 To specify ports, append them to the hostnames with a colon (:). If Locked is set to true, the values can't be changed by the user.
543 "Mode": ["none", "system", "manual", "autoDetect", "autoConfig"],
544 "Locked": [true, false],
545 "HTTPProxy": "hostname",
546 "UseHTTPProxyForAllProtocols": [true, false],
547 "SSLProxy": "hostname",
548 "FTPProxy": "hostname",
549 "SOCKSProxy": "hostname",
550 "SOCKSVersion": [4, 5],
551 "Passthrough": "List of passthrough addresses/domains",
552 "AutoConfigURL": "URL_TO_AUTOCONFIG",
553 "AutoLogin": [true, false],
554 "UseProxyForDNS": [true, false]
560 This policy sets the list of requested locales for the application in order of preference. It will cause the corresponding language pack to become active.
564 "RequestedLocales": ["de", "en-US"]
568 ### SanitizeOnShutdown
569 If this policy is set to true, all data is cleared when Firefox is closed. This includes Browsing & Download History, Cookies, Active Logins, Cache, Form & Search History, Site Preferences and Offline Website Data.
573 "SanitizeOnShutdown": [true|false]
578 This policy can be used to determine if the search bar is separate or combined with the URL bar.
582 "SearchBar": ["unified", "separate"]
587 This policy blocks websites from being visited. The parameters take an array of Match Patterns, as documented in https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Match_patterns. Only http/https addresses are supported at the moment. The arrays are limited to 1000 entries each.
592 "Block": ["<all_urls>"],
593 "Exceptions": ["http://example.org/*"]
598 ### Search Engines (This policy is only available on the ESR.)
599 This policy allows you to add new search engines, remove or hide search engines, as well as set the default and prevent the install of search engines from web pages. Only Name and URLTemplate is required.
607 "URLTemplate": "URL including {searchTerms} to substitute for the terms",
608 "Method": ["GET", "POST"],
609 "IconURL": "URL to icon",
610 "Alias": "Alias that can be used to access the engine",
611 "Description": "Description",
612 "SuggestURLTemplate": "URL for suggestions using {searchTerms}"
615 "Default": "Name of engine",
616 "PreventInstalls": [true|false],
617 "Remove": ["Twitter", "Wikipedia (en)"]
623 This policy allows you to add PKCS #11 Modules
628 "NAME_OF_DEVICE": "PATH_TO_LIBRARY_FOR_DEVICE"