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

patrick-canterino.de