Regarding the Google Safe Browsing API

Does anyone know how to use the Google Safe Browsing API.

I downloaded all the malicious and phish updates from a secure Google browser using the API key and tried to compare the hash of a suspicious site (md5_file method in php), but it did not work. I also tried comparing the hash of the suspicious site url (md5 method in php).

Am I doing something wrong here?

+5
source share
2 answers

You need to use the canonical version of the site URL. The canonicalization algorithm is officially documented along with examples at https://developers.google.com/safe-browsing/v4/urls-hashing#canonicalization . Also, I think using a suffix or URL prefix may be necessary depending on what you do with the URL.

+3
source

Also, check out the BrightCloud web filter . It is a little easier to use (REST web interface). It is better, but costs money (it is still pretty affordable).

(FWIW - I am the founder of BrightCloud.)

-1
source

All Articles