forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: Zit on August 30, 2009, 08:10:53 pm

Title: Don't allow direct links
Post by: Zit on August 30, 2009, 08:10:53 pm
Hello,
i'am using coppermine gallery 1.4 and i have seen that it's possible to get (externally) access to the uploaded photos with a direct link (...albums/userpics/10001/1/123456789.jpg).
Via htaccess i can block these access but i also blocks the loged-in user :/

Has someone an idea how i can forbid the access via direct linking the photos?

Thanks,

Zit
Title: Re: Don't allow direct links
Post by: Joachim Müller on August 30, 2009, 10:34:07 pm
No, that's nearly impossible. Has been discussed before. Someone who knows the path to the image can access it. You'd have to create the images dynamically (or move them around) and purge those temporary files after a short period. This would create an incredible load on the server and therefor would be only an option on galleries that get very little traffic.