Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

ImageGallery: Secure access to images


Reply


3 Posts   1180 Views

Avatar
x75

Community Member, 42 Posts

14 October 2009 at 11:21pm

Hi,

any idea how I can protect the images in a gallery? I want to ensure that only authenticated users can access/download them.

I know how to secure the gallery pages, but the images are still accessible if you have the direct url.
I tried the secure files module. But once i got that working, the thumbnails in the gallery where not resized anymore. I guess the module does not have access to the resampled folder or something like that.

Is there any other way to achieve this? I don't necessarily need different permissions. It would be enough, if only user authenticated could access the files. no matter what group they belong to.

Thank for any help
Johannes

Avatar
UncleCheese

Forum Moderator, 4096 Posts

15 October 2009 at 1:24am

This isn't really an ImageGallery specific issue, unfortunately. It's more about the much broader issue of Silverstripe exposing all of your assets to the public. I'm not sure what is being done on this front, but I think the best place to start would be to get in touch with Hamish about making improvements to the SecureFiles module. Seems to be almost there.

Avatar
x75

Community Member, 42 Posts

16 October 2009 at 9:22pm

Hi,

thanks for your answer. I was just hoping that you or someone else knew of an other way so secure the images, or get the thumbnails to keep working. I'll try contacting Hamish, it seems like he's been working a little on the code at google code lately.

Thanks
Johannes