Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I secure my Amazon S3 photos but still make them available via URLs?

Tags:

amazon-s3

I'm planning on making my (family) photo collection available online. I want to use S3 and build an ASP.NET site that will display the photos. I don't want the website to pull down the S3 content and return it to the browser. I want browsers to be able to go directly to S3 without affecting my ASP.NET bandwidth.

It is possible to build URLs for each photo if I set the S3 permission to public, but I only want the photos to be accessible by visitors to my website, not anyone who has the URL.

Any ideas greatly appreciated!

like image 613
Johnathan Sewell Avatar asked Mar 25 '09 14:03

Johnathan Sewell


People also ask

Why is S3 object URL Access Denied?

The URL to the Amazon S3 object doesn't include your user credentials, so the request to the object is anonymous. Amazon S3 returns an Access Denied error for anonymous requests to objects that aren't public.

How do I create a URL for Amazon S3?

Nothing could be easier, just select all files you want to generate URLs for and click the “Web URL” button on the toolbar. You will see the list of URLs for each of the selected files. Click copy to clipboard button and you are ready to paste URLs to other programs such as an HTML files editor.


1 Answers

You can generate temporary URLs to secured resources on S3.

See the bottom of S3 Signing and Authenticating REST Requests

like image 125
ceejayoz Avatar answered Oct 04 '22 03:10

ceejayoz