# Creating Lock for the whole website

**Steps to manage**

1. Open the app > click **Locks** > click the **Create Lock** button
2. Choose the type of lock you want > **Whole website** > **Create lock:**&#x20;

<figure><img src="/files/vfLmogyiD79dRJEhcfWm" alt=""><figcaption></figcaption></figure>

3. Set up **Name** for the lock.
4. As this lock is created to lock the whole website, it means whichever pages you click on in the store site, it will be locked!

So in the **Additional settings** section, there are two settings to help you exclude the page you want customers to access whereas the whole website is locked.&#x20;

* **Exclude url:** Write down the page URL you want your customers to see when accessing the site. To set it up, kindly **write the URL tail only**.

<figure><img src="/files/GTeh4gh63cnUmt49Vqqr" alt=""><figcaption></figcaption></figure>

For example, the page URL has format like this: <https://trang-test12.myshopify.com/pages/wholesale-registration-form>

You should write: **/pages/wholesale-registration-form** -> Click on the **Add** icon:

<figure><img src="/files/ZneB5IRoF5gbDHzXIzA5" alt=""><figcaption></figcaption></figure>

* **Allow access to the homepage:** Tick on this setting, customers will be able to view your **homepage**, then if they click on anything else in the homepage, the lock will be activated.&#x20;

<figure><img src="/files/McpeYwE0JwKPfCUfoZ7S" alt=""><figcaption></figcaption></figure>

*If you **untick all these above settings**, the whole website will be locked and the lock works immediately once the customers access your site. They cannot go anywhere else until they satisfy the lock condition (login or enter passcode):*

<figure><img src="/files/ZrqFEzQQxtuL2jwSjhTO" alt=""><figcaption></figcaption></figure>

5. Set up **Conditions settings**: Select who can (or cannot) access the content, and the direct page when customers access the Lock. Refer to this [document](https://docs.samita.io/b2b-lock-password-protect/lock-1/lock-condition)

<figure><img src="/files/MUnrc83t0J2Juci7V079" alt=""><figcaption></figcaption></figure>

6. Click **Save** to update the changes

Check the result on the front store

{% hint style="success" %}
**Need support?**

If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [support@samita.io](https://samita.io/pages/contact)
{% endhint %}


---

# Agent Instructions: 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://docs.samita.io/b2b-lock-password-protect/lock-1/creating-lock-for-the-whole-website.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.
