Page 1 of 1

Admin like login/restrictions, but for whole store

Posted: Wed Sep 23, 2009 3:20 am
by igavemybest
Is there a way to set up an admin style login (minus the captcha) to view the store at all? So, theoretically, if you were not logged in, you would have 0 access to the store. (new users would be added from the admin side or custom script elsewhere). Hints...suggestions?

Re: Admin like login/restrictions, but for whole store

Posted: Wed Sep 23, 2009 12:33 pm
by AbleMods
Edit the web.config file and immediately after the <system.web> tag put:

Code: Select all

<authorization>
     <deny users="?"/>
</authorization>

This will require website authentication to view ANY page, including default.aspx. Effectively the site no longer allows anonymous access.

Re: Admin like login/restrictions, but for whole store

Posted: Wed Sep 23, 2009 1:23 pm
by igavemybest
Ahh, simple :)