Help & Support



Knowledge Home | Images & Photos |
Prevent Image Copying

To prevent people from saving your images, you can insert some HTML code:

To insert the code:

  1. Go as you would to edit the page where you'll have the image.
  2. Make sure you're using the HTML Editor. If you are in the HTML Editor, there will be a blue link at the top right corner of the editor called 'Switch to Easy Editor'. If you are not in the HTML Editor, there will be a blue link at the top right corner of the editor called 'Switch to HTML Editor'; in this case you will need to change to the HTML Editor by clicking the blue link, selecting the HTML Editor, and then clicking the green 'Save' button. Once you are in the HTML Editor, insert the following code:

<SCRIPT language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</SCRIPT>

  1. Save your changes by clicking the green 'Save' button at the top right or bottom of the page.

Yellow Warning You have to copy and paste this to each page you would like it to work on. Also, the no right-click code does not guarantee your image is safe. A person can still take a screen shot of your page and then crop your image out. To better protect your images, you may want to put text on top of your image like "SAMPLE" and/or legally copyright your images.

Green Warning Please note that this code is only an example and you can find different no right-click code by searching on Google.

 

Related Articles:
No related articles.
 
Attachments:
No attachment found for this article.
 
Was this article helpful?
 
 
Solution #: 6131171
Category: Images & Photos
Type: Knowledge Base
Status: Published


Back to Knowledge & FAQs page.