禁止存取清單中的網址

你可以透過這項政策,禁止系統載入網址遭到禁止的網頁。這項政策可提供網址模式清單,用於指定要禁止的網址。如果未設定這項政策,則瀏覽器不會禁止任何網址。網址模式如下:https://www.chromium.org/administrators/url-blocklist-filter-format。URLAllowlist 中最多可定義 1000 個例外網址。

自 Google Chrome 73 版開始,你可以封鎖 javascript://* 網址。不過,這項設定只適用於在網址列 (或書籤小程式等) 輸入的 JavaScript,動態載入資料的網頁內 JavaScript 網址不會受到這項政策影響。舉例來說,即使你封鎖了 example.com/abc,example.com 仍可透過 XMLHTTPRequest 載入 example.com/abc。

自 Google Chrome 92 版起,系統在無頭模式下也會支援這項政策。

注意:封鎖內部的 chrome://* 網址可能會導致非預期的錯誤。

範例值:

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

支援的作業系統: 至少需要 Microsoft Windows 7 或 Windows Server 2008 系列產品

禁止存取清單中的網址

Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
Registry PathSoftware\Policies\Google\Chrome\URLBlocklist
Value Name{number}
Value TypeREG_SZ
Default Value

chrome.admx

系統管理範本 (電腦)

系統管理範本 (使用者)