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
72 ### DisableSetDesktopBackground
73 This policy removes the "Set As Desktop Background..." menuitem when right clicking on an image.
77 "DisableSetDesktopBackground": true
82 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.
87 "ImportEnterpriseRoots": true
93 This policy controls various settings related to cookies.
98 "Allow": ["http://example.org/"], /* Domains where cookies are always allowed */
99 "Block": ["http://example.edu/"], /* Domains where cookies are always blocked */
100 "Default": [true|false], /* This sets the default value for "Accept cookies from websites" */
101 "AcceptThirdParty": ["always", "never", "from-visited"], /* This sets the default value for "Accept third-party cookies" */
102 "ExpireAtSessionEnd": [true|false], /* This determines when cookies expire */
103 "Locked": [true|false] /* If this is true, cookies preferences can't be changed */
108 ### DisableMasterPasswordCreation
109 If this policy is set to true, the master password functionality is removed.
113 "DisableMasterPasswordCreation": [true|false]
117 ### DisableAppUpdate (Machine only)
118 This policy turns off application updates.
122 "DisableAppUpdate": true
126 ### DisableBuiltinPDFViewer
127 This policy disables the built in PDF viewer. PDF files are downloaded and sent externally.
131 "DisableBuiltinPDFViewer": true
135 ### DisableDeveloperTools
136 This policy removes access to all developer tools.
140 "DisableDeveloperTools": true
144 ### DisableFeedbackCommands
145 This policy disables the menus for reporting sites (Submit Feedback, Report Deceptive Site).
149 "DisableFeedbackCommands": true
153 ### DisableFirefoxScreenshots
154 This policy removes access to Firefox Screenshots.
158 "DisableFirefoxScreenshots": true
162 ### DisableFirefoxAccounts
163 This policy disables Sync.
167 "DisableFirefoxAccounts": true
171 ### DisableFirefoxStudies
172 This policy disables Firefox studies (Shield).
176 "DisableFirefoxStudies": true
180 ### DisableForgetButton
181 This policy disables the "Forget" button.
185 "DisableForgetButton": true
189 ### DisableFormHistory
190 This policy turns off the browser.formfill.enable preferences.
194 "DisableFormHistory": true
199 This policy turns off Pocket.
203 "DisablePocket": true
207 ### DisablePrivateBrowsing
208 This policy removes access to private browsing.
212 "DisablePrivateBrowsing": true
216 ### DisableProfileImport
217 This policy disables the "Import data from another browser" option in the bookmarks window.
221 "DisableProfileImport": true
225 ### DisableProfileRefresh
226 This policy disables the Refresh Firefox button on about:support and support.mozilla.org.
230 "DisableProfileRefresh": true
235 This policy disables safe mode on Windows only.
239 "DisableSafeMode": true
243 ### DisableSecurityBypass
244 This policy prevents the user from bypassing security in certain cases.
248 "DisableSecurityBypass": {
249 "InvalidCertificate": [true|false], /* Prevents adding an exception when an invalid certificate is shown */
250 "SafeBrowsing": [true|false] /* Prevents selecting "ignore the risk" and visiting a harmful site anyway */
255 ### DisableSystemAddonUpdate (Machine only)
256 This policy prevents system add-ons from being updated or installed.
260 "DisableSystemAddonUpdate": true
264 ### DisableTelemetry (Machine only)
265 This policy prevents the upload of telemetry data.
267 Mozilla recommends that you do not disable telemetry. Information collected through telemetry helps us build a better product for businesses like yours.
271 "DisableTelemetry": true
275 ### DisplayBookmarksToolbar
276 This policy turns on the bookmarks toolbar by default. A user can still turn it off, and it will stay off.
280 "DisplayBookmarksToolbar": true
285 This policy turns on the menubar by default. A user can still turn it off, and it will stay off.
289 "DisplayMenuBar": true
293 ### DontCheckDefaultBrowser
294 This policy stops Firefox from checking if it is the default browser at startup.
298 "DontCheckDefaultBrowser": true
302 ### EnableTrackingProtection
303 This policy affects tracking protection.
305 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.
307 If Value is set to false, tracking protection is disabled and locked in both the browser and private browsing.
309 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.
313 "EnableTrackingProtection": {
314 "Value": [true, false],
315 "Locked": [true, false]
319 ### Extensions (Machine only)
320 This policy controls the installation, uninstallation and locking of extensions. Locked extensions cannot be disabled or uninstalled.
321 For Install, you specify a list of URLs or paths.
322 For Uninstall and Locked, you specify extension IDs.
327 "Install": ["https://addons.mozilla.org/firefox/downloads/somefile.xpi", "//path/to/xpi"],
328 "Uninstall": ["addon_id@mozilla.org"],
329 "Locked": ["addon_id@mozilla.org"]
333 ### HardwareAcceleration
334 This policy disables hardware acceleration by locking the preference layers.acceleration.disabled to true.
338 "HardwareAcceleration": false
342 ### NoDefaultBookmarks
343 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.
347 "NoDefaultBookmarks": true
351 ### OfferToSaveLogins
352 This policy sets the signon.rememberSignons preference. It determines whether or not Firefox offers to save passwords. It can either be enabled or disabled.
356 "OfferToSaveLogins": true
360 ### Homepage (Machine only)
361 This policy sets the default homepage value. It can also be used to lock the homepage and add additional homepages.
366 "URL": "http://example.com/",
368 "Additional": ["http://example.org/",
369 "http://example.edu/"]
375 This policy sets domains for which pop-up windows are allowed. It also sets the default pop-up policy.
380 "Allow": ["http://example.org/",
381 "http://example.edu/"],
382 "Default": [true|false], /* If this is set to false, pop-up window are enabled by default. */
383 "Locked": [true|false]
388 ### InstallAddonsPermission
389 This policy sets domains that can install extensions, as well as the default behavior.
393 "InstallAddonsPermission": {
394 "Allow": ["http://example.org/",
395 "http://example.edu/"],
396 "Default": [true|false] /* If this is set to false, add-ons cannot be installed by the user */
402 This policy sets the behavior of Flash on the specified domains, as well as the default behavior.
407 "Allow": ["http://example.org/"], /* Sites on the allow list do not override Flash being completely disabled */
408 "Block": ["http://example.edu/"],
409 "Default": [true|false], /* If this is set to true, Flash is always enabled. If it is set to false, Flash is never enabled */
410 "Locked": [true|false]
415 ### OverrideFirstRunPage (Machine only)
416 This policy allows you to override the first run page. If you leave the URL blank, the first run page will not be displayed.
420 "OverrideFirstRunPage": "http://example.org"
424 ### OverridePostUpdatePage (Machine only)
425 This policy allows you to override the upgrade page. If you leave the URL blank, the upgrade page will not be displayed.
429 "OverridePostUpdatePage": "http://example.org"
434 This policy allows you to specify bookmarks. You can have any number of bookmarks, although only ten are specified in the ADMX file.
435 Placement can be specified as either toolbar or menu. If a folder is specified, it is automatically created and bookmarks with the
436 same folder name are grouped together.
444 "URL": "http://example.org",
445 "Favicon": "http://example.com/favicon.ico",
446 "Placement": ["toolbar", "menu"],
447 "Folder": "FolderName"
454 This policy allows you to specify proxy settings. These settings correspond to the connection settings in Firefox preferences.
455 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.
460 "Mode": ["none", "system", "manual", "autoDetect", "autoConfig"],
461 "Locked": [true, false],
462 "HTTPProxy": "hostname",
463 "UseHTTPProxyForAllProtocols": [true, false],
464 "SSLProxy": "hostname",
465 "FTPProxy": "hostname",
466 "SOCKSProxy": "hostname",
467 "SOCKSVersion": [4, 5],
468 "Passthrough": "List of passthrough addresses/domains",
469 "AutoConfigURL": "URL_TO_AUTOCONFIG",
470 "AutoLogin": [true, false],
471 "UseProxyForDNS": [true, false]
476 ### SanitizeOnShutdown
477 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.
481 "SanitizeOnShutdown": [true|false]
486 This policy can be used to determine if the search bar is separate or combined with the URL bar.
490 "SearchBar": ["unified", "separate"]
494 ### WebsiteFilter (Machine only)
495 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.
500 "Block": ["<all_urls>"],
501 "Exceptions": ["http://example.org/*"]
506 ### Search Engines (This policy is only available on the ESR.)
507 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.
515 "URLTemplate": "URL including {searchTerms} to substitute for the terms",
516 "Method": ["GET", "POST"],
517 "IconURL": "URL to icon",
518 "Alias": "Alias that can be used to access the engine",
519 "Description": "Description",
520 "SuggestURLTemplate": "URL for suggestions using {searchTerms}"
523 "Default": "Name of engine",
524 "PreventInstalls": [true|false],
525 "Remove": ["Twitter", "Wikipedia (en)"]
531 This policy allows you to change the permissions associated with camera, microphone, location, and notifications
537 "Allow": ["http://example.org/"], /* Origins where camera access is allowed by default */
538 "Block": ["http://example.org/"], /* Origins where camera access is blocked by default */
539 "BlockNewRequests": [true|false], /* Block new requests to access the camera */
540 "Locked": [true|false] /* Don't allow the user to change the camera preferences */
543 "Allow": ["http://example.org/"], /* Origins where microphone access is allowed by default */
544 "Block": ["http://example.org/"], /* Origins where microphone access is blocked by default */
545 "BlockNewRequests": [true|false], /* Block new requests to access the microphone */
546 "Locked": [true|false] /* Don't allow the user to change the microphone preferences */
549 "Allow": ["http://example.org/"], /* Origins where location access is allowed by default */
550 "Block": ["http://example.org/"], /* Origins where location access is blocked by default */
551 "BlockNewRequests": [true|false], /* Block new requests to access location */
552 "Locked": [true|false] /* Don't allow the user to change the location preferences */
555 "Allow": ["http://example.org/"], /* Origins where sending notifications is allowed by default */
556 "Block": ["http://example.org/"], /* Origins where sending notifications is blocked by default */
557 "BlockNewRequests": [true|false], /* Block new requests to send notifications */
558 "Locked": [true|false] /* Don't allow the user to change the notification preferences */