|
JavaScript: Deliver Password Protected ContentDescription:
This is super simple. DO NOT RELY ON IT FOR TOTAL SECURITY!!!
The file password.html
uses a call to an external Javascript. Based on the user password (or you could use it as
a simple keyword search, too) dynamic content is delivered to the page.
The cool thing is if you reload it.. you have to put the password in the prompt field. You can just cut and paste it to two files one with htm or html
extensions and the other with .js extension.Play around with it. You can change the if statements to whatever 'password' or 'keyword' you want.
Use the document.write to build the page for you. The external javascript keeps folks from saving the page or right clicking to get to get it the info(passwords).
I'm sure someone knows how to get the info from an external file and when prompted..save file to disk 'to view source of the external script), but this is a good client-side protection method. You could hide it in an include file or another js file to mask to information or run it server side.
|
1 week |
2 week |
1 month |
5 months |
1 year |
2 year |
Overall |
Votes |
0 |
0 |
0 |
0 |
0 |
0 |
6 |
Rating |
0 |
0 |
0 |
0 |
0 |
0 |
2.8 |
Added: Wed Apr 26 2006 |
Last Modify: Wed Apr 26 2006 |
Added by: |
Send Feedback to: |
Visited: 0 |
|
|
|
|
|