How can we implement v2?

99 views
Skip to first unread message

Rl Web Solutions Ahmedeabad

unread,
Nov 17, 2010, 6:09:15 AM11/17/10
to Google Safe Browsing API
I had implemented v1 with the php to test the website against malware
spyware.


but i am not able to find any code regarding v2.

i had seen that request url that i can pass in browser but what is the
request body how we can pass it with the php code?

Sam C

unread,
Nov 18, 2010, 11:04:38 AM11/18/10
to Google Safe Browsing API
I have an alpha implementation of a PHP client using v2:
http://code.google.com/p/phpgsb/
Maybe you could use some parts from that :)

--Sam

On Nov 17, 11:09 am, Rl Web Solutions Ahmedeabad <rlweb...@gmail.com>
wrote:

Rl Web Solutions Ahmedeabad

unread,
Nov 19, 2010, 3:50:08 AM11/19/10
to Google Safe Browsing API
Thanks Sam,

I had try this code(phpgsb).

it's working but when i am trying to run lookup.php file i am getting
this kind of output..

phpGSB Loaded...
Connected successfully to database server...
Connected to database successfully...

Notice: Undefined offset: 1 in C:\wamp\www\phpGSB\phpgsb.class.php on
line 781

Notice: Undefined offset: 2 in C:\wamp\www\phpGSB\phpgsb.class.php on
line 781

Notice: Undefined offset: 3 in C:\wamp\www\phpGSB\phpgsb.class.php on
line 781

Notice: Undefined offset: 3 in C:\wamp\www\phpGSB\phpgsb.class.php on
line 788

Notice: Undefined variable: append in C:\wamp\www\phpGSB
\phpgsb.class.php on line 896
bool(false) //for http://google.com
Notice: Undefined offset: 1 in C:\wamp\www\phpGSB\phpgsb.class.php on
line 781

Notice: Undefined offset: 2 in C:\wamp\www\phpGSB\phpgsb.class.php on
line 781

Notice: Undefined offset: 3 in C:\wamp\www\phpGSB\phpgsb.class.php on
line 781

Notice: Undefined offset: 3 in C:\wamp\www\phpGSB\phpgsb.class.php on
line 788

Notice: Undefined variable: append in C:\wamp\www\phpGSB
\phpgsb.class.php on line 896
bool(false) //http://www.gumblar.cn


in both the case i am getting result false.

i don't think it's working fine?

Garrett Casto

unread,
Nov 19, 2010, 1:01:04 PM11/19/10
to google-safe-...@googlegroups.com
We have a python implementation at http://code.google.com/p/google-safe-browsing/source/browse/#svn/trunk/python.  If you need something faster I suggest you look at Chrome's source for a C++ implementation.

Garrett

--
You received this message because you are subscribed to the Google Groups "Google Safe Browsing API" group.
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.


Sam C

unread,
Nov 20, 2010, 9:38:51 AM11/20/10
to Google Safe Browsing API
You need to make sure the updater is running on a 1 minute cron (it
takes roughly 12 hours to populate the database as it does it in
chunks so you might not get matches initially). And just set error
reporting to error_reporting(E_ALL ^ E_NOTICE); to surpress those
notices, they won't/don't stop it running correctly but obviously
being only in alpha it still needs some optimizations.

--Sam

On Nov 19, 8:50 am, Rl Web Solutions Ahmedeabad <rlweb...@gmail.com>
wrote:
> Thanks Sam,
>
> I had try this code(phpgsb).
>
> it's working but when i am trying to run lookup.php file i am getting
> this kind of output..
>
> phpGSB Loaded...
> Connected successfully to database server...
> Connected to database successfully...
>
> Notice: Undefined offset: 1 in C:\wamp\www\phpGSB\phpgsb.class.php on
> line 781
>
> Notice: Undefined offset: 2 in C:\wamp\www\phpGSB\phpgsb.class.php on
> line 781
>
> Notice: Undefined offset: 3 in C:\wamp\www\phpGSB\phpgsb.class.php on
> line 781
>
> Notice: Undefined offset: 3 in C:\wamp\www\phpGSB\phpgsb.class.php on
> line 788
>
> Notice: Undefined variable: append in C:\wamp\www\phpGSB
> \phpgsb.class.php on line 896
> bool(false)  //forhttp://google.com

Rl Web Solutions Ahmedeabad

unread,
Nov 24, 2010, 3:56:25 AM11/24/10
to google-safe-...@googlegroups.com
Thanks I had solve all the problems,

Reply all
Reply to author
Forward
0 new messages