1 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/Content/Resources/distribution.
3 The content of the JSON file should look like this:
11 Policies are documented below. Note that even though comments are used in this file for documentation, comments are not allowed for JSON files.
13 This policy is for configuring sites that support integrated authentication. See https://developer.mozilla.org/en-US/docs/Mozilla/Integrated_authentication for more information.
18 "SPNEGO": ["mydomain.com", "https://myotherdomain.com"],
19 "Delegated": ["mydomain.com", "https://myotherdomain.com"],
20 "NTLM": ["mydomain.com", "https://myotherdomain.com"]
26 This policy removes access to about:addons.
30 "BlockAboutAddons": true
35 This policy removes access to about:config.
39 "BlockAboutConfig": true
43 ### BlockAboutProfiles
44 This policy removes access to about:profiles.
48 "BlockAboutProfiles": true
53 This policy removes access to about:support.
57 "BlockAboutSupport": true
60 ### DisableSetDesktopBackground
61 This policy removes the "Set As Desktop Background..." menuitem when right clicking on an image.
65 "DisableSetDesktopBackground": true
70 This is a Windows only policy that tells Firefox to read certificates from the Windows certificate store.
75 "ImportEnterpriseRoots": [true|false]
81 This policy controls various settings related to cookies.
86 "Allow": ["http://example.org/"], /* Domains where cookies are always allowed */
87 "Block": ["http://example.edu/"], /* Domains where cookies are always blocked */
88 "Default": [true|false], /* This sets the default value for "Accept cookies from websites" */
89 "AcceptThirdParty": ["always", "never", "from-visited"], /* This sets the default value for "Accept third-party cookies" */
90 "ExpireAtSessionEnd": [true|false], /* This determines when cookies expire */
91 "Locked": [true|false] /* If this is true, cookies preferences can't be changed */
96 ### DisableMasterPasswordCreation
97 This policy removes the master password functionality if set to true.
101 "DisableMasterPasswordCreation": [true|false]
106 This policy turns off application updates.
110 "DisableAppUpdate": true
114 ### DisableBuiltinPDFViewer
115 This policy disables the built in PDF viewer. PDF files are downloaded and sent externally.
119 "DisableBuiltinPDFViewer": true
123 ### DisableDeveloperTools
124 This policy removes access to all developer tools.
128 "DisableDeveloperTools": true
132 ### DisableFeedbackCommands
133 This policy disables the menus for reporting sites (Submit Feedback, Report Deceptive Site)
137 "DisableFeedbackCommands": true
141 ### DisableFirefoxScreenshots
142 This policy removes access to Firefox Screenshots
146 "DisableFirefoxScreenshots": true
150 ### DisableFirefoxAccounts
151 This policy disables Sync
155 "DisableFirefoxAccounts": true
159 ### DisableFirefoxStudies
160 This policy disables Firefox studies (Shield)
164 "DisableFirefoxAccounts": true
168 ### DisableForgetButton
169 This policy disables the "Forget" button
173 "DisableForgetButton": true
177 ### DisableFormHistory
178 This policy turns off the browser.formfill.enable preferences
182 "DisableFormHistory": true
187 This policy turns off Pocket
191 "DisablePocket": true
195 ### DisablePrivateBrowsing
196 This policy removes access to private browsing
200 "DisablePrivateBrowsing": true
204 ### DisableProfileRefresh
205 This policy disables the Refresh Firefox button on about:support and support.mozilla.org.
209 "DisableProfileRefresh": true
214 This policy disables safe mode on Windows only
218 "DisableSafeMode": true
222 ### DisableSecurityBypass
223 This policy prevents the user from bypassign security in certain cases.
227 "DisableSecurityBypass": {
228 "InvalidCertificate": [true|false], /* Prevents adding an exception when an invalid certificate is shown */
229 "SafeBrowsing": [true|false] /* Prevents selecting "ignore the risk" and visiting a harmful site anyway */
234 ### DisableSystemAddonUpdate
235 This policy prevents system add-ons from being updated or installed.
239 "DisableSystemAddonUpdate": true
244 This policy prevents the upload of telemetry data.
246 Mozilla recommends that you do not disable telemetry. Information collected through telemetry helps us build a better product for businesses like yours.
250 "DisableTelemetry": true
254 ### DisplayBookmarksToolbar
255 This policy turns on the bookmarks toolbar by default. A user can still turn it off and it will stay off.
259 "DisplayBookmarksToolbar": true
264 This policy turns on the menubar by default. A user can still turn it off and it will stay off.
268 "DisplayMenuBar": true
272 ### DontCheckDefaultBrowser
273 This policy stops Firefox from checking if it is the default browser at startup.
277 "DontCheckDefaultBrowser": true
281 ### EnableTrackingProtection
282 This policy affects tracking protection.
284 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.
286 If Value is set to false, tracking protection is disabled and locked in both the browser and private browsing.
288 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.
292 "EnableTrackingProtection": {
293 "Value": [true, false],
294 "Locked": [true, false]
298 This policy controls the install, uninstall and locking of extensions. Locked extensions cannot be disabled or uninstalled.
299 For Install, you can specify a list of URLs or paths.
300 For Uninstall and Locked, you specify extension IDs.
305 "Install": ["https://addons.mozilla.org/firefox/downloads/somefile.xpi", "//path/to/xpi"]
306 "Uninstall": ["addon_id@mozilla.org"],
307 "Locked": ["addon_id@mozilla.org"]
310 ### NoDefaultBookmarks
311 Don't create the default bookmarks or the Smart Bookmarks (Most Visited, Recent Tags). Note: this policy is only effective if used before the first run of the profile.
315 "NoDefaultBookmarks": true
319 ### OfferToSaveLogins
320 This policy sets the signon.rememberSignons preference. It determines whether or not Firefox offers to save passwords. It can either be enabled or disabled.
324 "OfferToSaveLogins": true
329 This policy sets the default homepage value. It can also be used to lock the homepage and add additional homepages.
334 "URL": "http://example.com/",
336 "Additional": ["http://example.org/",
337 "http://example.edu/"]
343 This policy sets domains for which pop-up windows are allowed. It also set the default pop-up policy
348 "Allow": ["http://example.org/",
349 "http://example.edu/"],
350 "Default": [true|false], /* If this is set to false, pop-up window are enabled by default. */
351 "Locked": [true|false]
356 ### InstallAddonsPermission
357 This policy sets domains that can install extensions, as well as the default behavior.
361 "InstallAddonsPermission": {
362 "Allow": ["http://example.org/",
363 "http://example.edu/"]
364 "Default": [true|false], /* If this is set to false, add-ons cannot be installed by the user */
370 This policy sets the behavior of Flash on the specified domains, as well as the default behavior.
375 "Allow": ["http://example.org/"], /* Sites on the allow list do not override Flash being completely disabled */
376 "Block": ["http://example.edu/"],
377 "Default": [true|false], /* If this is set to true, flash is always enabled. If it is set to false, Flash is never enabled */
378 "Locked": [true|false]
383 ### OverrideFirstRunPage
384 This policy allowed you to override the first run page. If you leave the URL blank, the first run page will not be displayed.
388 "OverrideFirstRunPage": "http://example.org"
392 ### OverridePostUpdatePage
393 This policy allowed you to override the upgrade page page. If you leave the URL blank, the upgrade page will not be displayed.
397 "OverridePostUpdatePage": "http://example.org"
402 This policy allows you to specify bookmarks. You can have any number of bookmarks although only ten are specified in the ADMX file.
403 Placement can be specified as either toolbar or menu. If a folder is specified, it is automatically created and bookmarks with the
404 same folder name are grouped together.
412 "URL": "http://example.org",
413 "Favicon": "http://example.com/favicon.ico",
414 "Placement": ["toolbar", "menu"],
415 "Folder": "FolderName"
422 This policy allows you to specify proxy settings. These settings correspond to the connection settings in Firefox preferences.
423 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.
427 "Mode": ["none", "system", "manual", "autoDetect", "autoConfig"]
428 "Locked": [true, false]
429 "HTTPProxy": "hostname",
430 "UseHTTPProxyForAllProtocols": [true, false]
431 "SSLProxy": "hostname",
432 "FTPProxy": "hostname",
433 "SOCKSProxy": "hostname",
434 "SOCKSVersion": [4, 5],
435 "Passthrough": "List of passthrough addresses/domains",
436 "AutoConfigURL": "URL_TO_AUTOCONFIG",
437 "AutoLogin": [true, false],
438 "UseProxyForDNS": [true, false]
442 ### SanitizeOnShutdown
443 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.
447 "SanitizeOnShutdown": [true|false]
452 This policy can be used to determine if the search bar is separate or combined with the URL bar.
456 "SearchBar": ["unified", "separate"]
461 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 accesses are supported at the moment. The arrays are limited to 1000 entries each.
465 "Block": ["<all_urls>"],
466 "Exceptions": ["http://example.org/*"]
471 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.
479 "URLTemplate": "URL including {searchTerms} to substitute for the terms",
480 "Method": ["GET", "POST"],
481 "IconURL": "URL to icon",
482 "Alias": "Alias that can be used to access the engine",
483 "Description": "Description",
484 "SuggestURLTemplate": "URL for suggestions using {searchTerms}"
487 "Default": "Name of engine",
488 "PreventInstalls": [true|false]