Results 1 to 6 of 6

Thread: Disable copy & paste in Firefox

  1. #1
    Join Date
    Nov 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Disable copy & paste in Firefox

    Does anyone know a script that works in Firefox to keep people from highlighting the text on a website (in order to keep them from copy & pasting)? I have this one but it only works in IE -

    body ondragstart="return false" onselectstart="return false"

    I know that people can still view the source code to copy the text, but I still want one to at least slow people down.

    And before everyone tells me a no right-click code, I already have one. That doesn't stop people from using keyboard commands to copy & paste. I need something that can disable highlighting the page text all together.

    Thanks in advance~!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Why bother? If you know it doesn't help anyway, why are you still trying to do it? :-\
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Nov 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    Why bother? If you know it doesn't help anyway, why are you still trying to do it? :-\
    Like I said, to slow people down.

    It doesn't really matter WHY I want it, I'm asking if anyone has such a code they can share with me.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    There's a no-select-text script in the DD archives, but I think you're wasting your time and bandwidth (and irritating your users).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Nov 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks!

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It doesn't really matter WHY I want it, I'm asking if anyone has such a code they can share with me.
    Quite the opposite. The reason you want this is crucial. Why? Because the exact script you want doesn't exist and will just cause hassles on your page. Knowing why you want it might help us come up with something else that would help, rather than just not having a script.
    And there are some scripts that make it "harder" to do stuff, but only for users who wouldn't be stealing anyway. So, remember, the thieves will know how, and the regular users will be annoyed.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •