AWS S3 custom error document for access denied
amazon-s3, amazon-web-services
Solution
Put your custome image in the document explained here
Make sure you read Error Documents and Browser Behavior at the bottom of the page
Problem
I been trying to find a way to make it so when a user tries to "hotlink" or view content outside of viewing it directly through a page on my site which references S3 content that they will be served a generic image in the root of my bucket instead of the below XML browser output ``` <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>6C57766666DF18C</RequestId> <HostId> bkreFGYkuilWBwa2xs3S35+CqofLB4ay1gD4UAEtmGJEaqE9tHvUZrsJO7i2JRw </HostId> </Error> ``` Any help or points in the right direction greatly appreciated I already have a policy that restricts the content to only showing within my domain, just need the show a custom image part