eyalros Posted March 18, 2007 Share Posted March 18, 2007 Hello, How can I show an Image that is inside a folder which I've blocked using CHMOD? The reason I've blocked the containing folder of the Image is so no one could enter the folder's URL and see ALL of the images in it. For Example: I have a file that is viewing the "Dog" photo from the Blocked Folder "Private_Images". In that case I cannot view the dog's file because the "Private_Images" folder is blocked, but if I will remove the blocking from the folder, then anyone could view all of my other photos. How do I solve this problem? Thanks. P.S. So far there has been exactly 145999 posts in this forum. This is the 146000 Post! Congratulations! Link to comment https://forums.phpfreaks.com/topic/43221-viewing-image-from-a-chmod-blocked-folder/ Share on other sites More sharing options...
jokur Posted March 18, 2007 Share Posted March 18, 2007 If you block access to a file/folder through CHMOD, then not even your script can access it. You need to restore access to this file/folder via CHMOD, and then use your web server's settings to disallow access to this file/folder. Link to comment https://forums.phpfreaks.com/topic/43221-viewing-image-from-a-chmod-blocked-folder/#findComment-209847 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.