Shopify's built-in features, including Shopify Markets, provide basic country-level controls. However, they do not let you restrict access at the city or state/region level. If you need more precise geographic targeting, such as blocking users from a specific city or allowing access only in certain regions, you will require a specialized access restriction solution.
How LockOn Enables City & Region Restrictions
LockOn – Access Restriction uses visitor location detection based on IP addresses to control access to your store content. With this app, you can restrict or allow access based on:
- City
- State/Region
- Country
- Specific IP addresses
You can apply these rules to:
- Individual products or variants
- Collections
- Pages, blogs, and articles
- Product prices
- Add to Cart and Buy Now buttons
This makes it suitable for businesses with regional regulations, local distribution limits, or location-specific offerings.
How to Set Up City or Region-Based Restrictions in Shopify
Step 1: Install the LockOn – Restrict Store Content app
- Go to the Shopify App Store.
- Install LockOn – Restrict Store Content app from the Shopify App Store.
- Open the app from your Shopify Admin dashboard.
Step 2: Create a New Lock
- Open the app and click Create Lock.
- Enter a meaningful name for your lock (e.g., "City-Based Product Restriction").
Step 3: Select the Content You Want to Restrict
Under Content for Locking, choose what you want to restrict:
- Products - restrict individual products or variants
- Collections - apply rules to entire product groups
- Pages, blogs, and articles - control access to content pages
- Product prices - hide prices for specific regions
- Add to Cart and Buy Now buttons - restrict purchase actions
Step 4: Set City or Region-Based Access Rules
In the Control Access section:
- Choose City or State/Region from the location options.
- Specify the cities or regions where access should be restricted or allowed.
- Define whether visitors from those locations:
- Are blocked from viewing the content, or
- Are the only ones allowed to view it.
Step 5: Configure Unauthorized Access Behavior
Choose what happens when access is denied:
- Redirect to another page
- Show a custom message
- Redirect to a custom page
Step 6: Save and Activate the Lock
- Click Save to activate the rule.
- The app will automatically enforce these rules in real time based on the visitor's location.
While Shopify does not provide city or region-level access control by default, LockOn – Access Restriction by miniOrange makes it simple to manage precise geographic restrictions. This helps you deliver the right content to the right audience in the areas where it's available.