Re: form based authentication and free pages

From: Ben Amada (ben@powerpick.com)
Date: 09/26/02


From: "Ben Amada" <ben@powerpick.com>
Date: Thu, 26 Sep 2002 04:28:46 -0700


Hi YA,

Yes, you can use the <location> tags to make access restricted to
authenticated users only for one or more folders in your web application.
And you can also make one or more folders unrestricted where anyone
(authenticated and unauthenticated users) can access the pages.

Below is an example Web.Config I'm using. This Web.Config addresses two
sub-folders off of the root folder. The "protected" sub-folder can only be
accessed by authenticated users, and the "unprotected" folder can be
accessed by anyone. Hope this helps ...

<configuration>

   <location path="protected">
      <system.web>

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

      </system.web>
   </location>

   <location path="unprotected">
      <system.web>

         <authorization>
            <allow users="*" />
         </authorization>

      </system.web>
   </location>

  <system.web>

      <authentication mode="Forms">
         <forms
            loginUrl="protected/login.aspx" />
      </authentication>

  </system.web>

</configuration>

--
Ben


Relevant Pages

  • Authenticated users permissions
    ... Authenticated Users (Modify) access. ... folders / files from this folder to child folders. ... Inherited permissions for Authenticated Users, ...
    (microsoft.public.security)
  • Re: File Sharing in Windows 2000
    ... adding authenticated users instead though. ... --- Steve ... > folders on one pc to the two other pc's and nothing else. ... > Teresa Walters ...
    (microsoft.public.win2000.security)
  • RE: NTFS Permissions - Sub-Folders
    ... Subject: NTFS Permissions - Sub-Folders ... Share Permissions are set to Authenticated Users - Full Control. ... FOLDERS ("Apply these permissions to objects or containers within this ...
    (microsoft.public.win2000.security)
  • Best Practice File System Permissions
    ... On the following folders I moved the Everyone and Power ... I added the authenticated users group. ... What permissions should I give the authenticated users? ... Do I need to check "allow inheritable permissions from ...
    (microsoft.public.win2000.security)
  • Re: Update not working on my computer
    ... C:\Windows\Temp all its sub-folders and files. ... Empty your Temporary Internet Files using Internet Options. ... I'm not sure what files and folders to delete without ... "thecreator" wrote: ...
    (microsoft.public.windowsupdate)