how do you prevent users from copying ctrl-c content from your textboxes

M

Mark C

how do you prevent users from copying ctrl-c content from your
textboxes. I know how to do this with IE which is
<body onSelectStart="return false;">

but does not work in Mozilla

Thanks
Mark
www.quiznetonline.com
 
L

Laurent Bugnion [MVP]

Hi,

Mark said:
how do you prevent users from copying ctrl-c content from your
textboxes. I know how to do this with IE which is
<body onSelectStart="return false;">

but does not work in Mozilla

Thanks
Mark
www.quiznetonline.com

I agree with Mr SweatyFinger. What is published on the internet is
public, and every attempt to protect it from copy is doomed to fail. In
the case you mention, the first obvious thing that comes to mind is to
temporarily disable JavaScript, copy-paste, and then enable it again.

Greetings,
Laurent
 
M

Mark Rae

how do you prevent users from copying ctrl-c content from your
textboxes.

You can't... Any of the "methods" you'll find on the Internet to do this are
so easily circumvented that it's simply not worth the bother.

If you're so paranoid about your data, then the public Internet is clearly
not the right place for it...
 
M

Mark Rae

Your wasting your time worrying about it dude.
Absolutely.

Even systems that use javascripts document.write to write the content from
a decrypted source doesn't stop the end user simply re-keying what your
displaying.

There are plenty of freeware screen-scrapers which will do this for you
too...
 
S

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

One common technique is to output the text as an image.
They could still copy it as an image, but generally that's not very useful
for textual content.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top