版本資訊
4.0 版
Safe Browsing API (v4) 包含下列更新和新功能。
Lookup API (v4)
相同問題:
- 不過,這個 API 仍有用戶端直接查詢 Google 安全瀏覽伺服器和安全瀏覽清單。
異動內容如下:
- 系統不再支援 HTTP
GET
方法。請改用 HTTP POST
方法。
key
參數現在是 HTTP POST
要求網址的唯一必要參數。
- HTTP
POST
要求和回應格式已變更。系統已不再支援純文字。請改用 JSON。
更新 API (v4)
相同問題:
- 這個 API 仍有用戶端定期更新本機資料庫清單中的 SHA256 雜湊前置字串。
- 這個 API 也有類似的要求,可在用戶端發生雜湊前置字串衝突時擷取 SHA256 完整雜湊值。
異動內容如下:
key
參數現在是 HTTP POST
要求網址的唯一必要參數。
- HTTP
POST
要求和回應格式已變更。系統已不再支援純文字。請改用 JSON。
- 更新的編碼方式已變更,API 現在並未提供新增和子區塊的內容,而是使用簡易的版本管理通訊協定,提供不同之處。用戶端會將目前的狀態連同要求的更新一併傳送至伺服器。伺服器會回應新的用戶端狀態和差異,以便將用戶端完全更新。
- 為確保在飽覽用戶端限制時能盡可能保有防護能力,這個 API 會提供優先威脅清單。會使用裝置資源、頻寬、地理位置和其他信號,為各個用戶端提供優先順序最高的威脅資料。
ThreatLists.list 方法
新方法 threatLists.list
會傳回目前可供查詢或下載的安全瀏覽清單清單。
狀態碼
伺服器為回應 HTTP POST
要求而產生的 HTTP 狀態碼已變更,
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[null,null,["上次更新時間:2023-12-02 (世界標準時間)。"],[[["Safe Browsing APIs v4 transitions to using HTTP `POST` requests with JSON format, replacing the previous `GET` method and plain text format."],["The Update API v4 introduces a new diff-based update system for efficient threat list management and prioritizes threat lists based on client context."],["A new `threatLists.list` method enables retrieval of available Safe Browsing lists."],["The `key` parameter is now the sole requirement in HTTP `POST` request URLs for both Lookup and Update APIs."],["Updated HTTP status codes reflect the changes in request and response handling within the v4 APIs."]]],["Safe Browsing API (v4) updates include changes to both the Lookup and Update APIs. The `GET` method is replaced by `POST`, and plain text is replaced by JSON for requests and responses. The `key` parameter is now the sole required URL parameter. Updates are now encoded as diffs using a versioning protocol. The API serves prioritized threat lists based on client constraints. A new `threatLists.list` method lists available Safe Browsing lists, and HTTP status codes have been revised.\n"]]