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".
20 ### Authentication (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"]
34 This policy removes access to about:addons.
38 "BlockAboutAddons": true
43 This policy removes access to about:config.
47 "BlockAboutConfig": true
51 ### BlockAboutProfiles
52 This policy removes access to about:profiles.
56 "BlockAboutProfiles": true
61 This policy removes access to about:support.
65 "BlockAboutSupport": true
68 ### DisableSetDesktopBackground
69 This policy removes the "Set As Desktop Background..." menuitem when right clicking on an image.
73 "DisableSetDesktopBackground": true
78 If this Windows only policy is set to true, Firefox reads certificates from the Windows certificate store.
83 "ImportEnterpriseRoots": [true|false]
89 This policy controls various settings related to cookies.
94 "Allow": ["http://example.org/"], /* Domains where cookies are always allowed */
95 "Block": ["http://example.edu/"], /* Domains where cookies are always blocked */
96 "Default": [true|false], /* This sets the default value for "Accept cookies from websites" */
97 "AcceptThirdParty": ["always", "never", "from-visited"], /* This sets the default value for "Accept third-party cookies" */
98 "ExpireAtSessionEnd": [true|false], /* This determines when cookies expire */
99 "Locked": [true|false] /* If this is true, cookies preferences can't be changed */
104 ### DisableMasterPasswordCreation
105 If this policy is set to true, the master password functionality is removed.
109 "DisableMasterPasswordCreation": [true|false]
113 ### DisableAppUpdate (Machine only)
114 This policy turns off application updates.
118 "DisableAppUpdate": true
122 ### DisableBuiltinPDFViewer
123 This policy disables the built in PDF viewer. PDF files are downloaded and sent externally.
127 "DisableBuiltinPDFViewer": true
131 ### DisableDeveloperTools
132 This policy removes access to all developer tools.
136 "DisableDeveloperTools": true
140 ### DisableFeedbackCommands
141 This policy disables the menus for reporting sites (Submit Feedback, Report Deceptive Site).
145 "DisableFeedbackCommands": true
149 ### DisableFirefoxScreenshots
150 This policy removes access to Firefox Screenshots.
154 "DisableFirefoxScreenshots": true
158 ### DisableFirefoxAccounts
159 This policy disables Sync.
163 "DisableFirefoxAccounts": true
167 ### DisableFirefoxStudies
168 This policy disables Firefox studies (Shield).
172 "DisableFirefoxStudies": true
176 ### DisableForgetButton
177 This policy disables the "Forget" button.
181 "DisableForgetButton": true
185 ### DisableFormHistory
186 This policy turns off the browser.formfill.enable preferences.
190 "DisableFormHistory": true
195 This policy turns off Pocket.
199 "DisablePocket": true
203 ### DisablePrivateBrowsing
204 This policy removes access to private browsing.
208 "DisablePrivateBrowsing": true
212 ### DisableProfileImport
213 This policy disables the "Import data from another browser" option in the bookmarks window.
217 "DisableProfileImport": true
221 ### DisableProfileRefresh
222 This policy disables the Refresh Firefox button on about:support and support.mozilla.org.
226 "DisableProfileRefresh": true
231 This policy disables safe mode on Windows only.
235 "DisableSafeMode": true
239 ### DisableSecurityBypass
240 This policy prevents the user from bypassing security in certain cases.
244 "DisableSecurityBypass": {
245 "InvalidCertificate": [true|false], /* Prevents adding an exception when an invalid certificate is shown */
246 "SafeBrowsing": [true|false] /* Prevents selecting "ignore the risk" and visiting a harmful site anyway */
251 ### DisableSystemAddonUpdate (Machine only)
252 This policy prevents system add-ons from being updated or installed.
256 "DisableSystemAddonUpdate": true
260 ### DisableTelemetry (Machine only)
261 This policy prevents the upload of telemetry data.
263 Mozilla recommends that you do not disable telemetry. Information collected through telemetry helps us build a better product for businesses like yours.
267 "DisableTelemetry": true
271 ### DisplayBookmarksToolbar
272 This policy turns on the bookmarks toolbar by default. A user can still turn it off, and it will stay off.
276 "DisplayBookmarksToolbar": true
281 This policy turns on the menubar by default. A user can still turn it off, and it will stay off.
285 "DisplayMenuBar": true
289 ### DontCheckDefaultBrowser
290 This policy stops Firefox from checking if it is the default browser at startup.
294 "DontCheckDefaultBrowser": true
298 ### EnableTrackingProtection
299 This policy affects tracking protection.
301 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.
303 If Value is set to false, tracking protection is disabled and locked in both the browser and private browsing.
305 If Value is set to true, private browsing 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.
309 "EnableTrackingProtection": {
310 "Value": [true, false],
311 "Locked": [true, false]
315 ### Extensions (Machine only)
316 This policy controls the installation, uninstallation and locking of extensions. Locked extensions cannot be disabled or uninstalled.
317 For Install, you specify a list of URLs or paths.
318 For Uninstall and Locked, you specify extension IDs.
323 "Install": ["https://addons.mozilla.org/firefox/downloads/somefile.xpi", "//path/to/xpi"]
324 "Uninstall": ["addon_id@mozilla.org"],
325 "Locked": ["addon_id@mozilla.org"]
329 ### NoDefaultBookmarks
330 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.
334 "NoDefaultBookmarks": true
338 ### OfferToSaveLogins
339 This policy sets the signon.rememberSignons preference. It determines whether or not Firefox offers to save passwords. It can either be enabled or disabled.
343 "OfferToSaveLogins": true
347 ### Homepage (Machine only)
348 This policy sets the default homepage value. It can also be used to lock the homepage and add additional homepages.
353 "URL": "http://example.com/",
355 "Additional": ["http://example.org/",
356 "http://example.edu/"]
362 This policy sets domains for which pop-up windows are allowed. It also sets the default pop-up policy.
367 "Allow": ["http://example.org/",
368 "http://example.edu/"],
369 "Default": [true|false], /* If this is set to false, pop-up window are enabled by default. */
370 "Locked": [true|false]
375 ### InstallAddonsPermission
376 This policy sets domains that can install extensions, as well as the default behavior.
380 "InstallAddonsPermission": {
381 "Allow": ["http://example.org/",
382 "http://example.edu/"],
383 "Default": [true|false] /* If this is set to false, add-ons cannot be installed by the user */
389 This policy sets the behavior of Flash on the specified domains, as well as the default behavior.
394 "Allow": ["http://example.org/"], /* Sites on the allow list do not override Flash being completely disabled */
395 "Block": ["http://example.edu/"],
396 "Default": [true|false], /* If this is set to true, flash is always enabled. If it is set to false, Flash is never enabled */
397 "Locked": [true|false]
402 ### OverrideFirstRunPage (Machine only)
403 This policy allows you to override the first run page. If you leave the URL blank, the first run page will not be displayed.
407 "OverrideFirstRunPage": "http://example.org"
411 ### OverridePostUpdatePage (Machine only)
412 This policy allows you to override the upgrade page. If you leave the URL blank, the upgrade page will not be displayed.
416 "OverridePostUpdatePage": "http://example.org"
421 This policy allows you to specify bookmarks. You can have any number of bookmarks, although only ten are specified in the ADMX file.
422 Placement can be specified as either toolbar or menu. If a folder is specified, it is automatically created and bookmarks with the
423 same folder name are grouped together.
431 "URL": "http://example.org",
432 "Favicon": "http://example.com/favicon.ico",
433 "Placement": ["toolbar", "menu"],
434 "Folder": "FolderName"
441 This policy allows you to specify proxy settings. These settings correspond to the connection settings in Firefox preferences.
442 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.
447 "Mode": ["none", "system", "manual", "autoDetect", "autoConfig"],
448 "Locked": [true, false],
449 "HTTPProxy": "hostname",
450 "UseHTTPProxyForAllProtocols": [true, false],
451 "SSLProxy": "hostname",
452 "FTPProxy": "hostname",
453 "SOCKSProxy": "hostname",
454 "SOCKSVersion": [4, 5],
455 "Passthrough": "List of passthrough addresses/domains",
456 "AutoConfigURL": "URL_TO_AUTOCONFIG",
457 "AutoLogin": [true, false],
458 "UseProxyForDNS": [true, false]
463 ### SanitizeOnShutdown
464 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.
468 "SanitizeOnShutdown": [true|false]
472 ### SearchBar (Machine only)
473 This policy can be used to determine if the search bar is separate or combined with the URL bar.
477 "SearchBar": ["unified", "separate"]
481 ### WebsiteFilter (Machine only)
482 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.
487 "Block": ["<all_urls>"],
488 "Exceptions": ["http://example.org/*"]
493 ### Search Engines (Machine only)
494 This policy allows you to add new search engines, as well as set the default and prevent the install of search engines from web pages. Only Name and URLTemplate is required.
502 "URLTemplate": "URL including {searchTerms} to substitute for the terms",
503 "Method": ["GET", "POST"],
504 "IconURL": "URL to icon",
505 "Alias": "Alias that can be used to access the engine",
506 "Description": "Description",
507 "SuggestURLTemplate": "URL for suggestions using {searchTerms}"
510 "Default": "Name of engine",
511 "PreventInstalls": [true|false]