Home > Archive > ASP .NET > October 2004 > Restricting access to certain pages
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Restricting access to certain pages
|
|
| Justin 2004-10-31, 3:57 am |
| I am trying to create an admin area for a web site using the authentication
tags in the web.config file the problem is I do NOT want to restrict access
to the entire site. How do can I require authentication for some pages and
not others?
Thanks, Justin.
| |
| Chris Austin 2004-10-31, 3:57 am |
| If you admin is in a sub folder of your web-site then you can use
configuration file inheritance to solve this problem, check out the
following link:
http://msdn.microsoft.com/library/d...inheritance.asp
Or, if you didn't want to have multiple web.config files in your application
then you can define security settings within a <location> element in your
root web.config file. See the following link:
http://msdn.microsoft.com/library/d...ionsettings.asp
HTH
-Chris
~
The Diffracted Developer, http://weblogs.austinspad.com/caustin
"Justin" <Justin@discussions.microsoft.com> wrote in message
news:6F1E628D-5A8B-42D9-A0E0-6A2B9367AC8D@microsoft.com...
>I am trying to create an admin area for a web site using the authentication
> tags in the web.config file the problem is I do NOT want to restrict
> access
> to the entire site. How do can I require authentication for some pages and
> not others?
>
> Thanks, Justin.
|
|
|
|
|