Phishing Protection: Client Spec

From MozillaWiki
Jump to: navigation, search

If a third party wants to be an optional data provider, the following preferences need to be set (can be done via an extension).

browser.safebrowsing.provider.[idnum].name
browser.safebrowsing.provider.[idnum].lookupURL
browser.safebrowsing.provider.[idnum].keyURL

The following prefs may optionally be set:

browser.safebrowsing.provider.[idnum].reportURL
browser.safebrowsing.provider.[idnum].updateURL
browser.safebrowsing.provider.[idnum].reportGenericURL
browser.safebrowsing.provider.[idnum].reportErrorURL
browser.safebrowsing.provider.[idnum].reportPhishURL

The description of lookupURL, keyURL, reportURL and updateURL can be found on the Phishing_Protection:_Server_Spec page.

The other 3 report URLs point to HTML pages for reporting phishing sites. The Google versions are at: http://www.google.com/safebrowsing/report_general/ http://www.google.com/safebrowsing/report_error/ http://www.google.com/safebrowsing/report_phish/

These are the link targets used by the bubble ("report it", "send report") and someday, a way to report phishing pages directly (bug 337484).

[idnum] should be the next available integer. 0 is used by the default values (what we ship with).

The UI for changing providers is being discussed in bug 340677 and bug 340740, however, to change it directly, you can set browser.safebrowsing.dataProvider to the [idnum] of your provider.