Results 1 to 4 of 4

Thread: How Do I Disable the 'COPY' Function?

  1. #1
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation How Do I Disable the 'COPY' Function?

    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!

  2. #2
    Join Date
    Mar 2006
    Location
    Somewhere....
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hello

    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.:

    HTML Code:
    <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>

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by t.osberger
    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.

    Quote Originally Posted by t.osberger
    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.

    Quote Originally Posted by t.osberger
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •