AWS S3 Custom Error Document Denied Access

I was trying to find a way to do this when a user tries to "hotlink" or view content outside of viewing it directly through a page on my site that links to S3 content that they will be given a generic image at the root of my bucket rather than exiting from the bottom XML Browser

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>6C57766666DF18C</RequestId>
<HostId>
bkreFGYkuilWBwa2xs3S35+CqofLB4ay1gD4UAEtmGJEaqE9tHvUZrsJO7i2JRw
</HostId>
</Error>

      

Any help or points in the right direction are much appreciated

I already have a policy that restricts content to only show on my domain, just need to show the custom part of the image

+3


source to share


2 answers


Put your custome image in document explained here



Make sure you read the Bugs and Browser Behavior Docs at the bottom of the page

+1


source


In addition, the following information is good to know.

Build your bucket, inside this bucket, download 2 index.html and error.html files, then set them as public.



In your settings for this bucket go to Static Web Hosting and in the index document enter index.html and for the Error document enter error.html, now you can try to access the wrong documents and get the error.html file.

+1


source







All Articles