共用方式為


URLBlocklist

封鎖存取 URL 清單

支援版本

  • Windows 和 macOS 上,版本 77 或更新版本
  • 從 30 起在 Android 上或更高版本
  • 在 iOS 上 85 或更高版本

描述

根據 URL 的模式,定義遭封鎖的網站清單 (您的使用者無法載入該清單)。

根據 https://go.microsoft.com/fwlink/?linkid=2095322 來設定 URL 模式的格式。

您可以在 URLAllowlist 原則中定義例外。 這些原則限制在 1000 個項目;後續的項目會被忽略。

請注意,不建議封鎖內部 'edge://*' URL,這可能會導致意外的錯誤。

此原則無法防止頁面透過 JavaScript 動態更新。 例如,如果您封鎖 'contoso.com/abc',則使用者仍可能可以造訪 'contoso.com',並按一下連結來覽 'contoso.com/abc' (只要不重新整理頁面)。

如果未設定此原則,則不會封鎖任何 URL。

此原則無法如預期地與 file://* 萬用字元一起執行。

支援的功能

  • 可強制執行:是
  • 可以建議:否
  • 動態原則重新整理:是
  • 每個配置文件:是
  • 適用於使用 Microsoft 帳戶登入的設定檔:否

資料類型

  • 字串清單

Windows 資訊和設定

群組原則 (ADMX) 資訊

  • GP 唯一名稱:URLBlocklist
  • GP 名稱:封鎖存取 URL 清單
  • GP 路徑 (必要) :管理範本/Microsoft Edge
  • GP 路徑 (建議):不適用
  • GP ADMX 檔案名稱:MSEdge.admx

範例值

contoso.com
https://ssl.server.com
hosting.com/bad_path
https://server:8080/path
.exact.hostname.com
custom_scheme:*
*

登錄設定

  • 路徑 (強制):SOFTWARE\Policies\Microsoft\Edge\URLBlocklist
  • 路徑 (建議):不適用
  • 值名稱:1、2、3、...
  • 值類型:REG_SZ清單

登錄值範例

SOFTWARE\Policies\Microsoft\Edge\URLBlocklist\1 =

contoso.com

SOFTWARE\Policies\Microsoft\Edge\URLBlocklist\2 =

https://ssl.server.com

SOFTWARE\Policies\Microsoft\Edge\URLBlocklist\3 =

hosting.com/bad_path

SOFTWARE\Policies\Microsoft\Edge\URLBlocklist\4 =

https://server:8080/path

SOFTWARE\Policies\Microsoft\Edge\URLBlocklist\5 =

.exact.hostname.com

SOFTWARE\Policies\Microsoft\Edge\URLBlocklist\6 =

custom_scheme:*

SOFTWARE\Policies\Microsoft\Edge\URLBlocklist\7 =

*

Mac 資訊和設定

  • 偏好設定索引鍵名稱:URLBlocklist
  • 範例值:
<array>
  <string>contoso.com</string>
  <string>https://ssl.server.com</string>
  <string>hosting.com/bad_path</string>
  <string>https://server:8080/path</string>
  <string>.exact.hostname.com</string>
  <string>custom_scheme:*</string>
  <string>*</string>
</array>

Android 資訊和設定

  • 偏好設定索引鍵名稱:URLBlocklist
  • 範例值:
["contoso.com", "https://ssl.server.com", "hosting.com/bad_path", "https://server:8080/path", ".exact.hostname.com", "custom_scheme:*", "*"]

iOS 資訊和設定

  • 偏好設定索引鍵名稱:URLBlocklist
  • 範例值:
<array>
  <string>contoso.com</string>
  <string>https://ssl.server.com</string>
  <string>hosting.com/bad_path</string>
  <string>https://server:8080/path</string>
  <string>.exact.hostname.com</string>
  <string>custom_scheme:*</string>
  <string>*</string>
</array>

請參閱