Veracart Shopping Cart Software | Ecommerce KnowledgeBase

Knowledgebase Home Knowledgebase Home
Search the Knowledgebase Browse by Category

"How can I prevent people from right-clicking and saving of pictures from my store ?"

User Opinions
100% 0% (1 vote)

How would you rate this answer?
Helpful
Not helpful

Short Answer:

Although we do offer a way to do this, you should know that you cannot really prevent people from stealing your product photos this way.  You may have seen some sites where whenever you right-click, it gives you a warning message, preventing you from saving the picture.  Most web-designers know that all you need to do to get around that is to disable Javascript in your browser

We recommend putting watermarks on your images (e.g. using Photoshop) for the best protection.

Detailed Explanation:

If you put this script on top of any page that has images you want to protect (e.g. catalog page):

<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="Due to the nature of our product we ask that you do not download our images.";           
///////////////////////////////////     
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>
Visitor Comments
No visitor comments posted. Post a comment
Related Questions
No related questions were found.
Attachments
No attachments were found.