Restricting by a visitor's location

Locksmith can help you restrict access by automatically detecting the location of the IP address of a visitor. The location condition supports many type of locations including:

  • Regions (eg: North America, Asia, Antarctica)
  • Countries (eg: Australia, Germany, Nauru)
  • Provinces/States (eg: Texas, Nova Scotia, Sikkim)
  • Cities (eg: Montreal, Chicago, Tokyo)
  • Towns (eg: Český Krumlov, Santa Maddalena)

Giving access to locations

Once you've created your lock, choose the Location key:

Next, in the key configuration box,  search for the location: 

Click the name of the area to add it to the key. Feel free to add additional locations: 

Save the key, and you're all set. Those locations will be given access to your locked content, but everyone else around the world won't.

Hiding FROM locations

To make sure some locations don't see your locked content, you'll use the same method. 

Add your location(s) to the key like normal, but this time click the "invert" box in the upper right of the key box: 

The result here is that customers around the world can get access to your locked content, all except for those in that location. 

SEO Limitations

It is important to know that content protected under these key types will not be indexed properly, when used normally. This will strongly effect your SEO for any pages that are covered by these locks. This is because of Google's rules against cloaking. That is to say - we are not allowed to show different content to a search engine vs a regular visitor, as per Google regulations.

If you are using Location or IP address keys, and you still want your content to be indexed, you still have options!

If you have specific products that are not available in certain countries: You'll need to use manual locking to hide only the add-to-cart button. More info on that here.

If you have different versions for different countries: You can create separate versions of your products using variants, and setting up Locksmith to hide the variants depending on who is visiting. More info on that here.

Shipping Address Limitations

Locksmith can only protect the frontend of your Online Store, and cannot extend its protections to Checkout. So, this does not prevent customers who have IP addresses located in an allowed location from choosing a specific shipping address that is in a blocked location at checkout. Locksmith is not able to control shipping destinations during checkout.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us