473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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

Jan 26 '07 #1
6 1959
fire the users!
or fire the supervisors who think of this stuff!
Jan 26 '07 #2
Hi,

Mark C wrote:
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
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Jan 26 '07 #3
"Mark C" <Ma*************@gmail.comwrote in message
news:11**********************@l53g2000cwa.googlegr oups.com...
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...
Jan 26 '07 #4
Your wasting your time worrying about it dude. 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.

--
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Mark C" <Ma*************@gmail.comwrote in message
news:11**********************@l53g2000cwa.googlegr oups.com...
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

Jan 26 '07 #5
"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:jP*********************@eclipse.net.uk...
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...
Jan 26 '07 #6
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.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

"Mark C" <Ma*************@gmail.comwrote in message
news:11**********************@l53g2000cwa.googlegr oups.com...
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
Jan 26 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marek Mänd | last post by:
How to prevent selecting table cells with CTRL+mouse left click in Gecko based browsers?
102
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
2
by: Guy | last post by:
Is there a way to prevent new browsers windows from sharing session variables with the original window? Our team has an ASP.Net app that lets users analyze portfolio risk given certain portfolio...
1
by: Nitin | last post by:
Hi, How do I prevent users from opening and copying files (related to the project like access files, xml etc). Regards, Nitin
1
by: RICHARD BROMBERG | last post by:
I am writing an Access program using Access 2000. There may be a small market for the application aI am writing and I would like to do two things. First I'd like to prevent a user from going...
17
by: emma.sax | last post by:
Hi all, I have a form where we would like the user to input their email address twice, to ensure they've typed it correctly, as is found on most sign-ups I'm looking for a solution to the...
2
by: AjitGoel | last post by:
Hi; I need to create a custom textbox control which will not allow a user to paste text from the clipboard. The user has to always type the text into the textbox. I tried searching on the...
4
by: =?Utf-8?B?Sm9uIEVsbGlz?= | last post by:
Hi All, I want to implement an 'generic' undo by placing a copy of a control in a stack using System.Collections.Generic.Stack. Basically this way I don't need to know if a user has edited text...
2
arnabc
by: arnabc | last post by:
Hi all, I am developing one online forum kind of website where users have the facility to submit there comments and to do that we r using one custom made rich text editor. So far it was fine but...
2
by: Spizzat2 | last post by:
I've got a web page with some hidden elements that can be shown through various methods. What I'd like is, when the user tries to copy the visible stuff on the page, it doesn't copy the hidden...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.