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

patrick-canterino.de