We used to do this but it was only for internal pages.
But here are some links you may find useful and the script to make a simple password protected page.
http://www.build-your-website.co.uk/Password-Protect-Web-Pages.htm
http://www.zann-marketing.com/sas/sasdownload.php
<script language="javascript">
<!--
/*Change the usename,password and the page to redirect the user to to suit your own site*/
function login(form)
{
if (form.user.value=="steve" && form.password.value=="password")
{
location="encrypt1.htm"
}
else {
alert("Invalid username or Password")
}
}
//-->
</script>
================web page example=================================
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="robots" content=" noindex, nofollow"></meta>
</head>
<body>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<script language="javascript">
<!--
/*Change the usename,password and the page to redirect the user to to suit your own site*/
function login(form) {
if (form.user.value=="steve" && form.password.value=="password") {
location="encrypt1.htm"
}
else {
alert("Invalid username or Password")
}
}
//-->
</script>
<center>
<table bgcolor="white" cellpadding="10" border="1" width="296">
<tr><td colspan="2" width="280" ><center><b>Please Login</b>
</center></td></tr>
<tr><td width="106"><b><font size="2">User Name:</b></td><td width="150"><form name="login-form"><input
name="user" type="text" size="20"></td></tr>
<tr><td width="106"><b><font size="2">Password:</font></b></td><td width="150"><input name="password"
type="password" size="20"></td></tr>
<tr><td width="106"><center><input type="button" value="Login"
onClick="login(this.form)"></center></td><td width="150"><center><br><input
type="Reset"></form></td></tr></table></center>
</font>
</body>
</html>
Last Wiki Answer Submitted: July 2, 2010 6:21 pm by swinehart68031,050 pts.
All Answer Wiki Contributors: swinehart68031,050 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
If you look into dreamweaver help, there is a way to password protect folders, but I don’t think that is what you want.
You can password protect spreadsheets and other files to restrict access to them, but as you don’t mention what type of file you want to password protect, I’m guessing it isn’t any of those.
If you can give more information about the files we could possible help with a solution.
If you look into dreamweaver help, there is a way to password protect folders, but I don’t think that is what you want.
You can password protect spreadsheets and other files to restrict access to them, but as you don’t mention what type of file you want to password protect, I’m guessing it isn’t any of those.
If you can give more information about the files we could possible help with a solution.