Shopify

How to restrict/allow access to content based on IP address?

68 views April 16, 2025 1

Using our Content restriction application, you can create a lock on the Shopify Store based on IP address. To enable the IP address-based lock on your Shopify Store, follow the steps mentioned below:

This feature is available in the Starter & above – [App Link]

  • Navigate to Apps >> LockOn – Restrict Store Content application.

restrict store content based on location go to app

  • Click on the Create Lock button.

Click on Create Lock

  • Enter the name you’d like to give your lock in the Lock Name input box.

Give your lock in the Lock Name

  • Under the What to lock section, choose the parts or content of your Shopify store you want to lock.

choose the parts or content of your Shopify store you want to lock

  • Select the Lock Criteria as the I.P Address . You can set 2 types of IP addresses – Single IP and Subnet IP.
  • Single IP – Add the IP address that you wish to restrict/allow access from. For example 192.168.1.0
  • Subnet IP – Add the IP Address along with the network address that you wish to restrict/allow access from. For example 192.168.1.0/24

Select countries from where you want to allow or restrict users

  • Under the Handle Unauthorized Access section, choose what happen when unauthorized user try to access locked content. You can redirecct them to any store page, login page, any custom URL, or can show custom HTML.

restrict store content based on location create location lock

  • You can apply the lock immediately or schedule it to activate at a specific time. Set a custom duration for the lock to automatically restrict or reopen access based on your store’s needs.

lock shopify store how to lock

  • Click on Create.

Hence, you’ve added a lock on Shopify store based on the I.P.Address.

Was this helpful?


Hello there!

Need Help? We are right here!

support