Does anyone know the code to prevent people from right clicking and copying? I found one on the web a few weeks ago but it did not work when I inserted it into the code. Thanks
They usually don't work on Firefox. Right from the top of my head, I'm not sure if it's even possible on Firefox. It definitely works on IE though.
Your better off encrypting the part of site you do not want shown. If you use no right click thier are easy ways to see code and even sites that show code if you check url at them.
The only way to encrypt it is using javascript. But then the site wouldn't be visible for everybody. However, there's no secure way for whatever you're trying to do. Everything can be bypassed somehow.
I did check on both. I didn't know if there was anything I was to be doing other than just copy and pasting it! I am not concerned about protecting the source info but just your average joe copying the content and pasting it on other sites.
http://ajaxcookbook.org/disable-text-selection/ should do what you want look at the scourse code on the example page to see how its done. Works in firefox, seemonkey etc unless they have java disabled.
In FireFox, you can deny javascript the right to mess with your right click menu. I'm not sure whether that's possible or easy in IE, but people really don't like it when you mess with their browser. Is it text, images, videos, or what? You could borrow from the 1990s, and use a transparent spacer gif ... set it to 100 % width and height of the browser, on top of everything else. If they're images, you could do the same and use the actual jpeg file as a background image, although that's a pain.
That really would not prevent it just find it if someone did. But then again the places that I think it COULD be pasted to have private forums that are only visible to logged in members so I doubt that program would find it? This is a tough business LOL