download free 30 days trial version buy bucket explorer
Documentation  Download  Purchase  Support  FAQs   Forum   ScreenShots & Demos
How to use Amazon S3 as an image hosting service?

If you happen to be engaged in enterprises, organizations or professions that require image hosting as a necessary part of your business, you surely must be looking for web services that are efficient as well as economical.
We usually try to optimize our web hosting as economically as possible, if the site is crowded with images, we require larger spaces; this means more expenditure. Besides this, if the images are large or too many, we need more space. Naturally, the hosting server will charge as per our required space. He may impose some data transfer limitations, too.
Amazon S3 provides you the best way out, as it enables you to call your images from Amazon S3, instead of calling them from your hosting server.

All you need to do is to follow the steps given below :
Step [1]
Create an account on Amazon S3 service, download and Install Bucket Explorer from bucketexplorer.com because Amazon S3 is providing only web service interface for developers.
Step [2]
Start bucket explorer and create a bucket create bucket named like "images.bucketexplorer.com" ( bucket names are case sensitive, so try to use all lower case )
Step [3]
Now create a CNAME entry in your domain's DNS manager interface (images.bucketexplorer.com should point to s3.amazonaws.com)
Step [4]
Now you are ready to access your bucket using URL http://images.bucketexplorer.com/ - it will automatically be redirected to Amazon S3 (by your DNS server) and Amazon S3 knows that it should serve data from bucket named images.bucketexplorer.com.
Step [5]
You may not want to allow people to list all the files from your bucket, so use Bucket Explorer, and change the permissions on the bucket in a way that no one has read access except yourself. For doing this you need to follow the steps given below :

  • Step 5.1 : Select buckets and right click to choose the option " Update Bucket Access Control List "
    bucket shortcut option
  • Step 5.2 : Give the " READ " permission to " ALL USERS " and " FULL CONTROL " permission to " OWNER " and click to save the Permission list.
    bucket access permission control box

Step [6]
Now; right click on image(s) and choose "Get Public Url" option to generate accessible http URL. Like:
http://s3.amazonaws.com/images.bucketexplorer.com/image1.jpeg
get public url option

Step [7]
Now; click on " Use Bucket Name as Virtual Host " button to automatically modify each URL(s) according to your CNAME entry like
http://images.bucketexplorer.com /image1.jpeg
generate public image url

Step [8]
Use it with your website wherever you want to link.
Step [9]
Please note that Amazon's pricing is truly "on demand" so you have to pay for every GET request and the bandwidth. If you don't want to pay for bandwidth consumed by the spiders, just add a robots.txt which disallows robots to crawl your bucket's data. Something like this http://images.bucketexplorer.com/robots.txt

By : Chandresh Kesri | Posted : August 2007