473,378 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Make part of a website password protected.

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.
Jun 21 '06 #1
2 1393
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.

UJ wrote:
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.


Jun 21 '06 #2
UJ
Thanks.

"Remy" <rb********@hotmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
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.

UJ wrote:
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.

Jun 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Lovely Angel For You | last post by:
Hello To All ! Hope you all doing great. I am trying to create a website where user is required to login first to view members page. I want user to come to my website. They can move around in...
3
by: netsurfer | last post by:
hi..I'm working on a project that requires files to be password protected on a UNIX based site. The people that own the web site want to be able to change the password every so often. ...
3
by: jamesp | last post by:
Hello, Could someone tell me whether there are software or sample codes for perl coding to query from userid /password protected website? Thank you very much for your help. - James -
0
by: barrybevel | last post by:
Hi, I'm trying to login to the www.vodafone.ie website using HttpWebRequest. It works fine with IE/Firefox and the .NET Web Control too, just not with my code. I think it's a redirect 302...
0
by: Paulo Ferreira | last post by:
Hello, I'm trying to run a "make-table" querie that will create a table on protected database but, every time I try to run the querie, I get a message saying that the password is wrong. The...
1
by: selvamcbe | last post by:
sir I have a problem with installtion of phpbb 2 Forum in my website... I am having a website named http://www.clickonlinejobs.com Also i plan to include forum with it.So i have added my forum in...
1
by: denniswong288 | last post by:
Hi, My website has PDF documents that's available for registered users to view online (through my site) only. Currently, I can't find any solutions to prevent users from downloading/"save-as"...
8
djsjm
by: djsjm | last post by:
Hello again. So I googled myself into finding this code: <?php // Define your username and password $username = "someuser"; $password = "somepassword"; if ($_POST != $username || $_POST...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.