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 either be specified using the Group Policy templates 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.
18 Some of the policies were originally only available on the ESR for security reasons. As of Firefox 62, these policies are available outside of the ESR, but only via JSON file or a Local Machine-based Group Policy. User-based Group Policies are not allowed to set values for these policies. The descriptions below mark such policies as "Machine only".
21 This policy is for configuring sites that support integrated authentication. See https://developer.mozilla.org/en-US/docs/Mozilla/Integrated_authentication for more information.
26 "SPNEGO": ["mydomain.com", "https://myotherdomain.com"],
27 "Delegated": ["mydomain.com", "https://myotherdomain.com"],
28 "NTLM": ["mydomain.com", "https://myotherdomain.com"],
38 This policy removes access to about:addons.
42 "BlockAboutAddons": true
47 This policy removes access to about:config.
51 "BlockAboutConfig": true
55 ### BlockAboutProfiles
56 This policy removes access to about:profiles.
60 "BlockAboutProfiles": true
65 This policy removes access to about:support.
69 "BlockAboutSupport": true
73 This policy allows you to specify bookmarks. You can have any number of bookmarks, although only ten are specified in the ADMX file.
74 Placement can be specified as either toolbar or menu. If a folder is specified, it is automatically created and bookmarks with the
75 same folder name are grouped together.
82 "URL": "http://example.org",
83 "Favicon": "http://example.com/favicon.ico",
84 "Placement": ["toolbar", "menu"],
85 "Folder": "FolderName"
92 If this policy is set to any value, Firefox reads certificates from the system certificate store. This is currently only supported on Windows, but will be available on macOS with Firefox 63.
97 "ImportEnterpriseRoots": true
103 This policy controls various settings related to cookies.
108 "Allow": ["http://example.org/"], /* Domains where cookies are always allowed */
109 "Block": ["http://example.edu/"], /* Domains where cookies are always blocked */
110 "Default": [true|false], /* This sets the default value for "Accept cookies from websites" */
111 "AcceptThirdParty": ["always", "never", "from-visited"], /* This sets the default value for "Accept third-party cookies" */
112 "ExpireAtSessionEnd": [true|false], /* This determines when cookies expire */
113 "Locked": [true|false] /* If this is true, cookies preferences can't be changed */
119 This policy configures DNS over HTTPS.
124 "Enabled": [true|false],
125 "ProviderURL": "URL_TO_ALTERNATE_PROVIDER",
126 "Locked": [true|false]
131 ### DisableSetDesktopBackground
132 This policy removes the "Set As Desktop Background..." menuitem when right clicking on an image.
136 "DisableSetDesktopBackground": true
140 ### DisableMasterPasswordCreation
141 If this policy is set to true, the master password functionality is removed.
145 "DisableMasterPasswordCreation": [true|false]
149 ### DisableAppUpdate (Machine only)
150 This policy turns off application updates.
154 "DisableAppUpdate": true
158 ### DisableBuiltinPDFViewer
159 This policy disables the built in PDF viewer. PDF files are downloaded and sent externally.
163 "DisableBuiltinPDFViewer": true
167 ### DisableDeveloperTools
168 This policy removes access to all developer tools.
172 "DisableDeveloperTools": true
176 ### DisableFeedbackCommands
177 This policy disables the menus for reporting sites (Submit Feedback, Report Deceptive Site).
181 "DisableFeedbackCommands": true
185 ### DisableFirefoxScreenshots
186 This policy removes access to Firefox Screenshots.
190 "DisableFirefoxScreenshots": true
194 ### DisableFirefoxAccounts
195 This policy disables Sync.
199 "DisableFirefoxAccounts": true
203 ### DisableFirefoxStudies
204 This policy disables Firefox studies (Shield).
208 "DisableFirefoxStudies": true
212 ### DisableForgetButton
213 This policy disables the "Forget" button.
217 "DisableForgetButton": true
221 ### DisableFormHistory
222 This policy turns off the browser.formfill.enable preferences.
226 "DisableFormHistory": true
231 This policy turns off Pocket.
235 "DisablePocket": true
239 ### DisablePrivateBrowsing
240 This policy removes access to private browsing.
244 "DisablePrivateBrowsing": true
248 ### DisableProfileImport
249 This policy disables the "Import data from another browser" option in the bookmarks window.
253 "DisableProfileImport": true
257 ### DisableProfileRefresh
258 This policy disables the Refresh Firefox button on about:support and support.mozilla.org.
262 "DisableProfileRefresh": true
267 This policy disables safe mode on Windows only.
271 "DisableSafeMode": true
275 ### DisableSecurityBypass
276 This policy prevents the user from bypassing security in certain cases.
280 "DisableSecurityBypass": {
281 "InvalidCertificate": [true|false], /* Prevents adding an exception when an invalid certificate is shown */
282 "SafeBrowsing": [true|false] /* Prevents selecting "ignore the risk" and visiting a harmful site anyway */
287 ### DisableSystemAddonUpdate (Machine only)
288 This policy prevents system add-ons from being updated or installed.
292 "DisableSystemAddonUpdate": true
296 ### DisableTelemetry (Machine only)
297 This policy prevents the upload of telemetry data.
299 Mozilla recommends that you do not disable telemetry. Information collected through telemetry helps us build a better product for businesses like yours.
303 "DisableTelemetry": true
307 ### DisplayBookmarksToolbar
308 This policy turns on the bookmarks toolbar by default. A user can still turn it off, and it will stay off.
312 "DisplayBookmarksToolbar": true
317 This policy turns on the menubar by default. A user can still turn it off, and it will stay off.
321 "DisplayMenuBar": true
325 ### DontCheckDefaultBrowser
326 This policy stops Firefox from checking if it is the default browser at startup.
330 "DontCheckDefaultBrowser": true
334 ### EnableTrackingProtection
335 This policy affects tracking protection.
337 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.
339 If Value is set to false, tracking protection is disabled and locked in both the browser and private browsing.
341 If Value is set to true, tracking protection is enabled by default in both the browser and private browsing and you can choose set the Locked value if you want to prevent the user from changing it.
345 "EnableTrackingProtection": {
346 "Value": [true, false],
347 "Locked": [true, false]
351 ### Extensions (Machine only)
352 This policy controls the installation, uninstallation and locking of extensions. Locked extensions cannot be disabled or uninstalled.
353 For Install, you specify a list of URLs or paths.
354 For Uninstall and Locked, you specify extension IDs.
359 "Install": ["https://addons.mozilla.org/firefox/downloads/somefile.xpi", "//path/to/xpi"],
360 "Uninstall": ["addon_id@mozilla.org"],
361 "Locked": ["addon_id@mozilla.org"]
365 ### HardwareAcceleration
366 This policy disables hardware acceleration by locking the preference layers.acceleration.disabled to true.
370 "HardwareAcceleration": false
374 ### NoDefaultBookmarks
375 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.
379 "NoDefaultBookmarks": true
383 ### OfferToSaveLogins
384 This policy sets the signon.rememberSignons preference. It determines whether or not Firefox offers to save passwords. It can either be enabled or disabled.
388 "OfferToSaveLogins": true
392 ### Homepage (Machine only)
393 This policy sets the default homepage value. It can also be used to lock the homepage and add additional homepages.
398 "URL": "http://example.com/",
400 "Additional": ["http://example.org/",
401 "http://example.edu/"]
407 This policy sets domains for which pop-up windows are allowed. It also sets the default pop-up policy.
412 "Allow": ["http://example.org/",
413 "http://example.edu/"],
414 "Default": [true|false], /* If this is set to false, pop-up window are enabled by default. */
415 "Locked": [true|false]
420 ### InstallAddonsPermission
421 This policy sets domains that can install extensions, as well as the default behavior.
425 "InstallAddonsPermission": {
426 "Allow": ["http://example.org/",
427 "http://example.edu/"],
428 "Default": [true|false] /* If this is set to false, add-ons cannot be installed by the user */
434 This policy sets the behavior of Flash on the specified domains, as well as the default behavior.
439 "Allow": ["http://example.org/"], /* Sites on the allow list do not override Flash being completely disabled */
440 "Block": ["http://example.edu/"],
441 "Default": [true|false], /* If this is set to true, Flash is always enabled. If it is set to false, Flash is never enabled */
442 "Locked": [true|false]
447 ### OverrideFirstRunPage (Machine only)
448 This policy allows you to override the first run page. If you leave the URL blank, the first run page will not be displayed.
452 "OverrideFirstRunPage": "http://example.org"
456 ### OverridePostUpdatePage (Machine only)
457 This policy allows you to override the upgrade page. If you leave the URL blank, the upgrade page will not be displayed.
461 "OverridePostUpdatePage": "http://example.org"
466 This policy allows you to change the permissions associated with camera, microphone, location, and notifications
472 "Allow": ["http://example.org/"], /* Origins where camera access is allowed by default */
473 "Block": ["http://example.org/"], /* Origins where camera access is blocked by default */
474 "BlockNewRequests": [true|false], /* Block new requests to access the camera */
475 "Locked": [true|false] /* Don't allow the user to change the camera preferences */
478 "Allow": ["http://example.org/"], /* Origins where microphone access is allowed by default */
479 "Block": ["http://example.org/"], /* Origins where microphone access is blocked by default */
480 "BlockNewRequests": [true|false], /* Block new requests to access the microphone */
481 "Locked": [true|false] /* Don't allow the user to change the microphone preferences */
484 "Allow": ["http://example.org/"], /* Origins where location access is allowed by default */
485 "Block": ["http://example.org/"], /* Origins where location access is blocked by default */
486 "BlockNewRequests": [true|false], /* Block new requests to access location */
487 "Locked": [true|false] /* Don't allow the user to change the location preferences */
490 "Allow": ["http://example.org/"], /* Origins where sending notifications is allowed by default */
491 "Block": ["http://example.org/"], /* Origins where sending notifications is blocked by default */
492 "BlockNewRequests": [true|false], /* Block new requests to send notifications */
493 "Locked": [true|false] /* Don't allow the user to change the notification preferences */
500 This policy allows you to specify proxy settings. These settings correspond to the connection settings in Firefox preferences.
501 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.
506 "Mode": ["none", "system", "manual", "autoDetect", "autoConfig"],
507 "Locked": [true, false],
508 "HTTPProxy": "hostname",
509 "UseHTTPProxyForAllProtocols": [true, false],
510 "SSLProxy": "hostname",
511 "FTPProxy": "hostname",
512 "SOCKSProxy": "hostname",
513 "SOCKSVersion": [4, 5],
514 "Passthrough": "List of passthrough addresses/domains",
515 "AutoConfigURL": "URL_TO_AUTOCONFIG",
516 "AutoLogin": [true, false],
517 "UseProxyForDNS": [true, false]
523 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.
527 "RequestedLocales": ["de", "en-US"]
531 ### SanitizeOnShutdown
532 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.
536 "SanitizeOnShutdown": [true|false]
541 This policy can be used to determine if the search bar is separate or combined with the URL bar.
545 "SearchBar": ["unified", "separate"]
549 ### WebsiteFilter (Machine only)
550 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.
555 "Block": ["<all_urls>"],
556 "Exceptions": ["http://example.org/*"]
561 ### Search Engines (This policy is only available on the ESR.)
562 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.
570 "URLTemplate": "URL including {searchTerms} to substitute for the terms",
571 "Method": ["GET", "POST"],
572 "IconURL": "URL to icon",
573 "Alias": "Alias that can be used to access the engine",
574 "Description": "Description",
575 "SuggestURLTemplate": "URL for suggestions using {searchTerms}"
578 "Default": "Name of engine",
579 "PreventInstalls": [true|false],
580 "Remove": ["Twitter", "Wikipedia (en)"]
586 This policy allows you to add PKCS #11 Modules
591 "NAME_OF_DEVICE": "PATH_TO_LIBRARY_FOR_DEVICE"