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.

General Questions

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

Validate logged in user via .htaccess?


Reply

4 Posts   660 Views

Avatar
theGermaniac

2 July 2011 at 3:26am Community Member, 82 Posts

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

Avatar
Futureweb

2 December 2011 at 12:00pm Community Member, 233 Posts

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

Cheers

Avatar
Willr

13 December 2011 at 9:57pm Forum Moderator, 5511 Posts

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

Avatar
Futureweb

14 December 2011 at 8:43am Community Member, 233 Posts

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...