How to disable the right click on image to prevent downloading images on Shopify?

Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans.

You want to disable right click and image download for your online store on Shopify. It’s very easy. You don’t have to spend money to install an application. You only add the javascript code bellow into your store.


This script don’t allow right click on image. So the visitors can’t save images.

Looking for Shopify Experts?

Hura Apps can help you take your store to the next level

Our team of experienced designers and developers can help you create a beautiful, high-converting Shopify store that will drive sales and increase customer satisfaction. From custom design to app development and optimization, we have the skills and expertise to help you achieve your eCommerce goals.

Get in touch

You may also like...

15 Responses

  1. Marc says:

    where do i put this code?

  2. john says:

    where do i put this code?

  3. Brigitte says:

    Where exactly? I am using the Debut theme.

  4. Brigitte says:

    Where exactly in the theme.liquid file? I use the Debut theme.

    • Huynh Mai Anh Kiet says:

      On your theme.liquid file to open it in the online code editor. In the online code editor, scroll down a bit until you see the closing body tag. Right before the closing tag, paste this code.

      Remember put it in script tag 🙂

  5. web chronic says:

    people can still copy text just not images. is there to completely disable right click? i seen some stores with this function not sure from app or something.

  6. Charles Reynolds says:

    Copied the code into theme.liquid file and (assumed) theme.js as instructed and it worked however, you can see the actual code on my website. What I did was place the code only in theme.js at the very end and it worked perfectly.

  7. jensen says:

    Put it at the end of theme.js and worked perfectly. thanks!

  8. Tenley Cotten says:

    Thank you. I keep coming across apps for this and i just want the code. Thanks!

  9. Pritesh Soni says:

    Worked perfectly on theme.js.liquid file. Thank you so much!

  10. Eddie says:

    TIP! Put the code at the VERY end of the coding sequence, PAST the original coding. Locked up all four images on my shopify store including an image on my homepage 🙂

  11. Harsh says:

    Not working on Dawn theme for shopif 2.0, please help

Leave a Reply

Your email address will not be published. Required fields are marked *