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

patrick-canterino.de