How to Block Specific Countries from Accessing Your Shopify Store Without App

Once launched, a Shopify store is available worldwide. But in many cases, it’s necessary to control your site access, especially when you want to stop scammers and hackers from particular countries. There are many best Shopify apps available to help you block visitors from specific countries. But if you want to do it manually then you can check out this article.

Please follow the steps below:

  • From your Shopify admin, go to Online Store > Themes.
  • Find the theme you want to edit, and then click Actions > Edit code.
  • Under Layout, select theme.liquid.
  • Putting the script below top of this file

  • Click Save and you are done.

I hope it’s helpful for you.

Happy coding!

You may also like...

Leave a Reply

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