Does anyone know how to use the Google safe browsing API.
I downloaded the entire the malware and phish update from the google safe browsing using the API key and tried comparing the hash of the suspicious site (md5_file method in php) but it did not work. I also tried comparing the hash of the suspicious site's url (md5 method in php).
Am I doing something wrong here?
You need to use a 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 the suffix or prefix of the url may be necessary depending on what you are doing with the url.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With