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

Validate logged in user via .htaccess?

Go to End

4 Posts   1043 Views


Community Member, 107 Posts

2 July 2011 at 3:26am

Hej there!

Is there a way to check via an .htaccess file inside a folder, if the user visiting this folder ist logged in to the system and if not he gets forwarded to another (login) page?

Thanks, Mario


Community Member, 244 Posts

2 December 2011 at 12:00pm

did anyone get any where on this one?
i'd like to change some settings so logged in users get more permissions...



Forum Moderator, 5523 Posts

13 December 2011 at 9:57pm

Try the secure files module if you want to protect assets.


Community Member, 244 Posts

14 December 2011 at 8:43am

actually that's not the issue. the issue is i have .htaccess with some strong security settings that block any bulk uploads - which means I can't use the swfupload / uploadify modules. I can turn off the security settings- but this is a risk, so i'd like to detect if the user is logged in and then turn the security settings off, so that the admin users of the site can upload files quicker...