Helpcenter +918010117117" [email protected]
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.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")
  • 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.