How to prevent image hotlinking using Google Storage?

828 views
Skip to first unread message

SHENG GAN

unread,
Jul 1, 2011, 9:39:44 PM7/1/11
to gs-dis...@googlegroups.com
I have been a huge supporter of Google, thats why I post here before purchasing Amazon S3.

I intend to build a Website using Google App Engine and Google Storage. My site contains thousands of pics and I want to store these pics in Google Storage.

One huge problem is image hotlinking. Due to the high cost of Google Storage bandwidth, If I dont want to file bankruptcy, I need to prevent image hotlinking. But I cant find a way to do that in Google Storage.

In Amazon S3, you can use Buket Policy to prevent image hotlinking via Referrer. Details here:http://www.naveen.info/2011/03/25/amazon-s3-hotlink-prevention-with-bucket-policies/

Can I do the same thing using Google Storage?

BTW, I also think about using Blobstore, but you need to upload images manually via Web interfaces to Blobstore. It is slow and less convenient compared with gsutil.

Thanks a lot!

Sheng

Erevald Kullolli

unread,
Nov 6, 2012, 1:24:52 PM11/6/12
to gs-dis...@googlegroups.com, kan...@gmail.com
Maybe this could be achieved from ur server with .httaccess and using CNAME for your buckets.

But I still think GS should add this option.

Google Cloud Storage Team

unread,
Dec 7, 2012, 11:29:42 AM12/7/12
to gs-dis...@googlegroups.com, kan...@gmail.com
Just to close the loop on this item, it's an excellent idea, IMO, but not currently supported by Google Cloud Storage. I've filed a feature request asking the engineering team to consider this in their future plans.

Thanks for the feedback,

Marc
Google Cloud Storage Team

On Wed, Dec 5, 2012 at 5:11 AM, vtortola <vtor...@gmail.com> wrote:
I am also interested in this, let me know if you find a solution.

Cheers.

--
  
Reply all
Reply to author
Forward
0 new messages