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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

ImageGallery: Secure access to images


Go to End


3 Posts   1589 Views

Avatar
x75

Community Member, 43 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, 4102 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, 43 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