Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Preventing Ctrl C and Ctrl A


Message #1 by "Ron Singh" <cyanyz@t...> on Thu, 16 Jan 2003 12:25:24 -0700
	You can search the other posts in the same list.  Some of them talks
about almost the same thing as you requested.  But as a general rule, 
and
IMO, I don't think disabling Ctrl+A and Ctrl+C is enough.  They can 
always
use context menu and choose "Copy", or even more intuitively : select 
with
the mouse and drag 'n drop !

	Well, maybe you could disable right mouse button, but I'm not sure
you could disable mouse select or even drag n drop.

	If you want a reasonable protection to your document, just don't use
HTML !  Because it's against its nature : HTML is supposed to be open.  
Use
PDF, IMO, is simpler than Flash and you could specify that the document 
text
can't be selected.

> -----Message d'origine-----
> De : Ron Singh [mailto:cyanyz@t...]
> Envoy=C3=A9 : jeudi 16 janvier 2003 20:25
> =C3=80 : javascript
> Objet : [javascript] Preventing Ctrl C and Ctrl A
>
>
> Hello all,
>
> I am displaying a document on a website that needs to be 'reasonably'
> protected. That's is we don't want people to be able to save
> it on their
> HD, print etc etc.  I know I can protect it reasonably well
> if I include
> it in a FLASH swf file, but I wanna try and keep it in HTML
> and Java if
> I could. 
>
> Is there any way to disable Ctrl A (copy all) and ctrl C in a web
> browser window.  I have disabled right click . Or is there a
> better way
> of doing this?
>
> Any suggestions would be appreciated
>
> Ron Singh
> www.cyanyz.com

  Return to Index