Log in

View Full Version : How Do I Disable the 'COPY' Function?



t.osberger
03-24-2006, 02:34 AM
Hello Everyone!

I have a website that was created with FrontPage 2003. I have already disbled the mouse 'right-click' function using a script. I am wondering is there another script that will disable the copy funtion located on the IE, Edit, Copy pull-down menu?

We have a couple of pages with very tightly controlled information and do not want our competitors to be able to anything more than simply view the content. If they wnat to copy it, I want them to have to do it word for word line for line, not using a menu 'Copy' function. Hopefully, someone out there has run into this before!

Thank you so much, in advance!

Samsoske
03-24-2006, 02:40 AM
Are you protecting text only, if so:

Put this in the <head> section of you page, this will stop anyone from highting text, thus stopping them from doing anything with it.:


<script type="text/javascript">

/***********************************************
* Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}

</script>

jscheuer1
03-24-2006, 02:48 AM
Hello Everyone!

I have a website that was created with FrontPage 2003. I have already disbled the mouse 'right-click' function using a script.

No, you haven't, you only think you have, this can be overridden in a number of ways. The disable right-click is for cosmetic purposes only and/or to keep honest people honest.


I am wondering is there another script that will disable the copy funtion located on the IE, Edit, Copy pull-down menu?

No, this is a system or OS level function not available to javascript.



We have a couple of pages with very tightly controlled information and do not want our competitors to be able to anything more than simply view the content. If they wnat to copy it, I want them to have to do it word for word line for line, not using a menu 'Copy' function. Hopefully, someone out there has run into this before!

Thank you so much, in advance!

Copyright your material, that is what the law is for. Actually, merely by publishing original material, it is copyright. You might want to put up a few prominent notices though and maintain notarized and dated hard copy as proof of authorship, if it is so important.

t.osberger
03-24-2006, 03:12 AM
Thank you so much!

Man, I always feel so stupid when I come here looking for answers. It's like I live inside the dark ages or something. I can't complain to much though, I always seem to find something on this forum I never knew before.

I appreciate your help! Thank You again!