put password on a page

M

Mark Fitzpatrick

Fp doesn't work with security on pages, only the entire web. You can set
security on an entire web by connecting to the hosted server and using the
Tools | Security menu item. It may be greyed out if you are not an
administrator. If the server is on a Windows platform, a server admin may
have to create the user accounts you want first so you can use them to
restrict access.

The best way with FrontPage to do this is to put the single page into it's
own web so you can adjust security. There are other ways though, such as
ASP,PHP, etc. where when someone visits the page you have code in the page
that checks for the presence of a login cookie. If the cookie isn't present
it re-directs them to a login page which will create this cookie if the user
exists in a database.

There are also javascripts that you can use, though these are the least
secure method. Check out http://javascript.internet.com for some great
javascripts you could use for this.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP- FrontPage
 
S

Stefan B Rusynko

See http://support.microsoft.com/default.aspx?scid=301554
Your host will have to support subwebs and unique permissions under the FP Server Extensions

--



| Fp doesn't work with security on pages, only the entire web. You can set
| security on an entire web by connecting to the hosted server and using the
| Tools | Security menu item. It may be greyed out if you are not an
| administrator. If the server is on a Windows platform, a server admin may
| have to create the user accounts you want first so you can use them to
| restrict access.
|
| The best way with FrontPage to do this is to put the single page into it's
| own web so you can adjust security. There are other ways though, such as
| ASP,PHP, etc. where when someone visits the page you have code in the page
| that checks for the presence of a login cookie. If the cookie isn't present
| it re-directs them to a login page which will create this cookie if the user
| exists in a database.
|
| There are also javascripts that you can use, though these are the least
| secure method. Check out http://javascript.internet.com for some great
| javascripts you could use for this.
|
| Hope this helps,
| Mark Fitzpatrick
| Microsoft MVP- FrontPage
|
| | > How do I set up password on a page so that only restricted people can open
| > it?
| >
| >
|
|
 
A

Al Moroz

Here is code for a quick-and-dirty "poor man's" 1-page
security (if you don't want to look into FP security or
get into session variables). Note 3 things: the page has
to be saved as a .asp, this ONLY works for 1 web page, the
password is hard-coded into the page.

Place this above the <HTML> tag:
<%@ LANGUAGE="VBScript" %>
<% Option Explicit %>
<% Response.Buffer=True %>
....
<BODY>
<%
If Request.Form("userpwd") <> "choose_your_pw" Then
%>
<p>This is a password-protected page</p>
<form name=form1 action=name_of_this_page.asp
method=post>
User Name : <input type=text name=username>
Password : <input type=password name=userpwd>
<input type=submit value="Login">
</form>
<%
Else %>
'Display contents of the page
<%
End If %>

Hope that helps.
Al Moroz
Abacus Business Strategies
http://www.abacus-strategies.com

**NOTE: do not reply back this email, it's for newgroups
only
 

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