How To disable Right-click, Text selection, Copying and download Image in Shopify store

Steps to Add the Code in Shopify:
1.
Log in to your Shopify admin and go to Online Store > Themes.
2. Click on Actions > Edit code for the theme you’re using.
3. In the left sidebar, find the file called theme.liquid under Layout and click on it.
4. Scroll to the bottom of the file, paste JavaScript code before the </body> tag.

<script>

   // Disable right-click
   document.addEventListener('contextmenu', function(e) {
       e.preventDefault();
   }, false);

   // Disable text selection
   document.addEventListener('selectstart', function(e) {
       e.preventDefault();
   }, false);

   // Disable copy
   document.addEventListener('copy', function(e) {
       e.preventDefault();
   }, false);

   // Disable drag and drop
   document.addEventListener('dragstart', function(e) {
       e.preventDefault();
   }, false);

   // Disable developer tools by blocking common shortcuts
   document.onkeydown = function(e) {
       if (e.keyCode == 123 || // F12
           (e.ctrlKey && e.shiftKey && (e.keyCode == 'I'.charCodeAt(0) || e.keyCode == 'J'.charCodeAt(0))) || // Ctrl+Shift+I, Ctrl+Shift+J
           (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0))) { // Ctrl+U
           return false;
       }
   }

</script>

5. Save the changes.

✅ Video Guide for 👉  Block copy text