PC Review


Reply
Thread Tools Rate Thread

How do I password protect just a page or folder

 
 
Brig
Guest
Posts: n/a
 
      10th Feb 2004
Newbie here.

How can I prompt a user to enter a username & password ( That I will
provide) when they access a page on our website.

We have an enrollment form that I want to post on our web that only certain
people should have access to.

Is ther a way to do this?

Thank you very much.


 
Reply With Quote
 
 
 
 
Jim Buyens
Guest
Posts: n/a
 
      10th Feb 2004
The best approach is to create a subweb containing the one
page, and then secure it as described at:

Securing Web Pages With Windows Authentication
http://www.interlacken.com/winnt/tip...ow.aspx?tip=34

If that's not possible, here's a simple ASP page that
checks for a username of gotta and a password of secret.

<html>
<head>
<title>Secure Page</title>
</head>
<body>
<h1 align="center">Secure Page</h1>
<form method="POST">
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td>Username</td>
<td><input type="text" name="txtUser" size="20"
value="<%=request.form("txtUser")%>"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="txtPswd" size="20"
value="<%=request.form("txtPswd")%>"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" value="Submit"
name="btnSub"></td>
</tr>
</table>
<%
if ("" & request.form("txtUser") <> "gotta") _
or ("" & request.form("txtPswd") <> "secret") then
response.write _
"<p>Enter correct username and password.</p>" & _
vbcrlf & _
"</form>" & vbcrlf & _
"</body>" & vbcrlf & _
"</html>" & vbcrlf
response.end
end if
%>
<p>The secured content goes here.</p>
</form>
</body>
</html>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------


>-----Original Message-----
>Newbie here.
>
>How can I prompt a user to enter a username & password
>(That I will provide) when they access a page on our
>website.
>
>We have an enrollment form that I want to post on our web
>that only certain people should have access to.
>
>Is ther a way to do this?
>
>Thank you very much.
>
>
>.
>

 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      10th Feb 2004
Applying password protection to part of a web.
http://support.microsoft.com/default...en-us;301554#2

It references FP2000 but the procedures are the same.

--
Steve Easton
MS MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer

"Brig" <(E-Mail Removed)> wrote in message
news:eIPM95$(E-Mail Removed)...
> Newbie here.
>
> How can I prompt a user to enter a username & password ( That I will
> provide) when they access a page on our website.
>
> We have an enrollment form that I want to post on our web that only

certain
> people should have access to.
>
> Is ther a way to do this?
>
> Thank you very much.
>
>



 
Reply With Quote
 
Brig
Guest
Posts: n/a
 
      10th Feb 2004
Thank you very much. This is very helpful.

Brig

"Brig" <(E-Mail Removed)> wrote in message
news:eIPM95$(E-Mail Removed)...
> Newbie here.
>
> How can I prompt a user to enter a username & password ( That I will
> provide) when they access a page on our website.
>
> We have an enrollment form that I want to post on our web that only

certain
> people should have access to.
>
> Is ther a way to do this?
>
> Thank you very much.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy-protect a folder or password-protect a folder vj Windows XP Customization 4 20th Jan 2009 04:44 PM
copy-protect a folder or password-protect a folder vj Windows XP Help 4 20th Jan 2009 04:44 PM
copy-protect a folder or password-protect a folder vj Windows XP Security 4 20th Jan 2009 04:44 PM
Re: copy-protect a folder or password-protect a folder Paul Windows XP Customization 0 19th Jan 2009 05:53 PM
password protect a mail folder in outlook to protect from hackers congoes girl Microsoft Outlook Discussion 2 21st Dec 2007 09:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:18 PM.