<![CDATA[ Secured gallery directory - My Forums]]> https://forums.modx.com/thread/?thread=50568 <![CDATA[Secured gallery directory]]> https://forums.modx.com/thread/50568/secured-gallery-directory#dis-post-296065
I have another question and this one I might not be able to solve on my own.

How can I protect the directory gallery stores the pictures in from being accessed directly without crashing gallery?

I read about several possibilieties with .htaccess files which will only let fopen() work but this doesnt seem to work with gallery and phpthumb.
Phpthumb seems to have a high security mode in its unmodified version but I dont know how to get that into gallery and MODx.
I read about methods to secure the directory itself and make symbolic links in an accessible directory but I dont know where to put that in the gallery code.

I would favourise a solution where the path of the files would be stored in the database and gallery would open the file from secured directories itself by not showing the real path to the file.

Could this be possible?

Thanks for any help...

Regards,
Alexander]]>
Alex9779 Aug 17, 2010, 03:05 PM https://forums.modx.com/thread/50568/secured-gallery-directory#dis-post-296065