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   698 Views

Avatar
knsqnt

Community Member, 85 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

Avatar
Futureweb

Community Member, 233 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...

Cheers

Avatar
Willr

Forum Moderator, 5513 Posts

13 December 2011 at 9:57pm

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

Avatar
Futureweb

Community Member, 233 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...