|
-
October 26th, 2003, 01:56 PM
#1
Banned
Password Protect Folders
Here is an easy but not-very-secure way of passwrod protecting folders using javascript
1. Right click in any folder window to bring up the file menu and select Customise This Folder
(You can also goto to View--------->Customise This Folder
2. Choose Create Or Edit an HTML Document
3. When the document opens, immediately after the <head> tag there is a <style> tag. After the style tag you will see...
<script language="JavaScript">
Immediately after this, insert the following code(change only the password):
var pass=prompt("Please Enter Password");
if(pass!="Type_Your_password_here")
{window.location="C:"}
I have tested this only on win98 although it should work for other platforms as well.
the security provided however is very bleak and can easily be bypassed.
Note: The View Folders As Webpage must be set to true in Folder Options....
Th3 SpId3R
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|