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 */
118 ### DisableSetDesktopBackground
119 This policy removes the "Set As Desktop Background..." menuitem when right clicking on an image.
123 "DisableSetDesktopBackground": true
127 ### DisableMasterPasswordCreation
128 If this policy is set to true, the master password functionality is removed.
132 "DisableMasterPasswordCreation": [true|false]
136 ### DisableAppUpdate (Machine only)
137 This policy turns off application updates.
141 "DisableAppUpdate": true
145 ### DisableBuiltinPDFViewer
146 This policy disables the built in PDF viewer. PDF files are downloaded and sent externally.
150 "DisableBuiltinPDFViewer": true
154 ### DisableDeveloperTools
155 This policy removes access to all developer tools.
159 "DisableDeveloperTools": true
163 ### DisableFeedbackCommands
164 This policy disables the menus for reporting sites (Submit Feedback, Report Deceptive Site).
168 "DisableFeedbackCommands": true
172 ### DisableFirefoxScreenshots
173 This policy removes access to Firefox Screenshots.
177 "DisableFirefoxScreenshots": true
181 ### DisableFirefoxAccounts
182 This policy disables Sync.
186 "DisableFirefoxAccounts": true
190 ### DisableFirefoxStudies
191 This policy disables Firefox studies (Shield).
195 "DisableFirefoxStudies": true
199 ### DisableForgetButton
200 This policy disables the "Forget" button.
204 "DisableForgetButton": true
208 ### DisableFormHistory
209 This policy turns off the browser.formfill.enable preferences.
213 "DisableFormHistory": true
218 This policy turns off Pocket.
222 "DisablePocket": true
226 ### DisablePrivateBrowsing
227 This policy removes access to private browsing.
231 "DisablePrivateBrowsing": true
235 ### DisableProfileImport
236 This policy disables the "Import data from another browser" option in the bookmarks window.
240 "DisableProfileImport": true
244 ### DisableProfileRefresh
245 This policy disables the Refresh Firefox button on about:support and support.mozilla.org.
249 "DisableProfileRefresh": true
254 This policy disables safe mode on Windows only.
258 "DisableSafeMode": true
262 ### DisableSecurityBypass
263 This policy prevents the user from bypassing security in certain cases.
267 "DisableSecurityBypass": {
268 "InvalidCertificate": [true|false], /* Prevents adding an exception when an invalid certificate is shown */
269 "SafeBrowsing": [true|false] /* Prevents selecting "ignore the risk" and visiting a harmful site anyway */
274 ### DisableSystemAddonUpdate (Machine only)
275 This policy prevents system add-ons from being updated or installed.
279 "DisableSystemAddonUpdate": true
283 ### DisableTelemetry (Machine only)
284 This policy prevents the upload of telemetry data.
286 Mozilla recommends that you do not disable telemetry. Information collected through telemetry helps us build a better product for businesses like yours.
290 "DisableTelemetry": true
294 ### DisplayBookmarksToolbar
295 This policy turns on the bookmarks toolbar by default. A user can still turn it off, and it will stay off.
299 "DisplayBookmarksToolbar": true
304 This policy turns on the menubar by default. A user can still turn it off, and it will stay off.
308 "DisplayMenuBar": true
312 ### DontCheckDefaultBrowser
313 This policy stops Firefox from checking if it is the default browser at startup.
317 "DontCheckDefaultBrowser": true
321 ### EnableTrackingProtection
322 This policy affects tracking protection.
324 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.
326 If Value is set to false, tracking protection is disabled and locked in both the browser and private browsing.
328 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.
332 "EnableTrackingProtection": {
333 "Value": [true, false],
334 "Locked": [true, false]
338 ### Extensions (Machine only)
339 This policy controls the installation, uninstallation and locking of extensions. Locked extensions cannot be disabled or uninstalled.
340 For Install, you specify a list of URLs or paths.
341 For Uninstall and Locked, you specify extension IDs.
346 "Install": ["https://addons.mozilla.org/firefox/downloads/somefile.xpi", "//path/to/xpi"],
347 "Uninstall": ["addon_id@mozilla.org"],
348 "Locked": ["addon_id@mozilla.org"]
352 ### HardwareAcceleration
353 This policy disables hardware acceleration by locking the preference layers.acceleration.disabled to true.
357 "HardwareAcceleration": false
361 ### NoDefaultBookmarks
362 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.
366 "NoDefaultBookmarks": true
370 ### OfferToSaveLogins
371 This policy sets the signon.rememberSignons preference. It determines whether or not Firefox offers to save passwords. It can either be enabled or disabled.
375 "OfferToSaveLogins": true
379 ### Homepage (Machine only)
380 This policy sets the default homepage value. It can also be used to lock the homepage and add additional homepages.
385 "URL": "http://example.com/",
387 "Additional": ["http://example.org/",
388 "http://example.edu/"]
394 This policy sets domains for which pop-up windows are allowed. It also sets the default pop-up policy.
399 "Allow": ["http://example.org/",
400 "http://example.edu/"],
401 "Default": [true|false], /* If this is set to false, pop-up window are enabled by default. */
402 "Locked": [true|false]
407 ### InstallAddonsPermission
408 This policy sets domains that can install extensions, as well as the default behavior.
412 "InstallAddonsPermission": {
413 "Allow": ["http://example.org/",
414 "http://example.edu/"],
415 "Default": [true|false] /* If this is set to false, add-ons cannot be installed by the user */
421 This policy sets the behavior of Flash on the specified domains, as well as the default behavior.
426 "Allow": ["http://example.org/"], /* Sites on the allow list do not override Flash being completely disabled */
427 "Block": ["http://example.edu/"],
428 "Default": [true|false], /* If this is set to true, Flash is always enabled. If it is set to false, Flash is never enabled */
429 "Locked": [true|false]
434 ### OverrideFirstRunPage (Machine only)
435 This policy allows you to override the first run page. If you leave the URL blank, the first run page will not be displayed.
439 "OverrideFirstRunPage": "http://example.org"
443 ### OverridePostUpdatePage (Machine only)
444 This policy allows you to override the upgrade page. If you leave the URL blank, the upgrade page will not be displayed.
448 "OverridePostUpdatePage": "http://example.org"
453 This policy allows you to change the permissions associated with camera, microphone, location, and notifications
459 "Allow": ["http://example.org/"], /* Origins where camera access is allowed by default */
460 "Block": ["http://example.org/"], /* Origins where camera access is blocked by default */
461 "BlockNewRequests": [true|false], /* Block new requests to access the camera */
462 "Locked": [true|false] /* Don't allow the user to change the camera preferences */
465 "Allow": ["http://example.org/"], /* Origins where microphone access is allowed by default */
466 "Block": ["http://example.org/"], /* Origins where microphone access is blocked by default */
467 "BlockNewRequests": [true|false], /* Block new requests to access the microphone */
468 "Locked": [true|false] /* Don't allow the user to change the microphone preferences */
471 "Allow": ["http://example.org/"], /* Origins where location access is allowed by default */
472 "Block": ["http://example.org/"], /* Origins where location access is blocked by default */
473 "BlockNewRequests": [true|false], /* Block new requests to access location */
474 "Locked": [true|false] /* Don't allow the user to change the location preferences */
477 "Allow": ["http://example.org/"], /* Origins where sending notifications is allowed by default */
478 "Block": ["http://example.org/"], /* Origins where sending notifications is blocked by default */
479 "BlockNewRequests": [true|false], /* Block new requests to send notifications */
480 "Locked": [true|false] /* Don't allow the user to change the notification preferences */
487 This policy allows you to specify proxy settings. These settings correspond to the connection settings in Firefox preferences.
488 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.
493 "Mode": ["none", "system", "manual", "autoDetect", "autoConfig"],
494 "Locked": [true, false],
495 "HTTPProxy": "hostname",
496 "UseHTTPProxyForAllProtocols": [true, false],
497 "SSLProxy": "hostname",
498 "FTPProxy": "hostname",
499 "SOCKSProxy": "hostname",
500 "SOCKSVersion": [4, 5],
501 "Passthrough": "List of passthrough addresses/domains",
502 "AutoConfigURL": "URL_TO_AUTOCONFIG",
503 "AutoLogin": [true, false],
504 "UseProxyForDNS": [true, false]
510 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.
514 "RequestedLocales": ["de", "en-US"]
518 ### SanitizeOnShutdown
519 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.
523 "SanitizeOnShutdown": [true|false]
528 This policy can be used to determine if the search bar is separate or combined with the URL bar.
532 "SearchBar": ["unified", "separate"]
536 ### WebsiteFilter (Machine only)
537 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.
542 "Block": ["<all_urls>"],
543 "Exceptions": ["http://example.org/*"]
548 ### Search Engines (This policy is only available on the ESR.)
549 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.
557 "URLTemplate": "URL including {searchTerms} to substitute for the terms",
558 "Method": ["GET", "POST"],
559 "IconURL": "URL to icon",
560 "Alias": "Alias that can be used to access the engine",
561 "Description": "Description",
562 "SuggestURLTemplate": "URL for suggestions using {searchTerms}"
565 "Default": "Name of engine",
566 "PreventInstalls": [true|false],
567 "Remove": ["Twitter", "Wikipedia (en)"]
573 This policy allows you to add PKCS #11 Modules
578 "NAME_OF_DEVICE": "PATH_TO_LIBRARY_FOR_DEVICE"