How to prevent your Shopify store to be loaded via 3rd party site frame of iframe?

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.

There are many websites on the web that will embed your website content using iFrame. In case if you don’t want people to do that you can prevent it using a snippet code of JavaScript.


This javascript code will help you to stop your page being framed by someone else by redirecting the page embedding your page to your page only.

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...

1 Response

  1. Ruri says:

    Hi I put the script above but it is not working at all.

Leave a Reply

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