MotoCMS 3

MotoCMS eCommerce

MotoCMS Blog


Welcome to our LiveChat! Please press "Start Chat" button to proceed

Start Chat

Disabling Right-Click

Stealing images from your website is easy because a user can simply right click and select ‘save image as’ to download them. You can disable right click on your website and make it more difficult for an average user to steal your image.

The easiest way to do this in MotoCMS is by using the following code in Settings - Code Injection section:

<script type="text/javascript">
function nocontext(e) {
var clickedTag = (e==null) ? event.srcElement.tagName :;
if (clickedTag == "IMG")
return false;
document.oncontextmenu = nocontext;
document.addEventListener('contextmenu', event => event.preventDefault());
<style media="screen" type="text/css">
body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;


Have more questions? Submit a request