473,763 Members | 3,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2010
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.comwrot e in message
news:11******** **************@ l53g2000cwa.goo glegroups.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.comwrot e in message
news:11******** **************@ l53g2000cwa.goo glegroups.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.ukwr ote in message
news:jP******** *************@e clipse.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.comwrot e in message
news:11******** **************@ l53g2000cwa.goo glegroups.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
1610
by: Marek Mänd | last post by:
How to prevent selecting table cells with CTRL+mouse left click in Gecko based browsers?
102
7397
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
2233
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 constructions. The set weights to certain asset types, hit calculate and see some results. Our problem is that users want to compare different situations side by side. So they either hit CTRL+N or Choose "File, New" launch a new browser window,...
1
1555
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
1902
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 into the Design View and changing the application or copying the tables. Is there a way to stop the user from going intothe design view. Second is there any way I can prevent casual copying and distribution of the
17
5484
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 problem where a user (and me it has to be said) just either highlights the email address with their mouse (or Ctrl-A) and then Ctrl-C, Ctrl-P (or right-click copy, right-click paste) into the next field down.
2
2289
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 internet since I guessed someone would have faced this problem before but of no avail. Do we have pointers on how I should go about doing this??
4
18347
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 in tree, added or deleted a node etc, added items to a list box etc etc. I just push the control onto the stack when they change it (regardless of control type) and Pop if back if they undo. My problem is how to a get a copy of the control?...
2
2874
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 suddenly I discovered that one can paste a large amount of text or a Big Image in the Rich text editor which was not a desired thing because we set up a maximum limit of text one can enter and the Big image problem is that we have the option to insert...
2
2370
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 stuff in between. Is there a simple way to do this? I know I could move the whole element using some DOM scripting, but I'd really like to do it just using something similar to style.visibility=hidden. Any suggestions? Here's some basic code to...
0
9386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9937
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.