Help - None of examples are working!

254 views
Skip to first unread message

KShah

unread,
Jan 4, 2012, 7:48:28 PM1/4/12
to google-safe-...@googlegroups.com
Hi All,
I have generated a key using this url http://code.google.com/apis/safebrowsing/key_signup.html but none of the examples given in the loopup api documentation or the example given after you signup for the key are working! They generate 404 or file not found error.

Does anyone have any idea? I want to use the lookup API for my application.

Example1:
http://sb.google.com/safebrowsing/update?client=api&apikey=myKeyFromKeyGenerator&version=goog-black-hash:1:-1

Example2:
https://sb-ssl.google.com/safebrowsing/api/lookup?client=demo-app&apikey=myKeyFromKeyGenerator&appver=1.5.2&pver=3.0&url=http%3A%2F%2Fwww.phishing.com%2F"

Thanks
KShah

Garrett Casto

unread,
Jan 5, 2012, 5:02:18 PM1/5/12
to google-safe-...@googlegroups.com
On Wed, Jan 4, 2012 at 4:48 PM, KShah <kal...@gmail.com> wrote:
> Hi All,
> I have generated a key using this url
> http://code.google.com/apis/safebrowsing/key_signup.html but none of the
> examples given in the loopup api documentation or the example given after
> you signup for the key are working! They generate 404 or file not found
> error.
>
> Does anyone have any idea? I want to use the lookup API for my application.
>
> Example1:
> http://sb.google.com/safebrowsing/update?client=api&apikey=myKeyFromKeyGenerator&version=goog-black-hash:1:-1
>

We've been in the process of switching to a new API, and we just
turned down this one a few days ago. I'll work on updating the
documentation at some point. The new API is explained in detail here
(http://code.google.com/apis/safebrowsing/developers_guide_v2.html),
but the basic request is something like

curl --data-binary @test_request.txt
'http://safebrowsing.clients.google.com/safebrowsing/downloadsclient=api&apikey=APIKEY&appver=1.5&pver=2.3'
n:1759
i:goog-malware-shavar
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAEYgaEEIMCjBDItgRABAP____________________________________________________8A
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAEYwaMEIICmBDItwREBAP____________________________________________________8A
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAEYgaYEIICrBDJVARMBAP__________________________________________________________________________________________________________AA
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAEYgasEIICwBDJVgRUBAP__________________________________________________________________________________________________________AA
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAEYgbAEIIDEBCqFAvsZAQD_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________PzJEARgBAP___________________________________________________________________________________wM
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAAYgdsDIIDgAzJVge0AAP__7___3_3____-f______f____7__v_____3________9_____________-_________v________-______________7_9___________AA
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAAYgeADIIDqAzKlAQHwAAD______________________________-_________9_________f________-_-_______________3_79___-_-9_-_________v___9____3____ff__3_________________9__3__________7_______________________v_3_____________________________________AA
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAAYgeoDIIDvAzJVAfUAAP_________7_________f____f______v_v____3_________________________________f__v_____f_7_____-_______________fAA
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAAYge8DIID0AzJVgfcAAP___________v_______________________________________7____3______9______f__9________________________________AA
u:safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAAYgfQDIICIBCq1An_6AAD_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________AzIUAfoAAP___________________z8
gcasto@gcasto:~$ cat test_request.txt
goog-malware-shavar;

> Example2:
> https://sb-ssl.google.com/safebrowsing/api/lookup?client=demo-app&apikey=myKeyFromKeyGenerator&appver=1.5.2&pver=3.0&url=http%3A%2F%2Fwww.phishing.com%2F"
>

So this is probably a bad example. If you notice beneath this it says
that it returns phishing assuming the url is actually on the phishing
list, which it isn't. Try http://ianfette.org/, which is always on our
malware list, I'll also try and update this.

> Thanks
> KShah
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Safe Browsing API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-safe-browsing-api/-/Xp5MJuGF0h0J.
> To post to this group, send email to
> google-safe-...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-safe-browsi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-safe-browsing-api?hl=en.

Reply all
Reply to author
Forward
0 new messages