[Javascript] locking contents-OK

Muchacho, Laurent (TWIi London) LMuchacho at twii.net
Sun Jan 18 10:26:07 CST 2004


Hi All

After reading all the email what I will do is:
first to avoid people to see the page source if they disable javascript is
use javascript to write the whole content of the page I know that sound
weird but if with your asp you generate a string with urlEncode or
htmlEncode(don't remenber exactly which one it is) and you put all your html
in it become really difficult for someone(novice) to read it.
Then when you write that string with javascript all the encode disapear and
the browser write out the html with document.write(string).
After to avoid the user to view the source or use his keyboard for print
screen or copy the content you must create a function who while capture all
the event as onmousedown onkeydown onkeypress and other you might need to
get in your function you will allow only the letter of the alphabet and
punctuation to be pushed on the keyboard for the mouse detect which button
as been cliked and if it's the left button you allow if it's the right
button your return false. And at last if your browser onblur fire a function
who cover your whole content with a div.

This solution is really complex and will not garanty the user can't take the
source or print screen but you will cover a lot of possibillity and might
discourage a lot of this personne to get what you trying to protect.

Laurent 

ps: if you need any help my email is now lmuchacho at hotmail.com and sorry for
my english


-----Original Message-----
From: BEKIM BACAJ
To: javascript at LaTech.edu
Sent: 18/01/2004 02:24
Subject: Re: [Javascript] locking contents-OK

Hassan, I know that (und these). This was a retorical question.
I was asking this question because students taking this exam will not be

able to install anything new in these terminals even if the profesor is
out.


>From: Hassan Schroeder <hassan at webtuitive.com>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: "[JavaScript List]" <javascript at LaTech.edu>
>Subject: Re: [Javascript] locking contents-OK
>Date: Sat, 17 Jan 2004 11:03:25 -0800
>
>BEKIM BACAJ wrote:
>
>>>Uh, "Print Screen" isn't the only way to do a screen capture, and
>>>not all of them use the clipboard...  :-)
>>
>>Name the second please and let us see if we can disarm it.
>
>Here's a second and third :-)
>
>"HyperSnap-DX" (<http://hyperionics.com>) is a Windows app I've
>used in the past (there's a trial version available, or used to be).
>
>`xwd` (x window dump) is a common X utility that's also available
>for PCs via Cygwin...
>
>--
>Hassan Schroeder ----------------------------- hassan at webtuitive.com
>Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>                           dream.  code.
>
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information.  It is intended to be conveyed only to the designated
recipient(s) named above.  If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system.  Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.



More information about the Javascript mailing list