]> git.p6c8.net - policy-templates.git/blob - README.md
f54ef532d4a20d57ea9a04fcd3a509ca11d16152
[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 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.
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 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".
19
20 ### Authentication
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.
22 ```
23 {
24 "policies": {
25 "Authentication": {
26 "SPNEGO": ["mydomain.com", "https://myotherdomain.com"],
27 "Delegated": ["mydomain.com", "https://myotherdomain.com"],
28 "NTLM": ["mydomain.com", "https://myotherdomain.com"],
29 "AllowNonFQDN": {
30 "SPNEGO": true,
31 "NTLM": true
32 }
33 }
34 }
35 }
36 ```
37 ### BlockAboutAddons
38 This policy removes access to about:addons.
39 ```
40 {
41 "policies": {
42 "BlockAboutAddons": true
43 }
44 }
45 ```
46 ### BlockAboutConfig
47 This policy removes access to about:config.
48 ```
49 {
50 "policies": {
51 "BlockAboutConfig": true
52 }
53 }
54 ```
55 ### BlockAboutProfiles
56 This policy removes access to about:profiles.
57 ```
58 {
59 "policies": {
60 "BlockAboutProfiles": true
61 }
62 }
63 ```
64 ### BlockAboutSupport
65 This policy removes access to about:support.
66 ```
67 {
68 "policies": {
69 "BlockAboutSupport": true
70 }
71 ```
72 ### DisableSetDesktopBackground
73 This policy removes the "Set As Desktop Background..." menuitem when right clicking on an image.
74 ```
75 {
76 "policies": {
77 "DisableSetDesktopBackground": true
78 }
79 }
80 ```
81 ### Certificates
82 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.
83 ```
84 {
85 "policies": {
86 "Certificates": {
87 "ImportEnterpriseRoots": true
88 }
89 }
90 }
91 ```
92 ### Cookies
93 This policy controls various settings related to cookies.
94 ```
95 {
96 "policies": {
97 "Cookies": {
98 "Allow": ["http://example.org/"], /* Domains where cookies are always allowed */
99 "Block": ["http://example.edu/"], /* Domains where cookies are always blocked */
100 "Default": [true|false], /* This sets the default value for "Accept cookies from websites" */
101 "AcceptThirdParty": ["always", "never", "from-visited"], /* This sets the default value for "Accept third-party cookies" */
102 "ExpireAtSessionEnd": [true|false], /* This determines when cookies expire */
103 "Locked": [true|false] /* If this is true, cookies preferences can't be changed */
104 }
105 }
106 }
107 ```
108 ### DisableMasterPasswordCreation
109 If this policy is set to true, the master password functionality is removed.
110 ```
111 {
112 "policies": {
113 "DisableMasterPasswordCreation": [true|false]
114 }
115 }
116 ```
117 ### DisableAppUpdate (Machine only)
118 This policy turns off application updates.
119 ```
120 {
121 "policies": {
122 "DisableAppUpdate": true
123 }
124 }
125 ```
126 ### DisableBuiltinPDFViewer
127 This policy disables the built in PDF viewer. PDF files are downloaded and sent externally.
128 ```
129 {
130 "policies": {
131 "DisableBuiltinPDFViewer": true
132 }
133 }
134 ```
135 ### DisableDeveloperTools
136 This policy removes access to all developer tools.
137 ```
138 {
139 "policies": {
140 "DisableDeveloperTools": true
141 }
142 }
143 ```
144 ### DisableFeedbackCommands
145 This policy disables the menus for reporting sites (Submit Feedback, Report Deceptive Site).
146 ```
147 {
148 "policies": {
149 "DisableFeedbackCommands": true
150 }
151 }
152 ```
153 ### DisableFirefoxScreenshots
154 This policy removes access to Firefox Screenshots.
155 ```
156 {
157 "policies": {
158 "DisableFirefoxScreenshots": true
159 }
160 }
161 ```
162 ### DisableFirefoxAccounts
163 This policy disables Sync.
164 ```
165 {
166 "policies": {
167 "DisableFirefoxAccounts": true
168 }
169 }
170 ```
171 ### DisableFirefoxStudies
172 This policy disables Firefox studies (Shield).
173 ```
174 {
175 "policies": {
176 "DisableFirefoxStudies": true
177 }
178 }
179 ```
180 ### DisableForgetButton
181 This policy disables the "Forget" button.
182 ```
183 {
184 "policies": {
185 "DisableForgetButton": true
186 }
187 }
188 ```
189 ### DisableFormHistory
190 This policy turns off the browser.formfill.enable preferences.
191 ```
192 {
193 "policies": {
194 "DisableFormHistory": true
195 }
196 }
197 ```
198 ### DisablePocket
199 This policy turns off Pocket.
200 ```
201 {
202 "policies": {
203 "DisablePocket": true
204 }
205 }
206 ```
207 ### DisablePrivateBrowsing
208 This policy removes access to private browsing.
209 ```
210 {
211 "policies": {
212 "DisablePrivateBrowsing": true
213 }
214 }
215 ```
216 ### DisableProfileImport
217 This policy disables the "Import data from another browser" option in the bookmarks window.
218 ```
219 {
220 "policies": {
221 "DisableProfileImport": true
222 }
223 }
224 ```
225 ### DisableProfileRefresh
226 This policy disables the Refresh Firefox button on about:support and support.mozilla.org.
227 ```
228 {
229 "policies": {
230 "DisableProfileRefresh": true
231 }
232 }
233 ```
234 ### DisableSafeMode
235 This policy disables safe mode on Windows only.
236 ```
237 {
238 "policies": {
239 "DisableSafeMode": true
240 }
241 }
242 ```
243 ### DisableSecurityBypass
244 This policy prevents the user from bypassing security in certain cases.
245 ```
246 {
247 "policies": {
248 "DisableSecurityBypass": {
249 "InvalidCertificate": [true|false], /* Prevents adding an exception when an invalid certificate is shown */
250 "SafeBrowsing": [true|false] /* Prevents selecting "ignore the risk" and visiting a harmful site anyway */
251 }
252 }
253 }
254 ```
255 ### DisableSystemAddonUpdate (Machine only)
256 This policy prevents system add-ons from being updated or installed.
257 ```
258 {
259 "policies": {
260 "DisableSystemAddonUpdate": true
261 }
262 }
263 ```
264 ### DisableTelemetry (Machine only)
265 This policy prevents the upload of telemetry data.
266
267 Mozilla recommends that you do not disable telemetry. Information collected through telemetry helps us build a better product for businesses like yours.
268 ```
269 {
270 "policies": {
271 "DisableTelemetry": true
272 }
273 }
274 ```
275 ### DisplayBookmarksToolbar
276 This policy turns on the bookmarks toolbar by default. A user can still turn it off, and it will stay off.
277 ```
278 {
279 "policies": {
280 "DisplayBookmarksToolbar": true
281 }
282 }
283 ```
284 ### DisplayMenuBar
285 This policy turns on the menubar by default. A user can still turn it off, and it will stay off.
286 ```
287 {
288 "policies": {
289 "DisplayMenuBar": true
290 }
291 }
292 ```
293 ### DontCheckDefaultBrowser
294 This policy stops Firefox from checking if it is the default browser at startup.
295 ```
296 {
297 "policies": {
298 "DontCheckDefaultBrowser": true
299 }
300 }
301 ```
302 ### EnableTrackingProtection
303 This policy affects tracking protection.
304
305 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.
306
307 If Value is set to false, tracking protection is disabled and locked in both the browser and private browsing.
308
309 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.
310 ```
311 {
312 "policies": {
313 "EnableTrackingProtection": {
314 "Value": [true, false],
315 "Locked": [true, false]
316 }
317 }
318 ```
319 ### Extensions (Machine only)
320 This policy controls the installation, uninstallation and locking of extensions. Locked extensions cannot be disabled or uninstalled.
321 For Install, you specify a list of URLs or paths.
322 For Uninstall and Locked, you specify extension IDs.
323 ```
324 {
325 "policies": {
326 "Extensions": {
327 "Install": ["https://addons.mozilla.org/firefox/downloads/somefile.xpi", "//path/to/xpi"]
328 "Uninstall": ["addon_id@mozilla.org"],
329 "Locked": ["addon_id@mozilla.org"]
330 }
331 }
332 ```
333 ### HardwareAcceleration
334 This policy disables hardware acceleration by locking the preference layers.acceleration.disabled to true.
335 ```
336 {
337 "policies": {
338 "HardwareAcceleration": false
339 }
340 }
341 ```
342 ### NoDefaultBookmarks
343 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.
344 ```
345 {
346 "policies": {
347 "NoDefaultBookmarks": true
348 }
349 }
350 ```
351 ### OfferToSaveLogins
352 This policy sets the signon.rememberSignons preference. It determines whether or not Firefox offers to save passwords. It can either be enabled or disabled.
353 ```
354 {
355 "policies": {
356 "OfferToSaveLogins": true
357 }
358 }
359 ```
360 ### Homepage (Machine only)
361 This policy sets the default homepage value. It can also be used to lock the homepage and add additional homepages.
362 ```
363 {
364 "policies": {
365 "Homepage": {
366 "URL": "http://example.com/",
367 "Locked": true,
368 "Additional": ["http://example.org/",
369 "http://example.edu/"]
370 }
371 }
372 }
373 ```
374 ### PopupBlocking
375 This policy sets domains for which pop-up windows are allowed. It also sets the default pop-up policy.
376 ```
377 {
378 "policies": {
379 "PopupBlocking": {
380 "Allow": ["http://example.org/",
381 "http://example.edu/"],
382 "Default": [true|false], /* If this is set to false, pop-up window are enabled by default. */
383 "Locked": [true|false]
384 }
385 }
386 }
387 ```
388 ### InstallAddonsPermission
389 This policy sets domains that can install extensions, as well as the default behavior.
390 ```
391 {
392 "policies": {
393 "InstallAddonsPermission": {
394 "Allow": ["http://example.org/",
395 "http://example.edu/"],
396 "Default": [true|false] /* If this is set to false, add-ons cannot be installed by the user */
397 }
398 }
399 }
400 ```
401 ### FlashPlugin
402 This policy sets the behavior of Flash on the specified domains, as well as the default behavior.
403 ```
404 {
405 "policies": {
406 "FlashPlugin": {
407 "Allow": ["http://example.org/"], /* Sites on the allow list do not override Flash being completely disabled */
408 "Block": ["http://example.edu/"],
409 "Default": [true|false], /* If this is set to true, Flash is always enabled. If it is set to false, Flash is never enabled */
410 "Locked": [true|false]
411 }
412 }
413 }
414 ```
415 ### OverrideFirstRunPage (Machine only)
416 This policy allows you to override the first run page. If you leave the URL blank, the first run page will not be displayed.
417 ```
418 {
419 "policies": {
420 "OverrideFirstRunPage": "http://example.org"
421 }
422 }
423 ```
424 ### OverridePostUpdatePage (Machine only)
425 This policy allows you to override the upgrade page. If you leave the URL blank, the upgrade page will not be displayed.
426 ```
427 {
428 "policies": {
429 "OverridePostUpdatePage": "http://example.org"
430 }
431 }
432 ```
433 ### Bookmarks
434 This policy allows you to specify bookmarks. You can have any number of bookmarks, although only ten are specified in the ADMX file.
435 Placement can be specified as either toolbar or menu. If a folder is specified, it is automatically created and bookmarks with the
436 same folder name are grouped together.
437
438 ```
439 {
440 "policies": {
441 "Bookmarks": [
442 {
443 "Title": "Example",
444 "URL": "http://example.org",
445 "Favicon": "http://example.com/favicon.ico",
446 "Placement": ["toolbar", "menu"],
447 "Folder": "FolderName"
448 }
449 ]
450 }
451 }
452 ```
453 ### Proxy
454 This policy allows you to specify proxy settings. These settings correspond to the connection settings in Firefox preferences.
455 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.
456 ```
457 {
458 "policies": {
459 "Proxy": {
460 "Mode": ["none", "system", "manual", "autoDetect", "autoConfig"],
461 "Locked": [true, false],
462 "HTTPProxy": "hostname",
463 "UseHTTPProxyForAllProtocols": [true, false],
464 "SSLProxy": "hostname",
465 "FTPProxy": "hostname",
466 "SOCKSProxy": "hostname",
467 "SOCKSVersion": [4, 5],
468 "Passthrough": "List of passthrough addresses/domains",
469 "AutoConfigURL": "URL_TO_AUTOCONFIG",
470 "AutoLogin": [true, false],
471 "UseProxyForDNS": [true, false]
472 }
473 }
474 }
475 ```
476 ### SanitizeOnShutdown
477 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.
478 ```
479 {
480 "policies": {
481 "SanitizeOnShutdown": [true|false]
482 }
483 }
484 ```
485 ### SearchBar
486 This policy can be used to determine if the search bar is separate or combined with the URL bar.
487 ```
488 {
489 "policies": {
490 "SearchBar": ["unified", "separate"]
491 }
492 }
493 ```
494 ### WebsiteFilter (Machine only)
495 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.
496 ```
497 {
498 "policies": {
499 "WebsiteFilter": {
500 "Block": ["<all_urls>"],
501 "Exceptions": ["http://example.org/*"]
502 }
503 }
504 }
505 ```
506 ### Search Engines (This policy is only available on the ESR.)
507 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.
508 ```
509 {
510 "policies": {
511 "SearchEngines": {
512 "Add": [
513 {
514 "Name": "",
515 "URLTemplate": "URL including {searchTerms} to substitute for the terms",
516 "Method": ["GET", "POST"],
517 "IconURL": "URL to icon",
518 "Alias": "Alias that can be used to access the engine",
519 "Description": "Description",
520 "SuggestURLTemplate": "URL for suggestions using {searchTerms}"
521 }
522 ],
523 "Default": "Name of engine",
524 "PreventInstalls": [true|false],
525 "Remove": ["Twitter", "Wikipedia (en)"]
526 }
527 }
528 }
529 ```
530 ### Permissions
531 This policy allows you to change the permissions associated with camera, microphone, location, and notifications
532 ```
533 {
534 "policies": {
535 "Permissions": {
536 "Camera": {
537 "Allow": ["http://example.org/"], /* Origins where camera access is allowed by default */
538 "Block": ["http://example.org/"], /* Origins where camera access is blocked by default */
539 "BlockNewRequests": [true|false], /* Block new requests to access the camera */
540 "Locked": [true|false] /* Don't allow the user to change the camera preferences */
541 },
542 "Microphone": {
543 "Allow": ["http://example.org/"], /* Origins where microphone access is allowed by default */
544 "Block": ["http://example.org/"], /* Origins where microphone access is blocked by default */
545 "BlockNewRequests": [true|false], /* Block new requests to access the microphone */
546 "Locked": [true|false] /* Don't allow the user to change the microphone preferences */
547 },
548 "Location": {
549 "Allow": ["http://example.org/"], /* Origins where location access is allowed by default */
550 "Block": ["http://example.org/"], /* Origins where location access is blocked by default */
551 "BlockNewRequests": [true|false], /* Block new requests to access location */
552 "Locked": [true|false] /* Don't allow the user to change the location preferences */
553 },
554 "Notifications": {
555 "Allow": ["http://example.org/"], /* Origins where sending notifications is allowed by default */
556 "Block": ["http://example.org/"], /* Origins where sending notifications is blocked by default */
557 "BlockNewRequests": [true|false], /* Block new requests to send notifications */
558 "Locked": [true|false] /* Don't allow the user to change the notification preferences */
559 }
560 }
561 }
562 }
563 ```

patrick-canterino.de