Google Storage or Amazon S3 or Google App Engine BlobStore -


i going build site using google app engine. public site contains thousands of pictures. want store these pictures in cloud: google storage or amazon s3 or google app engine blobstore. problem image hotlinking.

  1. as google storage, googled , cant find way prevent image hotlinking. (i command line tool gsutil though)

  2. amazon s3 has "query string authentication" generates expiring image urls. bad seo, isnt it? changing url have quite negative affects takes upwards of year image, , related url, google images. rather sure changing url have immediate negative affect when googlebot comes around hi. (update: better way preven image hotlinking in amazon s3 referrer using bucket policy. details here: http://www.naveen.info/2011/03/25/amazon-s3-hotlink-prevention-with-bucket-policies/)

  3. google app engine blobstore? have upload images via web interfaces manually , it generates changing urls too. (update: due ignorance blobstore, made mistake. using google app engine blobstore, can use whatever url serve image want.)

what need simple referrer protection: show image when referrer site.

are there better ways prevent image hotlinking. dont want file bankruptcy due extremely high cost of cloud bandwidth.

update:

still difficult choose three, each of them have pros , cons. blobstore seems ultimate choice.

the easiest option use blobstore. can provide whatever upload interface want - it's write - , blobstore doesn't constrain download urls, upload ones. can serve blobstore images under url setting appropriate headers, or can use get_serving_url take advantage of built-in fast image serving support, generates cryptic consistent urls (but doesn't let referer checks).

i suggest giving consideration whether real, practical problem you're facing, though. bandwidth consumed few hotlinked images pretty minimal today's standards, , it's not particularly common practice in first place. @sharth points out in comments, it's impact seo too, since image search tends show images in own windows in addition linking page hosted them.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -