Make part of a website password protected.

U

UJ

How do you make a part of a website require a login ?

I've done it with forms authentication where the entire site (with a few
exceptions) require somebody to log in. But how do you do it when you want
about half the site to be a subscriber area?

TIA - Jeff.
 
R

Remy

In the normal authorization section I allow all users and add the
following below:

<location path="Admin">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="User">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

This will make the Subdirectories Admin and User password protected.
 
U

UJ

Thanks.

Remy said:
In the normal authorization section I allow all users and add the
following below:

<location path="Admin">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="User">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

This will make the Subdirectories Admin and User password protected.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top