]> git.p6c8.net - policy-templates.git/commitdiff
WebsiteFilter Policy
authorMichael Kaply <consulting@kaply.com>
Mon, 9 Apr 2018 21:50:51 +0000 (16:50 -0500)
committerMichael Kaply <consulting@kaply.com>
Mon, 9 Apr 2018 21:50:51 +0000 (16:50 -0500)
README.md
windows/en-US/firefox.adml
windows/firefox.admx

index 33d27f131235832d6bff61c9429b541db21d84d4..9938b1af70c25fdf15a6005c11f1910a7954e9c5 100644 (file)
--- a/README.md
+++ b/README.md
@@ -454,3 +454,13 @@ This policy can be used to determine if the search bar is separate or combined w
   }
 }
 ```
+### WebsiteFilter
+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 accesses are supported at the moment. The arrays are limited to 1000 entries each.
+```
+{
+  "policies": {
+    "Block": ["<all_urls>"],
+    "Exceptions": ["http://example.org/*"]
+  }
+}
+```
index eaa9e5cc01a39863da843287f7f34bd6a2ed4257..6e9bfe9346a3645d99a3d86b595927e84034894a 100644 (file)
@@ -187,6 +187,14 @@ If this policy is disabled or not configured the upgrade is displayed.</string>
       <string id="SanitizeOnShutdown_Explain">If this policy is enabled, all data is cleared when Firefox is closed. This includes Browsing &amp; Download History, Cookies, Active Logins, Cache, Form &amp; Search History, Site Preferences and Offline Website Data.
 
 If this policy is disabled or not configured, data is not cleared when the browser is closed.</string>
+      <string id="WebsiteFilter_Block">Blocked websites</string>
+      <string id="WebsiteFilter_Block_Explain">If this policy is enabled, you can specify match patterns that indicate sites to be blocked. The match patterns are documented at https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Match_patterns. Only http/https accesses are supported at the moment. There is a 1000 entry limit.",
+
+If this policy is disabled or not configured, no websites are blocked.</string>
+      <string id="WebsiteFilter_Exceptions">Exceptions to blocked websites</string>
+      <string id="WebsiteFilter_Exceptions_Explain">If this policy is enabled, and the website filter is enabled, you can specify match patterns for sites you do not want to block. The match patterns are documented at https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Match_patterns. Only http/https accesses are supported at the moment. There is a 1000 entry limit.",
+
+If this policy is disabled or not configured, there are no exceptions to the website filter.</string>
       <string id="Bookmark1">Bookmark 1</string>
       <string id="Bookmark2">Bookmark 2</string>
       <string id="Bookmark3">Bookmark 3</string>
@@ -235,6 +243,9 @@ If this policy is not configured or disabled, new users get a unified search bar
       <presentation id="Extensions">
         <listBox refId="Extensions"/>
       </presentation>
+      <presentation id="WebsiteFilter">
+        <listBox refId="WebsiteFilter"/>
+      </presentation>
       <presentation id="Permissions"><listBox refId="Permissions"/></presentation>
       <presentation id="PopupsAllow"><listBox refId="PopupsAllowDesc">Allow popups for websites</listBox></presentation>
       <presentation id="Cookies_AcceptThirdParty">
index 08b2be4977ba5c8469813e99f2b1309d07796e45..24c5f62de6b9b7ef65787556b4e8791017a51c86 100644 (file)
         </enum>
       </elements>
     </policy>
+    <policy name="WebsiteFilter_Block" class="Both" displayName="$(string.WebsiteFilter_Block)" explainText="$(string.WebsiteFilter_Block_Explain)" key="Software\Policies\Mozilla\WebsiteFilter\Block" presentation="$(presentation.WebsiteFilter)">
+      <parentCategory ref="firefox"/>
+      <supportedOn ref="SUPPORTED_WINXPSP2"/>
+      <elements>
+        <list id="WebsiteFilter" key="Software\Policies\Mozilla\Firefox\WebsiteFilter\Block" valuePrefix=""/>
+      </elements>
+    </policy>
+    <policy name="WebsiteFilter_Exceptions" class="Both" displayName="$(string.WebsiteFilter_Exceptions)" explainText="$(string.WebsiteFilter_Exceptions_Explain)" key="Software\Policies\Mozilla\WebsiteFilter\Exceptions" presentation="$(presentation.WebsiteFilter)">
+      <parentCategory ref="firefox"/>
+      <supportedOn ref="SUPPORTED_WINXPSP2"/>
+      <elements>
+        <list id="WebsiteFilter" key="Software\Policies\Mozilla\Firefox\WebsiteFilter\Exceptions" valuePrefix=""/>
+      </elements>
+    </policy>
   </policies>
 </policyDefinitions>

patrick-canterino.de