Log in

View Full Version : Disable copy & paste in Firefox



mrstsukiyama
11-30-2007, 04:00 PM
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~!

Twey
11-30-2007, 04:51 PM
Why bother? If you know it doesn't help anyway, why are you still trying to do it? :-\

mrstsukiyama
11-30-2007, 05:28 PM
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.

Twey
11-30-2007, 05:55 PM
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).

mrstsukiyama
11-30-2007, 06:10 PM
Thanks! :)

djr33
11-30-2007, 11:08 PM
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.