Forms Authentication - how to exclude certain files

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I have a site which uses forms authentication but I would
like to exclude certain pages on the site from
authentication. In other words I would like the user to be
able to get to these pages without having to Log In.
How do I change my web.config file to exclude certain
files.

<authentication mode = "Forms">
<forms name = ".ASPX" loginURL="Authenticate.aspx"
protection = "All" path="/" />
</authentication>

Thanks.
 
You can put a different web.config in each folder, and the settings on the
child folder will override those on the parent. Just create a directory of
pages that don't need to be secured, and change the web.config on this
directory to allow non-authenticated users to access it.
 
Back
Top