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

patrick-canterino.de