Web Links that are Password Protected

5 pts.
Tags:
Document warehousing
Dreamweaver
Web security
Is there a way to put documents on the Web site and put a password on them so only certain people can open them?

Software/Hardware used:
Web Manager, DreamWeaver

Answer Wiki

Thanks. We'll let you know when a new response is added.

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>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Chippy088
    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.
    4,625 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following