Helpcenter +918010117117 https://help.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India
call to replace anchor tags contains '/admin' in href

How to disable data copying from your site?

Many times, you may want to prevent images, videos, and text of your site to get downloaded or copied. To do so, you can disable the right-click functionality on your site. In this way, the user won't be able to save or download the images and other data from your site. To disable the copying and downloading of text, images, or videos from your site, follow the steps mentioned below:

  • Go to Site > Startup Widgets section in StoreHippo Admin Panel
  • Click the Add New button. 
  • In the Name field, provide the name of the widget.
  • Paste the following code in the template section.
<script language=JavaScript>
var message = "You cannot copy the data!";
function clickIE4() {
if (event.button == 2) {
return false;
}
}
function clickNS4(e) {
if (document.layers || document.getElementById && !document.all) {
if (e.which == 2 || e.which == 3) {
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("return false")
document.oncontextmenu = new Function("alert(message);return false")
</script>
  • In the Append To field, select the "Head" option.
  • Enable the Publish checkbox.
  • After pasting the code, click the Save button to apply the changes. 

Now, the copying and downloading of data not be allowed on your site. When the user will try to do so, the popup will open up informing copying data is not allowed. 

2022-01-21T06:27:37.057Z