PDA

View Full Version : Help - Password protecting files (winME)


Kyle_sanetos
05-05-2003, 08:39 PM
I'm probably under the wrong subject...But i need help.....I want to get a passwording File so that i can lock up a file and you have to have a password to open that file...Can anyone tell me where i could get that??

JustMe
05-05-2003, 08:46 PM
i cant remember ill try to find it...

Kyle_sanetos
05-05-2003, 08:51 PM
This is really urgent! PLease try and find it!:(

JustMe
05-05-2003, 08:52 PM
remember after every password add ; because this is Jscript<HEAD>
<SCRIPT language="JavaScript">
<!--hide form old browsers

var password;
//here add different passwords
var pass1="cool";
//you can change the prompt(the text that is displayed when the sites asks for a password)
password=prompt('Please enter your password to view this page!',' ');
//here if you have multiple passwords you can change the propmt that the viewer getsa for using different passwords
if (password==pass1)
alert('Password Correct! Click OK to enter!');
else
{
window.location="http://yoursite.com/passpage
}

//-->
</SCRIPT>
</HEAD>

Kyle_sanetos
05-05-2003, 08:56 PM
IS there just a file i can download because im not very good at computers and i have no idea where to put that information...

JustMe
05-05-2003, 08:58 PM
inside the head tag.

JustMe
05-05-2003, 09:02 PM
its messed up i think i did too much tweaking...

Kyle_sanetos
05-05-2003, 09:04 PM
ok can you fix it?

JustMe
05-05-2003, 09:06 PM
sure!

Saj
05-05-2003, 09:10 PM
Just wondering, is the stuff behind the password supposed to be very secure? Or should it just keep out the majority of internet users. This one does works, but its easy to get through.

JustMe
05-05-2003, 09:14 PM
ok first add this to your page link to the pass word protected page
<BODY>
<A HREF="jex10.htm">Click to Enter</A>
</BODY>

now put this in the page that is password protected...
<HTML>
<HEAD>
<TITLE>Intermediate Page</TITLE>
<SCRIPT language="JavaScript">
<!--hide
var password=prompt('Enter the password:','');
/*see this? change "cool to whatever you want as the password KEEP the quotes*/
var secretpass="cool";
if (password==secretpass)
{//see this? this url is where you visitors go if password is correct!
window.location="protectedpage.htm";
}
else
{//see this? this is where visitors go if password is wrong
window.location="home.htm";
}
//-->
</SCRIPT>
</HEAD>
<BODY>&nbsp;</BODY>
</HTML>

Kyle_sanetos
05-05-2003, 09:29 PM
did you mean for a webpage?? I want it for something on the desktop!

pardicity3
05-06-2003, 12:29 AM
Well, if your question refers to your computer then your post would be more suited in the Computer/PC Issues Forum (http://www.codingforums.com/forumdisplay.php?s=&forumid=20). I am sure a mod will be around soon to move you there :). Don't post another question there though, just let a mod move this thread to that forum...you don't want to go and cross post now do you? ;)

Good day.

ronaldb66
05-06-2003, 09:16 AM
Read the Guidelines (http://www.codingforums.com/postguide.htm)... :rolleyes:

sage45
05-06-2003, 02:06 PM
To paraphrase what you are wanting... You have a file on your computer that you want to password protect right??? What Operating System are you using???

-sage-

oracleguy
05-06-2003, 04:47 PM
Please read the posting guidelines (http://www.codingforums.com/postguide.htm) about properly naming your topic.

Moving you to Computer/PC Issues.

Kyle_sanetos
05-09-2003, 01:14 AM
Windows Me sorri i wus on vacation...

draconis
05-09-2003, 02:50 PM
I don't mean to be short with you but just perform an internet search for 'security software' or some related topic, and look thru the results for any free software that would work.

[off-topic, why are you using win ME? Do you have some software that needs that to run? If not, i, in a way would suggest that you use a different OS. (Win 98,Win 2000) They use less memory, and would be faster in some aspects.]

sarah
05-09-2003, 04:40 PM
Hi,

Are any particular types of files that you would like to Password Protect on the Desktop?

For example:

To password protect word documents using Microsoft word do the following:

Open a word document, or create a new document. Enter your text. Click on Tools | Options, select the "Save" tab and then Enter passwords where it says "Password to open" and "Password to Modify". When you enter your password you will be prompted to enter it again.

Hope that this what you were looking for and this helps.

Lemme know

Sarah