Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6472875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:23:52+00:00 2026-05-25T06:23:52+00:00

I just started playing around with Amazon S3 and CloudFront and have managed to

  • 0

I just started playing around with Amazon S3 and CloudFront and have managed to create a S3 Bucket and a Distribution on CloudFront.

My purpose is to use CloudFront for simple image / css delivery from edge locations – so I’m looking at the most basic of AWS functions.

I uploaded some images in the S3 bucket and when I tried accessing the same for testing purpose with http://xxx.cloudfront.net/image.jpg I get the following error:

<Error>
    <Code>AccessDenied</Code>
    <Message>Access Denied</Message>
    <RequestId>ABCD1234</RequestId>
    <HostId>
        xxxxx
    </HostId>
</Error>

I’m guessing I need to verify myself before I start delivering the content? I’ve grabbed the AWS-PHP SDK but then am at a loss as to what to do. All examples provided on the AWS Docs are for more complex functionality… there doesn’t seem to be a straight-cut code sample for simple image delivery.

Has anyone here set this up before? How did you go about it?

My website is written with PHP.

Any help will be much appreciated.

Thanks,
m^e

UPDATE

The section on Basic Links in this AWS Doc page says that I can access my uploaded resource in the http://xxx.cloudfront.net/image.jpg format.

However, when I do that I get that Access Denied XML dump.

So I went back to the S3 bucket, right-clicked on the image and clicked Open. It opened up the image in a popup with the following link format:
http://xxx.cloudfront.net/1st-open-house-jan-2011.jpg?AWSAccessKeyId=yyy

Whenever I try polling my images in this format (including the AccessKey) it seems to work. Without AccessKey in the URL, nada.

Does that mean, I’ve to include that access key in every single image request throughout my website? Or is there any other means of pre-verifying a request at a single point and then on keep loading images normally, minus the access key in the url?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:23:53+00:00Added an answer on May 25, 2026 at 6:23 am

    Why don’t you make your images public? I can imagine you want to keep video or audio private, but images? They can be grabbed anyway, so why bother protecting them?
    Just set permission Everyone to Read and the problem is solved.

    i hope this helps?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I´ve just started playing around with Java and Hibernate and have gotten an application
I have just started playing around with using Dojo in Zend Framework and things
I have just started playing around with Log4Net... I now want to send an
I have no experience at all with OpenGL and just started playing around with
I just started playing around with JSON and I have created this example. var
I just started playing around with threading today and I ran into something that
I just started playing around with the 960 CSS framework and found that it
I'm just started on playing around with the canvas HTML5-object. For the sake of
I'm just getting started with ASP.NET MVC 2, and playing around with Validation. Let's
i have just started playing aorund with asp.net mvc and i want to view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.