Lookup api return empty

299 views
Skip to first unread message

Jackie Lee

unread,
Dec 14, 2018, 12:10:40 AM12/14/18
to Google Safe Browsing API

Hi


      I used the Safe Browsing Lookup Api to check some url, but I have encountered a big doubt, no matter how to replace the url, the return is always empty.

      Some configuration information is as follows:

"threatTypes":      ["THREAT_TYPE_UNSPECIFIED","MALWARE","SOCIAL_ENGINEERING","UNWANTED_SOFTWARE","POTENTIALLY_HARMFUL_APPLICATION"]

"platformTypes":    ["ALL_PLATFORMS","ANDROID","IOS"]

 

       Can you tell me how to solve it?

นส. ธนวุฒิสุทธิภัทร์

unread,
Dec 14, 2018, 12:27:08 AM12/14/18
to google-safe-...@googlegroups.com


Aw

ในวันที่ ศ. 14 ธ.ค. 2018 12:10 PM Jackie Lee <jackie...@gmail.com เขียนว่า:
--
You received this message because you are subscribed to the Google Groups "Google Safe Browsing API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-safe-browsi...@googlegroups.com.
To post to this group, send email to google-safe-...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-safe-browsing-api.
For more options, visit https://groups.google.com/d/optout.

Ben Sanders

unread,
Dec 14, 2018, 12:20:10 PM12/14/18
to Google Safe Browsing API
I don't know if you're doing something wrong, or if you just haven't hit a blacklisted url yet. We have test urls hosted on testsafebrowsing.appspot.com that can be used to test different integrations.

Here's an example command which I just confirmed works for me. You'll have to use your own API key, and replace the [.] with . in the urls (to get around this message being filtered as phishing).

curl -X POST --header "Content-Type: application/json" --data '{"threatInfo": {"threatTypes": ["MALWARE", "SOCIAL_ENGINEERING"], platformTypes: ["ALL_PLATFORMS"], "threatEntryTypes": ["URL"], "threatEntries": [{"url": "http://testsafebrowsing[.]appspot.com/s/phishing.html"}, {"url": "http://testsafebrowsing[.]appspot.com/s/phishing.html?abc"}, {"url": "http://testsafebrowsing[.]appspot.com/s/phishing.html?def"}]}}' https://safebrowsing.googleapis.com/v4/threatMatches:find?key=YOUR_KEY_GOES_HERE

Jacques Franken

unread,
Dec 18, 2018, 8:31:52 AM12/18/18
to google-safe-...@googlegroups.com
Dear Sir, I'm terribly sorry, I cannot help you here with, I looked for help myself but in the mean my issue has been resolved.

Virusvrij. www.avg.com

Op vr 14 dec. 2018 om 18:20 schreef 'Ben Sanders' via Google Safe Browsing API <google-safe-...@googlegroups.com>:
--
You received this message because you are subscribed to the Google Groups "Google Safe Browsing API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-safe-browsi...@googlegroups.com.
To post to this group, send email to google-safe-...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-safe-browsing-api.
For more options, visit https://groups.google.com/d/optout.


--

 
Jacques Franken

Brouwierstraat [Zar] 6b

B-9500 Geraardsbergen

È : +32 (0)473/864.230

+Jacques....@Gmail.com

+J.Franken@Telenet.be


Virusvrij. www.avg.com
Reply all
Reply to author
Forward
0 new messages