another squid redirector

75 views
Skip to first unread message

nakof

unread,
Mar 4, 2008, 3:41:05 PM3/4/08
to Google Safe Browsing API
another squid redirector, implemented using safebrowsing-python api
from Thejaswi Puthraya. be aware of using it on production systems.

http://nakof.zig.gen.tr/pub/gsb-redirector/gsb-redirector-0.1.tar.gz

Thejaswi Puthraya

unread,
Mar 5, 2008, 8:54:05 AM3/5/08
to Google Safe Browsing API
I was planning to write one soon. Thanks dude you made my day. This is
the way open source projects should go!!!

Thanks Nakof.

--
Cheers
Thejaswi Puthraya
http://thejaswi.info/

Dan

unread,
Mar 11, 2008, 10:58:44 AM3/11/08
to Google Safe Browsing API

Thejaswi Puthraya

unread,
Mar 11, 2008, 11:14:03 PM3/11/08
to Google Safe Browsing API
On Mar 11, 7:58 pm, Dan <dancu...@gmail.com> wrote:
> I'm having problems getting any site to block!
>
> looking in the logs
>
> request :http://thejaswi.info/favicon.ico87.194.121.112/- - GET -
My site doesn't have a favicon.ico

> request :http://bbs.fxmp3.com/87.194.121.112/- - GET -
> response :http://bbs.fxmp3.com/87.194.121.112/- - GET -

This is a malware site as per safebrowsing.

> But your sitehttp://thejaswi.info/projects/safe_browsing/is
> currently blocking this :(

blocking???

> I have updated my local db
>
> # update-gsb-db.py
> 1:1.2857http://sb.google.com/safebrowsing/update?client=api&apikey=ABQIAAAAj_...
> 1:1.8708http://sb.google.com/safebrowsing/update?client=api&apikey=ABQIAAAAj_...

Dan

unread,
Mar 12, 2008, 6:03:28 AM3/12/08
to Google Safe Browsing API
Nope that's the problem - the redirector is just letting through
everything as you can see in the response.

On Mar 12, 3:14 am, Thejaswi Puthraya <thejaswi.puthr...@gmail.com>
wrote:
> On Mar 11, 7:58 pm, Dan <dancu...@gmail.com> wrote:
>
> > I'm having problems getting any site to block!
>
> > looking in the logs
>
> > request :http://thejaswi.info/favicon.ico87.194.121.112/-- GET -
> > response :http://thejaswi.info/favicon.ico87.194.121.112/-- GET -
>
> My site doesn't have a favicon.ico
>
> > request :http://bbs.fxmp3.com/87.194.121.112/-- GET -
> > response :http://bbs.fxmp3.com/87.194.121.112/-- GET -

Dan

unread,
Mar 20, 2008, 6:24:34 AM3/20/08
to Google Safe Browsing API
is there a debug mode I can use?

On Mar 12, 10:03 am, Dan <dancu...@gmail.com> wrote:
> Nope that's the problem - the redirector is just letting through
> everything as you can see in the response.
>
> On Mar 12, 3:14 am, Thejaswi Puthraya <thejaswi.puthr...@gmail.com>
> wrote:
>
> > On Mar 11, 7:58 pm, Dan <dancu...@gmail.com> wrote:
>
> > > I'm having problems getting any site to block!
>
> > > looking in the logs
>
> > > request :http://thejaswi.info/favicon.ico87.194.121.112/--GET -
> > > response :http://thejaswi.info/favicon.ico87.194.121.112/--GET -
>
> > My site doesn't have a favicon.ico
>
> > > request :http://bbs.fxmp3.com/87.194.121.112/--GET -
> > > response :http://bbs.fxmp3.com/87.194.121.112/--GET -

Thejaswi Puthraya

unread,
Mar 20, 2008, 7:25:09 AM3/20/08
to Google Safe Browsing API
On Mar 20, 3:24 pm, Dan <dancu...@gmail.com> wrote:
> is there a debug mode I can use?
>
> On Mar 12, 10:03 am, Dan <dancu...@gmail.com> wrote:
>
> > Nope that's the problem - the redirector is just letting through
> > everything as you can see in the response.

Nakof should be able to respond to your queries. I haven't had the
time to check out the code but will do it soon and let you know.

--
Cheers
http://thejaswi.info/

Nihat Ciddi

unread,
Mar 20, 2008, 9:55:33 AM3/20/08
to google-safe-...@googlegroups.com
On Thu, Mar 20, 2008 at 1:25 PM, Thejaswi Puthraya
<thejaswi...@gmail.com> wrote:
>
> On Mar 20, 3:24 pm, Dan <dancu...@gmail.com> wrote:
> > is there a debug mode I can use?

you can use tools/gsb-check.py for checking the url in database:

tools/gsb-check.py URL

you can debug gsb-redirector.py with:

echo "http://code.google.com/images/GSOC_300x200.jpg
127.0.0.1/localhost - GET -" \
| sudo /usr/local/bin/gsb-redirector.py

Reply all
Reply to author
Forward
0 new messages