[google-appengine] Re: image protection

2009-06-11 Thread pranny

Aah yea, great. Thanks :-)

On Jun 11, 11:34 pm, Wooble  wrote:
> The traditional method is to check if the referer header is from
> another domain and if it is, don't serve the image.
>
> On Jun 11, 12:57 pm, pranny  wrote:
>
>
>
> >  a few access checks
>
> > I would like to know what access checks ?
>
> > --
> > Pranav Prakash
>
> > "This life is more than ordinary"
>
> > On Jun 11, 1:32 pm, Barry Hunter  wrote:
>
> > > not if you have defined the images as static in your app.yaml (or
> > > similar in java)
>
> > > but if your images are served dynamically (using python/java) then you
> > > can.
>
> > > static content is served from a different system to code and so you
> > > get little control. but serving them off the code system you get
> > > pretty much full control.
>
> > > you could write a small script (easiest in python) to act as a static
> > > handler, that just reads the file from disk (any resource not declared
> > > as static is readable on the code server) and does a few access checks
> > > and returns approriate headers.
>
> > > On Jun 11, 4:03 am, chimpsbeware  wrote:
>
> > > >  Im using google app engine to store/serve my images for my site. For
> > > > example I usehttp://static.mydomain.com/images/myimage.jpgtoshowmy
> > > > images that i've uploaded here.
>
> > > > I would like to know if hotlink protection is possible on these
> > > > images? is this at all possible? I would like for my pictures to be
> > > > shown on my domain only.
>
> > > > I hope that someone can help me with this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: image protection

2009-06-11 Thread Wooble

The traditional method is to check if the referer header is from
another domain and if it is, don't serve the image.

On Jun 11, 12:57 pm, pranny  wrote:
>  a few access checks
>
> I would like to know what access checks ?
>
> --
> Pranav Prakash
>
> "This life is more than ordinary"
>
> On Jun 11, 1:32 pm, Barry Hunter  wrote:
>
> > not if you have defined the images as static in your app.yaml (or
> > similar in java)
>
> > but if your images are served dynamically (using python/java) then you
> > can.
>
> > static content is served from a different system to code and so you
> > get little control. but serving them off the code system you get
> > pretty much full control.
>
> > you could write a small script (easiest in python) to act as a static
> > handler, that just reads the file from disk (any resource not declared
> > as static is readable on the code server) and does a few access checks
> > and returns approriate headers.
>
> > On Jun 11, 4:03 am, chimpsbeware  wrote:
>
> > >  Im using google app engine to store/serve my images for my site. For
> > > example I usehttp://static.mydomain.com/images/myimage.jpgtoshowmy
> > > images that i've uploaded here.
>
> > > I would like to know if hotlink protection is possible on these
> > > images? is this at all possible? I would like for my pictures to be
> > > shown on my domain only.
>
> > > I hope that someone can help me with this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: image protection

2009-06-11 Thread pranny

 a few access checks

I would like to know what access checks ?

--
Pranav Prakash

"This life is more than ordinary"

On Jun 11, 1:32 pm, Barry Hunter  wrote:
> not if you have defined the images as static in your app.yaml (or
> similar in java)
>
> but if your images are served dynamically (using python/java) then you
> can.
>
> static content is served from a different system to code and so you
> get little control. but serving them off the code system you get
> pretty much full control.
>
> you could write a small script (easiest in python) to act as a static
> handler, that just reads the file from disk (any resource not declared
> as static is readable on the code server) and does a few access checks
> and returns approriate headers.
>
> On Jun 11, 4:03 am, chimpsbeware  wrote:
>
> >  Im using google app engine to store/serve my images for my site. For
> > example I usehttp://static.mydomain.com/images/myimage.jpgtoshow my
> > images that i've uploaded here.
>
> > I would like to know if hotlink protection is possible on these
> > images? is this at all possible? I would like for my pictures to be
> > shown on my domain only.
>
> > I hope that someone can help me with this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: image protection

2009-06-11 Thread Barry Hunter

not if you have defined the images as static in your app.yaml (or
similar in java)

but if your images are served dynamically (using python/java) then you
can.

static content is served from a different system to code and so you
get little control. but serving them off the code system you get
pretty much full control.

you could write a small script (easiest in python) to act as a static
handler, that just reads the file from disk (any resource not declared
as static is readable on the code server) and does a few access checks
and returns approriate headers.

On Jun 11, 4:03 am, chimpsbeware  wrote:
>  Im using google app engine to store/serve my images for my site. For
> example I usehttp://static.mydomain.com/images/myimage.jpgto show my
> images that i've uploaded here.
>
> I would like to know if hotlink protection is possible on these
> images? is this at all possible? I would like for my pictures to be
> shown on my domain only.
>
> I hope that someone can help me with this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---