]> git.p6c8.net - policy-templates.git/blob - README-new.md
9a84512914344bad0f88df6c2e2ec95014c89558
[policy-templates.git] / README-new.md
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.
2
3 Policies can be specified using the Group Policy templates on Windows (https://github.com/mozilla/policy-templates/tree/master/windows), configuration profiles on macOS (https://github.com/mozilla/policy-templates/tree/master/mac), 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.
4
5 The content of the JSON file should look like this:
6 ```
7 {
8 "policies": {
9 ...POLICIES...
10 }
11 }
12 ```
13 Policies are documented below.
14
15
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.
17
18 ### AppUpdateURL
19 This policy is for changing the URL used for application update
20 ```
21 {
22 "AppUpdateURL": "http://yoursite.com"
23 }
24 ```
25
26
27 ### Authentication
28 This policy is for configuring sites that support integrated authentication. See https://developer.mozilla.org/en-US/docs/Mozilla/Integrated_authentication for more information.
29 ```
30 {
31 "policies": {
32 "Authentication": {
33 "SPNEGO": ["mydomain.com", "https://myotherdomain.com"],
34 "Delegated": ["mydomain.com", "https://myotherdomain.com"],
35 "NTLM": ["mydomain.com", "https://myotherdomain.com"],
36 "AllowNonFQDN": {
37 "SPNEGO": true,
38 "NTLM": true
39 }
40 }
41 }
42 }
43 ```
44 ### BlockAboutAddons
45 This policy removes access to about:addons.
46 ```
47 {
48 "policies": {
49 "BlockAboutAddons": true
50 }
51 }
52 ```
53 ### BlockAboutConfig
54 This policy removes access to about:config.
55 ```
56 {
57 "policies": {
58 "BlockAboutConfig": true
59 }
60 }
61 ```
62 ### BlockAboutProfiles
63 This policy removes access to about:profiles.
64 ```
65 {
66 "policies": {
67 "BlockAboutProfiles": true
68 }
69 }
70 ```
71 ### BlockAboutSupport
72 This policy removes access to about:support.
73 ```
74 {
75 "policies": {
76 "BlockAboutSupport": true
77 }
78 ```
79 ### Bookmarks
80 This policy allows you to specify bookmarks. You can have any number of bookmarks, although only ten are specified in the ADMX file.
81 Placement can be specified as either toolbar or menu. If a folder is specified, it is automatically created and bookmarks with the
82 same folder name are grouped together.
83 ```
84 {
85 "policies": {
86 "Bookmarks": [
87 {
88 "Title": "Example",
89 "URL": "http://example.org",
90 "Favicon": "http://example.com/favicon.ico",
91 "Placement": ["toolbar", "menu"],
92 "Folder": "FolderName"
93 }
94 ]
95 }
96 }
97 ```
98 ### CaptivePortal
99 A Boolean value that enables or disables captive portal support by setting and locking the preference `network.captive-portal-service.enabled`.
100
101 **Compatibility:** Firefox 67, Firefox ESR 60.7
102
103 **CCK2 Equivalent:** N/A
104
105 **Preferences Affected:** `network.captive-portal-service.enabled`
106
107 #### Windows
108 | Type | Registry Location |
109 | ---- | ----------------- |
110 | `Windows:REG_DWORD` | `Software\Policies\Mozilla\Firefox\CaptivePortal` |
111
112 #### macOS
113 ```
114 <dict>
115 <key>CaptivePortal</key>
116 <true/> | <false/>
117 </dict>
118 ```
119
120 #### JSON
121 ```
122 {
123 "policies": {
124 "CaptivePortal": true | false
125 }
126 }
127 ```
128 ### Certificates
129 This policy can be used to install certificates or to read certificates from the system certificate store on Mac and Windows.
130
131 The ImportEnterpriseRoots key will cause Firefox to import 3rd party certificates that have been added by a user administrator from the system certificate store.
132 It does not import all certificates. These certificates will not display in the Firefox certificates manager.
133
134 The Install Certificates key by default will search for certificates in the locations listed below.
135 Starting in Firefox 65 you can specify a fully qualified path including UNC. (See cert3.der and cert4.pem, in example).
136
137 **Be advised if you wish to load a certificate from a UNC path you must use double backslashes.**
138 Example: \\\\SERVER\\CERTS\\CERT5.PEM
139
140
141 If Firefox does not find something at your fully qualified path, it will search the default directories.
142
143 Certificates can be located in the following locations:
144 - Windows
145 - %USERPROFILE%\AppData\Local\Mozilla\Certificates
146 - %USERPROFILE%\AppData\Roaming\Mozilla\Certificates
147 - macOS
148 - /Library/Application Support/Mozilla/Certificates
149 - ~/Library/Application Support/Mozilla/Certificates
150 - Linux
151 - /usr/lib/mozilla/certificates
152 - /usr/lib64/mozilla/certificates
153 - ~/.mozilla/certificates
154
155
156 ```
157 {
158 "policies": {
159 "Certificates": {
160 "ImportEnterpriseRoots": true,
161 "Install": ["cert1.der", "cert2.pem", "%SYSTEMDRIVE%\\Company\\cert3.der", "/Library/Company/cert4.pem", "\\\\server\\certs\\cert.pem"]
162 }
163 }
164 }
165 ```
166 ### Cookies
167 This policy controls various settings related to cookies.
168 ```
169 {
170 "policies": {
171 "Cookies": {
172 "Allow": ["http://example.org/"], /* Domains where cookies are always allowed */
173 "Block": ["http://example.edu/"], /* Domains where cookies are always blocked */
174 "Default": [true|false], /* This sets the default value for "Accept cookies from websites" */
175 "AcceptThirdParty": ["always", "never", "from-visited"], /* This sets the default value for "Accept third-party cookies" */
176 "ExpireAtSessionEnd": [true|false], /* This determines when cookies expire */
177 "RejectTracker": [true|false], /* Only reject trackers */
178 "Locked": [true|false] /* If this is true, cookies preferences can't be changed */
179 }
180 }
181 }
182 ```
183 ### DNSOverHTTPS
184 This policy configures DNS over HTTPS.
185 ```
186 {
187 "policies": {
188 "DNSOverHTTPS": {
189 "Enabled": [true|false],
190 "ProviderURL": "URL_TO_ALTERNATE_PROVIDER",
191 "Locked": [true|false]
192 }
193 }
194 }
195 ```
196 ### DisableSetDesktopBackground
197 This policy removes the "Set As Desktop Background..." menuitem when right clicking on an image.
198 ```
199 {
200 "policies": {
201 "DisableSetDesktopBackground": true
202 }
203 }
204 ```
205 ### DisableMasterPasswordCreation
206 If this policy is set to true, the master password functionality is removed.
207 ```
208 {
209 "policies": {
210 "DisableMasterPasswordCreation": [true|false]
211 }
212 }
213 ```
214 ### DisableAppUpdate
215 This policy turns off application updates.
216 ```
217 {
218 "policies": {
219 "DisableAppUpdate": true
220 }
221 }
222 ```
223 ### DisableBuiltinPDFViewer
224 This policy disables the built in PDF viewer. PDF files are downloaded and sent externally.
225 ```
226 {
227 "policies": {
228 "DisableBuiltinPDFViewer": true
229 }
230 }
231 ```
232 ### DisableDeveloperTools
233 This policy removes access to all developer tools.
234 ```
235 {
236 "policies": {
237 "DisableDeveloperTools": true
238 }
239 }
240 ```
241 ### DisableFeedbackCommands
242 This policy disables the menus for reporting sites (Submit Feedback, Report Deceptive Site).
243 ```
244 {
245 "policies": {
246 "DisableFeedbackCommands": true
247 }
248 }
249 ```
250 ### DisableFirefoxScreenshots
251 This policy removes access to Firefox Screenshots.
252 ```
253 {
254 "policies": {
255 "DisableFirefoxScreenshots": true
256 }
257 }
258 ```
259 ### DisableFirefoxAccounts
260 This policy disables Sync.
261 ```
262 {
263 "policies": {
264 "DisableFirefoxAccounts": true
265 }
266 }
267 ```
268 ### DisableFirefoxStudies
269 This policy disables Firefox studies (Shield).
270 ```
271 {
272 "policies": {
273 "DisableFirefoxStudies": true
274 }
275 }
276 ```
277 ### DisableForgetButton
278 This policy disables the "Forget" button.
279 ```
280 {
281 "policies": {
282 "DisableForgetButton": true
283 }
284 }
285 ```
286 ### DisableFormHistory
287 This policy turns off the browser.formfill.enable preferences.
288 ```
289 {
290 "policies": {
291 "DisableFormHistory": true
292 }
293 }
294 ```
295 ### DisablePocket
296 This policy turns off Pocket.
297 ```
298 {
299 "policies": {
300 "DisablePocket": true
301 }
302 }
303 ```
304 ### DisablePrivateBrowsing
305 This policy removes access to private browsing.
306 ```
307 {
308 "policies": {
309 "DisablePrivateBrowsing": true
310 }
311 }
312 ```
313 ### DisableProfileImport
314 This policy disables the "Import data from another browser" option in the bookmarks window.
315 ```
316 {
317 "policies": {
318 "DisableProfileImport": true
319 }
320 }
321 ```
322 ### DisableProfileRefresh
323 This policy disables the Refresh Firefox button on about:support and support.mozilla.org.
324 ```
325 {
326 "policies": {
327 "DisableProfileRefresh": true
328 }
329 }
330 ```
331 ### DisableSafeMode
332 This policy disables safe mode on Windows and macOS only.
333 ```
334 {
335 "policies": {
336 "DisableSafeMode": true
337 }
338 }
339 ```
340 ### DisableSecurityBypass
341 This policy prevents the user from bypassing security in certain cases.
342 ```
343 {
344 "policies": {
345 "DisableSecurityBypass": {
346 "InvalidCertificate": [true|false], /* Prevents adding an exception when an invalid certificate is shown */
347 "SafeBrowsing": [true|false] /* Prevents selecting "ignore the risk" and visiting a harmful site anyway */
348 }
349 }
350 }
351 ```
352 ### DisableSystemAddonUpdate
353 This policy prevents system add-ons from being updated or installed.
354 ```
355 {
356 "policies": {
357 "DisableSystemAddonUpdate": true
358 }
359 }
360 ```
361 ### DisableTelemetry
362 This policy prevents the upload of telemetry data.
363
364 Mozilla recommends that you do not disable telemetry. Information collected through telemetry helps us build a better product for businesses like yours.
365 ```
366 {
367 "policies": {
368 "DisableTelemetry": true
369 }
370 }
371 ```
372 ### DisplayBookmarksToolbar
373 This policy turns on the bookmarks toolbar by default. A user can still turn it off, and it will stay off.
374 ```
375 {
376 "policies": {
377 "DisplayBookmarksToolbar": true
378 }
379 }
380 ```
381 ### DisplayMenuBar
382 This policy turns on the menubar by default. A user can still turn it off, and it will stay off.
383 ```
384 {
385 "policies": {
386 "DisplayMenuBar": true
387 }
388 }
389 ```
390 ### DontCheckDefaultBrowser
391 This policy stops Firefox from checking if it is the default browser at startup.
392 ```
393 {
394 "policies": {
395 "DontCheckDefaultBrowser": true
396 }
397 }
398 ```
399 ### EnableTrackingProtection
400 This policy affects tracking protection.
401
402 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.
403
404 If Value is set to false, tracking protection is disabled and locked in both the regular browser and private browsing.
405
406 If Value is set to true, tracking protection is enabled by default in both the regular browser and private browsing.
407
408 You can choose to set the Locked value if you want to prevent the user from changing it.
409 ```
410 {
411 "policies": {
412 "EnableTrackingProtection": {
413 "Value": [true, false],
414 "Locked": [true, false]
415 }
416 }
417 ```
418 ### Extensions
419 This policy controls the installation, uninstallation and locking of extensions. Locked extensions cannot be disabled or uninstalled.
420 For Install, you specify a list of URLs or paths.
421 For Uninstall and Locked, you specify extension IDs.
422 ```
423 {
424 "policies": {
425 "Extensions": {
426 "Install": ["https://addons.mozilla.org/firefox/downloads/somefile.xpi", "//path/to/xpi"],
427 "Uninstall": ["addon_id@mozilla.org"],
428 "Locked": ["addon_id@mozilla.org"]
429 }
430 }
431 }
432 ```
433 ### ExtensionUpdate
434 This policy enables or disables extension updates by setting and locking the preference `extensions.update.enabled`.
435 ```
436 {
437 "policies": {
438 "ExtensionUpdate": [true|false]
439 }
440 ```
441 ### HardwareAcceleration
442 This policy disables hardware acceleration by locking the preference layers.acceleration.disabled to true.
443 ```
444 {
445 "policies": {
446 "HardwareAcceleration": false
447 }
448 }
449 ```
450 ### NoDefaultBookmarks
451 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.
452 ```
453 {
454 "policies": {
455 "NoDefaultBookmarks": true
456 }
457 }
458 ```
459 ### OfferToSaveLogins
460 This policy sets the signon.rememberSignons preference. It determines whether or not Firefox offers to save passwords. It can either be enabled or disabled.
461 ```
462 {
463 "policies": {
464 "OfferToSaveLogins": true
465 }
466 }
467 ```
468 ### Homepage
469 This policy sets the default homepage value and the default start page. It can also be used to lock the homepage or add additional homepages.
470 ```
471 {
472 "policies": {
473 "Homepage": {
474 "URL": "http://example.com/",
475 "Locked": true,
476 "Additional": ["http://example.org/",
477 "http://example.edu/"],
478 "StartPage": ["none", "homepage", "previous-session"]
479 }
480 }
481 }
482 ```
483 ### PopupBlocking
484 This policy sets domains for which pop-up windows are allowed. It also sets the default pop-up policy.
485 ```
486 {
487 "policies": {
488 "PopupBlocking": {
489 "Allow": ["http://example.org/",
490 "http://example.edu/"],
491 "Default": [true|false], /* If this is set to false, pop-up window are enabled by default. */
492 "Locked": [true|false]
493 }
494 }
495 }
496 ```
497 ### InstallAddonsPermission
498 This policy sets domains that can install extensions, as well as the default behavior.
499 ```
500 {
501 "policies": {
502 "InstallAddonsPermission": {
503 "Allow": ["http://example.org/",
504 "http://example.edu/"],
505 "Default": [true|false] /* If this is set to false, add-ons cannot be installed by the user */
506 }
507 }
508 }
509 ```
510 ### FlashPlugin
511 This policy sets the behavior of Flash on the specified domains, as well as the default behavior.
512 ```
513 {
514 "policies": {
515 "FlashPlugin": {
516 "Allow": ["http://example.org/"], /* Sites on the allow list do not override Flash being completely disabled */
517 "Block": ["http://example.edu/"],
518 "Default": [true|false], /* If this is set to true, Flash is always enabled. If it is set to false, Flash is never enabled */
519 "Locked": [true|false]
520 }
521 }
522 }
523 ```
524 ### NetworkPrediction
525 This policy enables or disables network prediction (DNS prefetching) by setting and locking the preferences `network.dns.disablePrefetch` and `network.dns.disablePrefetchFromHTTPS`.
526 ```
527 {
528 "policies": {
529 "NetworkPrediction": [true|false]
530 }
531 ```
532 ### OverrideFirstRunPage
533 This policy allows you to override the first run page. If you leave the URL blank, the first run page will not be displayed.
534 ```
535 {
536 "policies": {
537 "OverrideFirstRunPage": "http://example.org"
538 }
539 }
540 ```
541 ### OverridePostUpdatePage
542 This policy allows you to override the upgrade page. If you leave the URL blank, the upgrade page will not be displayed.
543 ```
544 {
545 "policies": {
546 "OverridePostUpdatePage": "http://example.org"
547 }
548 }
549 ```
550 ### Permissions
551 This policy allows you to change the permissions associated with camera, microphone, location, and notifications
552 ```
553 {
554 "policies": {
555 "Permissions": {
556 "Camera": {
557 "Allow": ["http://example.org/"], /* Origins where camera access is allowed by default */
558 "Block": ["http://example.org/"], /* Origins where camera access is blocked by default */
559 "BlockNewRequests": [true|false], /* Block new requests to access the camera */
560 "Locked": [true|false] /* Don't allow the user to change the camera preferences */
561 },
562 "Microphone": {
563 "Allow": ["http://example.org/"], /* Origins where microphone access is allowed by default */
564 "Block": ["http://example.org/"], /* Origins where microphone access is blocked by default */
565 "BlockNewRequests": [true|false], /* Block new requests to access the microphone */
566 "Locked": [true|false] /* Don't allow the user to change the microphone preferences */
567 },
568 "Location": {
569 "Allow": ["http://example.org/"], /* Origins where location access is allowed by default */
570 "Block": ["http://example.org/"], /* Origins where location access is blocked by default */
571 "BlockNewRequests": [true|false], /* Block new requests to access location */
572 "Locked": [true|false] /* Don't allow the user to change the location preferences */
573 },
574 "Notifications": {
575 "Allow": ["http://example.org/"], /* Origins where sending notifications is allowed by default */
576 "Block": ["http://example.org/"], /* Origins where sending notifications is blocked by default */
577 "BlockNewRequests": [true|false], /* Block new requests to send notifications */
578 "Locked": [true|false] /* Don't allow the user to change the notification preferences */
579 }
580 }
581 }
582 }
583 ```
584 ### Proxy
585 This policy allows you to specify proxy settings. These settings correspond to the connection settings in Firefox preferences.
586 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.
587 ```
588 {
589 "policies": {
590 "Proxy": {
591 "Mode": ["none", "system", "manual", "autoDetect", "autoConfig"],
592 "Locked": [true, false],
593 "HTTPProxy": "hostname",
594 "UseHTTPProxyForAllProtocols": [true, false],
595 "SSLProxy": "hostname",
596 "FTPProxy": "hostname",
597 "SOCKSProxy": "hostname",
598 "SOCKSVersion": [4, 5],
599 "Passthrough": "List of passthrough addresses/domains",
600 "AutoConfigURL": "URL_TO_AUTOCONFIG",
601 "AutoLogin": [true, false],
602 "UseProxyForDNS": [true, false]
603 }
604 }
605 }
606 ```
607 ### RequestedLocales
608 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.
609 ```
610 {
611 "policies": {
612 "RequestedLocales": ["de", "en-US"]
613 }
614 }
615 ```
616 ### SanitizeOnShutdown
617 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.
618 ```
619 {
620 "policies": {
621 "SanitizeOnShutdown": [true|false]
622 }
623 }
624 ```
625 ### SearchBar
626 This policy can be used to determine if the search bar is separate or combined with the URL bar.
627 ```
628 {
629 "policies": {
630 "SearchBar": ["unified", "separate"]
631 }
632 }
633 ```
634 ### WebsiteFilter
635 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.
636 ```
637 {
638 "policies": {
639 "WebsiteFilter": {
640 "Block": ["<all_urls>"],
641 "Exceptions": ["http://example.org/*"]
642 }
643 }
644 }
645 ```
646 ### Search Engines (This policy is only available on the ESR.)
647 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.
648 ```
649 {
650 "policies": {
651 "SearchEngines": {
652 "Add": [
653 {
654 "Name": "",
655 "URLTemplate": "URL including {searchTerms} to substitute for the terms",
656 "Method": ["GET", "POST"],
657 "IconURL": "URL to icon",
658 "Alias": "Alias that can be used to access the engine",
659 "Description": "Description",
660 "SuggestURLTemplate": "URL for suggestions using {searchTerms}"
661 }
662 ],
663 "Default": "Name of engine",
664 "PreventInstalls": [true|false],
665 "Remove": ["Twitter", "Wikipedia (en)"]
666 }
667 }
668 }
669 ```
670 ### SecurityDevices
671 This policy allows you to add PKCS #11 Modules
672 ```
673 {
674 "policies": {
675 "SecurityDevices": {
676 "NAME_OF_DEVICE": "PATH_TO_LIBRARY_FOR_DEVICE"
677 }
678 }
679 }
680 ```
681 ### SSLVersionMin
682 This policy allows you to set the minimum TLS version.
683 ```
684 {
685 "policies": {
686 "SSSLVersionMin": ["tls1", "tls1.1", "tls1.2",. "tls1.3"]
687 }
688 }
689
690 ```
691 ### SSLVersionMax
692 This policy allows you to set the maximum TLS version.
693 ```
694 {
695 "policies": {
696 "SSSLVersionMax": ["tls1", "tls1.1", "tls1.2",. "tls1.3"]
697 }
698 }
699 ```

patrick-canterino.de