Limit Access to Image Folder
Posted: Sun Nov 16, 2008 2:30 pm
Hi guys.
I am not sure whether or I should post this here. I have a security issue with pictures on my server. I am programming a social networking site. You can upload photo albums on that site. Now the user can limit pictures being shown on page. For example photo albums could be set to just be shown to friends of the user.
However I don’t know how I can prevent people from just opening the folder containing the images. This way somebody could get to the pics even though he/she is not allowed to see these pics.
Now my question: How can I prevent people from accessing the image folder? I want these images to only show if they are viewed through my website (where i can control what is shown with php/ sql). I don’t want people to be able to just open the source folder for those images and see everything that’s in there.
What would be the easiest way to accomplish this?
Thank you for your help guys. I hope somebody know the answer to that problem…
I am not sure whether or I should post this here. I have a security issue with pictures on my server. I am programming a social networking site. You can upload photo albums on that site. Now the user can limit pictures being shown on page. For example photo albums could be set to just be shown to friends of the user.
However I don’t know how I can prevent people from just opening the folder containing the images. This way somebody could get to the pics even though he/she is not allowed to see these pics.
Now my question: How can I prevent people from accessing the image folder? I want these images to only show if they are viewed through my website (where i can control what is shown with php/ sql). I don’t want people to be able to just open the source folder for those images and see everything that’s in there.
What would be the easiest way to accomplish this?
Thank you for your help guys. I hope somebody know the answer to that problem…