Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > disable copy paste

Reply
Thread Tools

disable copy paste

 
 
Guest
Posts: n/a
 
      12-14-2003
I want to know how to disable the function copy in a html page in order to
protect some document of copying

Thanks

--
Francis


 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      12-14-2003
<frc> wrote:

>I want to know how to disable the function copy in a html page in order to
>protect some document of copying


Short answer:
You can't.

Long answer:
You can't.

If you want to prevent copying of a document, then don't place it on
a web server in the first place. That's the only way to ensure that no
one can copy it.

In some buggy browsers applying align to some elements (e.g. tables)
makes it impossible to select the text inside that element. But the
page can still be saved.

With JavaScript you can try to muck about with the browser
functionality (disabling the right click, etc.) but you can't do
anything that can't be circumvented.

When a browser receives a page from your server it stores a copy of
that page on the user's computer. Once the file is there it can be
accessed like any other file.

Even if you turn all your text into a graphic and screw search engines
and the users with visual disabilities by not supplying an alt text
the user can still run that graphic through and OCR program. Or they
can just type the text out again.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <> <http://steve.pugh.net/>
 
Reply With Quote
 
 
 
 
A Hess
Guest
Posts: n/a
 
      12-14-2003
Somewhere around 12/14/03 9:17 AM, frc typed wildly with reckless abandon:
> I want to know how to disable the function copy in a html page in order to
> protect some document of copying
>
> Thanks
>


Echoing Steve Pugh: If it's on the web, you can't. Don't even try,
you'll just make yourself look bad.

I'm using Firebird and all those js right-click capturing scripts do
nothing to me, even though I do have js enabled. I right-click and two
things pop up: 1. An "alert" saying that I can't right click the page,
and 2. The right-click menu

I then laugh at the silly author who thinks that'll stop people. Don't
be that silly author.
Best regards, Aron

--
Of course I don't look busy.....I did it right the first time!
 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      12-14-2003
frc! wrote:

> I want to know how to disable the function copy in a html page in order
> to protect some document of copying


> Thanks


> --
> Francis


No problem. Click on File menu, click on "Save as", click save and I have
your entire web page.
Open the page in an editor and take what I want.


 
Reply With Quote
 
Nico Schuyt
Guest
Posts: n/a
 
      12-14-2003
frc wrote:
> I want to know how to disable the function copy in a html page in
> order to protect some document of copying


Disabling right click with <body oncontextmenu="return false"> makes it
difficult to copy the pictures.
Like the others explained, it will not work for 100% of your visitors (but
averaged 98.75% of them will be discouraged
Nico



 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      12-14-2003
On Sun, 14 Dec 2003 17:17:50 -0000, <frc> wrote:

: I want to know how to disable the function copy in a html page in order to
: protect some document of copying

Stick it under your mattress.... or read this..
http://www.vortex-webdesign.com/help/hidesource.htm

Sid

 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      12-14-2003
Nico Schuyt wrote:

> frc wrote:
>> I want to know how to disable the function copy in a html page in
>> order to protect some document of copying

>
> Disabling right click with <body oncontextmenu="return false"> makes it
> difficult to copy the pictures.
> Like the others explained, it will not work for 100% of your visitors (but
> averaged 98.75% of them will be discouraged


While anyone who tries to use the context menu to open a link in a new
window, bookmark the page, go back, go forwards, check the security, see
what cookies are set, refresh, etc, etc, etc - is likely to be rather
irritated.

And I'd like to know where you came up with that very interesting statistic
- made it up on the spot perhaps? My estimate would be much lower.

--
David Dorward <http://dorward.me.uk/>
 
Reply With Quote
 
Guest
Posts: n/a
 
      12-14-2003
Thank you Nico
That is what i was looking for

Francis
"Nico Schuyt" <> wrote in message
news:3fdcb157$0$410$...
> frc wrote:
> > I want to know how to disable the function copy in a html page in
> > order to protect some document of copying

>
> Disabling right click with <body oncontextmenu="return false"> makes it
> difficult to copy the pictures.
> Like the others explained, it will not work for 100% of your visitors (but
> averaged 98.75% of them will be discouraged
> Nico
>
>
>



 
Reply With Quote
 
Dennis M. Marks
Guest
Posts: n/a
 
      12-14-2003
In article <3fdcb157$0$410$>, Nico Schuyt
<> wrote:

> frc wrote:
> > I want to know how to disable the function copy in a html page in
> > order to protect some document of copying

>
> Disabling right click with <body oncontextmenu="return false"> makes it
> difficult to copy the pictures.
> Like the others explained, it will not work for 100% of your visitors (but
> averaged 98.75% of them will be discouraged
> Nico
>


You're forgetting that it has no effect on the Mac since there is no
right click. The context menu is obtained by holding down the button,
doing an option click, or programming a two button mouse to do an
option click on the right button.

>
>


--
Dennis M. Marks


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
Nico Schuyt
Guest
Posts: n/a
 
      12-14-2003
David Dorward wrote:
> Nico Schuyt wrote:
>> frc wrote:


>>> I want to know how to disable the function copy in a html page in
>>> order to protect some document of copying


>> Disabling right click with <body oncontextmenu="return false"> makes
>> it difficult to copy the pictures.
>> Like the others explained, it will not work for 100% of your
>> visitors (but averaged 98.75% of them will be discouraged


> While anyone who tries to use the context menu to open a link in a new
> window, bookmark the page, go back, go forwards, check the security,
> see what cookies are set, refresh, etc, etc, etc - is likely to be
> rather irritated.
> And I'd like to know where you came up with that very interesting
> statistic - made it up on the spot perhaps? My estimate would be much
> lower.


Hehehe, I was sure one of you would respond
About the things you mentioned like check security, see what cookies are
set, opening link in new windows, there aren't so many people (maybe even
less than the 1.25%) who even know such things are possible let alone they
know how to do it.
Most of the things you mention can be done in another way (My favourite
browser (Greenbrowser) for example, opens a link in a tabbed window on
Shift+left click)
About the irrititation you presume, I think someone who's really irritated
will very quickly find out how to avoid such problems
And, you guessed it, I made the statistic figure up on the spot. It's based
on the fact that no one I know in real life knows how to get around such a
disabling (but maybe it says only something about the intelligence of us
Dutch

Cheers, Nico


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Functionality w/o Using Copy/Paste Buffer al_johnson222@yahoo.com Javascript 1 12-01-2006 08:47 PM
what is Deep Copy, shallow copy and bitwises copy.? saxenavaibhav17@gmail.com C++ 26 09-01-2006 09:37 PM
Disable Paste and Drag event khng Javascript 2 05-02-2006 03:59 AM
is dict.copy() a deep copy or a shallow copy Alex Python 2 09-05-2005 07:01 AM
disable ctrl-v (paste) chirs Javascript 12 11-30-2003 12:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57