詐騙網站偵測技術讓 Firefox 能將當前網頁與黑名單兩相比對,藉此得知此網站是否為詐騙網站,並於確認後提醒使用者。
安裝新資料來源
要安裝詐騙網站清單的資料來源,必須調整一些相關設定,以便提供資料來源的細節。
每個資料來源都有其獨一無二的 ID 號碼,而 ID 號碼為 0 者即是 Firefox 出廠時的預設資料來源。當安裝新的資料來源時,你應該指定另一個未使用的號碼。
要知道哪些號碼能用,必須以迴圈循序取出設定值,例如先是 browser.safebrowsing.provider.0.name
、而後為browser.safebrowsing.provider.1.name
,以此類推。當取值時無傳回內容,代表這個數字可以用。
你可以從為擴充套件新增偏好設定文章中找到讀寫設定值的相關範例。
必備設定
browser.safebrowsing.provider.idnum.name
- 資料來源的名稱,讓使用者方便識別。
browser.safebrowsing.provider.idnum.keyURL
- 用來為其他要求編碼的私鑰 URL。
browser.safebrowsing.provider.idnum.lookupURL
- The URL to use to look up URLs to see if they're blacklisted. This request must be encrypted using the private key returned by the
keyURL
request.
選用設定
browser.safebrowsing.provider.idnum.reportURL
- An URL used for reporting when users visit phishing pages and whether or not they decided to heed the warning or to ignore it.
browser.safebrowsing.provider.idnum.updateURL
- An URL used to request an updated list of phishing sites. The server either provides a full list or incremental updates in order to bring the client's tables up to date.
browser.safebrowsing.provider.idnum.reportGenericURL
- Not currently used; intended for use in reporting other issues with the phishing protection service.
browser.safebrowsing.provider.idnum.reportErrorURL
- An URL to which the user is directed in order to report a safe page that is incorrectly being reported as a phishing site.
browser.safebrowsing.provider.idnum.reportPhishURL
- An URL to which the user is directed in order to report a phishing site that isn't detected by the phishing protection system.
Determining the currently-selected data provider
If you need to determine the ID number of the currently selected anti-phishing data provider, you can look at the current value of the preference browser.safebrowsing.dataProvider
.