Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Secure Folder

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

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

Page: 1
Go to End
Author Topic: 281 Views
  • cumquat
    Avatar
    Community Member
    198 Posts

    Secure Folder Link to this post

    Hi there,

    Just a quick one i hope, i am using the PHP-Reports [link]http://jdorn.github.io/php-reports/[/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.

    Cheers

    Mick

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Secure Folder Link to this post

    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

    https://github.com/sheadawson/silverstripe-securefiles/tree/3.0

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

  • cumquat
    Avatar
    Community Member
    198 Posts

    Re: Secure Folder Link to this post

    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.

    Mick

    281 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.