Script to prevent right click printing Script to prevent right click printing
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Script to prevent right click printing

Started by CGPhotos, September 27, 2006, 07:02:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CGPhotos

I have received a script to prevent people from right click printing of photos.  How and where can I install it to coppermine?  Also, will you check to make sure it is really what it says it is (it's alien to me ;D):

<script language=JavaScript>
var message="";
////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

Stramm

I'm no friend of disabling the right mouse button. It just annoys people and you easily can go around that protection by simply disabling script support in your browser. There are better ways to trick newbs

If you relly want to have that, then place it in themes/yourtheme/template.html somewhere within the document head section

CGPhotos

What do you reccomend, basically I have kids copying my pictures to facebook and a few moms like to print them for themselves, I sell my pictures and dont want this ability.  I am not thinking my problems are really spend the time to get around the right click disable but if you have a better idea I am all ears

rphMedia

Essentially, if you can see an image online, it's printable - plain and simple.  You "may" stop total novices, but I personally can get a hold of any image if it's in my browser.  Just the nature of the Internet.

Watermarking is an option or try to reduce the resolution so that even if they print it, it won't be pretty.  They would still be able to save it somewhere, though.  Everyone thinks that the "prevent right-click" is the way to go. Tis not !

CGPhotos

I have a gigantic © on every picture but this has not prevented the kids from adding them to their facebooks and blogs.

Stramm