Safe Browsing is a service provided by Google that enables applications to check URLs against Google's constantly updated lists of suspected phishing and malware pages.
Here are some of the things you can do with the Safe Browsing service:
We provide two types of experimental APIs for using the Safe Browsing service:
Note that the Safe Browsing API v1 will be turned off soon.
Below are short descriptions and a comparision of them.
The Safe Browsing API is an experimental API that enables applications to download an encrypted table for local, client-side lookups of URLs that you would like to check. In early 2010, we made a new version (v2) of the Safe Browsing API available. This v2 version is designed to be more efficient in terms of bandwdith usage, and helps us scale this service to be able to support even more users. The v2 protocol is already in use by several browsers, including Google Chrome and Mozilla Firefox. You can start using the Safe Browsing API v2 now. Existing v1 users should consider how to migrate existing code from v1 to v2, since we will turn off the v1 protocol very soon. Alternatively, existing v1 users could also consider using the new Safe Browsing Lookup API if approprate.
The Safe Browsing Lookup API is a new experimental API that enables applications to simply lookup URLs from our Safe Browsing service and get the state of URLs (e.g. phishing, malware) directly. Users using the Lookup API do not need to be aware of the internal implementation details of the Safe Browsing service, so the API implementation is simple and easy. You can start using the Safe Browsing Lookup API now.
The Safe Browsing API v2 has the following advantages:
The major drawback of the Safe Browsing API v2 is the implementation complexity, including:
The Safe Browsing Lookup API has the following advantage:
The Safe Browsing Lookup API has the following drawbacks:
In summary, if you are not too concerned about the privacy of the queried URL(s) and you can tolerate latency induced by a network request, you may want to use the Safe Browsing Lookup API since it's much simpler to implement. Otherwise, the Safe Browsing API v2 may be a better choice for you.