Don't allow direct links Don't allow direct links
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Don't allow direct links

Started by Zit, August 30, 2009, 08:10:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zit

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

Joachim Müller

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.