I have a website with multiple embedded images...
On the server side I store many versions of the same image (for sizing, etc.)
e.g. image.jpg, image-thumb.jpg, image-original.jpg
However I also keep a copy of the original, unedited image which contains sensitive information that I would like to keep away from public access. As it stands, if someone edits my source from "image.jpg" to "image-original.jpg" they can see the original, which is a security risk.
I keep these original images so that they can be used in my custom backend CMS portal to edit the images as needed.
Is there a way to prevent access to the original? Perhaps by blocking loading of the original images folder unless the request is coming from certain locations on my website?