|

Thomas Williams (11), USA
Making Password Protected Web Pages
| See how password protection has been included
at
http://www.kidlink.org/finance/bnotes.html
(bottom of page).
A Javascript is included in the web page to allow visitors access to a secret web page by using the page's file name as the password. For example, if the page is called index.html, just enter "index" as the password. In this example, the page resides in a subdirectory called "/archive". The following code has been included high up in the source of the web page:
<SCRIPT
language="JavaScript"><!-- At the place where the link to the protected page is included, the following code is being used:
<A HREF="javascript:{;}" onClick="Kidlink();
return false">
<NOSCRIPT><FONT
COLOR="#FF0000"><BR> How to adapt to your page?To point to a page in the same directory: Just remove "archive/" + from the line above. To point to another kind of file, for example a .doc (word) document, replace ".html" with the desired code. Example: To find testbudget.xls in the same directory, use: { this.location.href = password + ".xls"; } . The password will be "testbudget". The green text above is where you work when translating the text into another language, or want to include other kinds of text. Important hints!
For help, write to Odd de Presno |
Help |
Contact Us
| Home |
English Home |
Member? |
Want To Help? |
Register |
Privacy |
About Us
Updated by Odd
de Presno - September 1, 2004.
Copyright ® 1990-2007
Kidlink - All rights
reserved.