MozillaZine

Browser.safebrowsing.provider.*.gethashURL

From MozillaZine Knowledge Base

Contents

Background

Firefox incorporates the Google Safe Browsing extension in its own Phishing Protection feature to detect and warn users of phishy web sites.

When a site is classified as safe or unsafe, a partial hash is generated of a fragment of the URL. This can be compared against the remote database to return a complete hash and extra metadata. This preference determines the URL used to submit the partial hash.

This is an enumerated preference: all preferences whose names start with browser.safebrowsing.provider. are read to generate the list of Safe Browsing providers. The * in the preference name is a non-negative integer, and matches the number in the other preferences needed to describe a provider. It also determines the order in which the providers appear in the options dialog.

Possible values and their effects

The URL from which the key for encrypting URLs is retrieved.

By default, the following preference and value exists:

browser.safebrowsing.provider.0.gethashURL
http://sb.google.com/safebrowsing/gethash?client={moz:client}&appver={moz:version}&pver=2.1

(The string {moz:client} is replaced by 'navclient-auto-ffox' plus the version number for official builds. The string {moz:version} is replaced by the browser’s version of Gecko.)

Caveats

First checked in

2008-01-29 by Dave Camp

Has an effect in

  • Firefox (nightly builds since 2008-01-29)

Related bugs

Related preferences

External links