SnowControl Posted September 5, 2007 Share Posted September 5, 2007 Hi I'm trying to develop my own website album, where registered users can upload their pictures and share them. The pictures are grouped into albums, and each album can either be private or public. If a user wants to see the pictures in a private album, it is neccessary for him to be given permissions by the owner of the album first. I can limit access to users on the PHP side of this ,displaying text, links, showing a list of what albums a user can access and so on. But i cant figure out how to restrict access to the actual picture files that are saved on the server. I've turned off hotlinking of pictures in the .htaccess file, is this all thats needed? Thanks for any help. Quote Link to comment https://forums.phpfreaks.com/topic/68088-limiting-access-to-pictures/ Share on other sites More sharing options...
bank Posted September 18, 2007 Share Posted September 18, 2007 how about using a php based script with its headers set at pictures, therefore those who aren't registered cannot view the picture, as image hosts use, so http://somewebsite.php/pictures.php?image=picture.jpg Quote Link to comment https://forums.phpfreaks.com/topic/68088-limiting-access-to-pictures/#findComment-350424 Share on other sites More sharing options...
NArc0t1c Posted September 18, 2007 Share Posted September 18, 2007 You can disable anyone from viewing the pictures but the server. And then whe nthey actually want to share it, copy the image to another location. Quote Link to comment https://forums.phpfreaks.com/topic/68088-limiting-access-to-pictures/#findComment-350458 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.