> For the complete documentation index, see [llms.txt](https://help.lockpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.lockpro.io/how-to-create-geo-lock-and-allow-specific-country-to-access-the-store.md).

# How to create Geo Lock and allow specific country to access the store?

1. **Open the Geo Lock page**\
   In Shopify Admin, go to **Apps → LockPro → Geo Lock**.
2. **Set restriction type**\
   From **Restriction type**, choose **Allow only listed countries (allow access)**.
3. **Add your country**
   * Click **Choose Country** and select the country you want to allow.
   * Your selected country will appear as a tag remove it if you change your mind.<br>

     <figure><img src="/files/DBe2RkgS4rBcOnTnL0h0" alt="" width="461"><figcaption></figcaption></figure>
4. **Define how to handle others**\
   Under **What happens when access is restricted?**, pick one:
   * **Show restriction message**: block access completely for visitors from unlisted countries see your custom message.
   * **Redirect to URL**: send them to a page you specify (e.g. `/pages/contact`).<br>

     <figure><img src="/files/NcuVI9saYUB1idklwAPI" alt="" width="375"><figcaption></figcaption></figure>
5. **Activate & save**
   * Ensure **Status** is **Active**.
   * Click **Save**.\
     \
     Final Output:<br>

     <figure><img src="/files/5EuHk6UxDQCy3GJJCnPN" alt=""><figcaption></figcaption></figure>

***

Now only visitors from your selected country can access the storefront. All others will see your chosen restriction behavior.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.lockpro.io/how-to-create-geo-lock-and-allow-specific-country-to-access-the-store.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
