Restricted website

L

Lawrence Beyer

I am creating a website for my high school class. How do I restrict
access to the site, by requiring a password to view the site?

(e-mail address removed)
 
S

Steve

Hi Lawrence,

1/ Via FPage - open your website 'on the server' with FPage. Then select
Tools>Server>Permissions. This will get you into the security admin panel.
Follow the links there to achieve what you want.

2/ Or via .htaccess files that you can manage on your hosts cpanel. They are
usually found under a link called 'Folder Protection' or something like that.

Hope this helps.

Regards
Steve
 
R

Ronx

Steve has given two options, though .htaccess will only work if you are
hosted on a Unix server. For Windows server see
Protect individual pages: (Requires Windows Server with support for ASP
and Access database)
http://support.microsoft.com/default.aspx?scid=kb;en-us;825498

A similar technique using PHP and mySQL can be used for individual
pages.

More details for the FrontPage method is at:
http://support.microsoft.com/default.aspx?scid=kb;en-us;301554 (FP2000)
http://support.microsoft.com/default.aspx?scid=kb;en-us;825451 (FP2003)


Also see
http://www.rxs-enterprises.org/tests/protected-page/single-userid.aspx
for another method using "classic" asp (Windows server or Unix server
that supports asp).
 
R

Ronx

Without seeing the actual code you used, I can only suggest checking the
CaSe for the userid and password in test2.asp.

test2.asp correctly redirects to the login page, but gets no further.
Does the login page use the session("redirect") to go back? Does
test2.asp set this session variable?

Thanks to your question I found a typo on the login page, though your
form is correctly set up.
<p>Password: <input name="Password1" type="password" /></p> should have
been
<p>Password: <input name="Password" type="password" /></p>
(this in the descriptive text, not the actual form code).
--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 
D

DDrowe

Will this work on a single page or group of pages within a website? I have a
company site that would like to have a members only section without
passwording the whole site.

Thanks
 
R

Ronx

This method will work on as may pages as you place the code in. Be
aware that all these pages will have the same username and password,
though you can change this in the code on a page by page basis.

--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 
W

Wayne-I-M

Thank you


--
Wayne
Manchester, England.



Ronx said:
Without seeing the actual code you used, I can only suggest checking the
CaSe for the userid and password in test2.asp.

test2.asp correctly redirects to the login page, but gets no further.
Does the login page use the session("redirect") to go back? Does
test2.asp set this session variable?

Thanks to your question I found a typo on the login page, though your
form is correctly set up.
<p>Password: <input name="Password1" type="password" /></p> should have
been
<p>Password: <input name="Password" type="password" /></p>
(this in the descriptive text, not the actual form code).
--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 

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

Top