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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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

Avatar
MarioSommereder

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

Avatar
JonShutt

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

Cheers

Avatar
Willr

Forum Moderator, 5523 Posts

13 December 2011 at 9:57pm

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

Avatar
JonShutt

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