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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Secure Folder

Go to End

3 Posts   681 Views


Community Member, 201 Posts

26 February 2014 at 12:14am

Hi there,

Just a quick one i hope, i am using the PHP-Reports [link][/link] Great product for queryining the database and getting info. What i need to do is make it so that only logged in users of the SilverStripe framwork can access that folder and its reports. Any idea how i can do that?
I basically have a SS3.1 install and in the root folder is a sub folder php-reports thats the one i need to secure.




Forum Moderator, 5523 Posts

1 March 2014 at 11:34am

Edited: 01/03/2014 11:35am

Take a look at the Secure files module. While it's won't work out the box for what you want (it's designed for files) the idea is the same. Block access to the reports folder and use a proxy controller in SilverStripe to 'pass through' requests

The other thing you could do is simply protect that dir using an .htpasswd file but it wouldn't sync with the CMS logins.


Community Member, 201 Posts

5 March 2014 at 5:59am

Cheers Will,

I'll have a look and see if i can make it work. I have used the .htpasswd process for the moment but yea its not great as i'd like to have the whole system integrated.

Will let you know if i ever get it working.