> For the complete documentation index, see [llms.txt](https://docs.b2bridge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2bridge.io/b2bridge-lock/app-configuration.md).

# App configuration

This guide walks you through creating and managing a lock rule to secure your storefront. B2Bridge  uses a single dynamic interface to control what is hidden, who gets access, and how the restriction looks.

Navigate to **lock rule** dashboard to begin.

### Step 1: Status

Turn the lock on or off.

* Check **Rule enabled** to enforce the restriction on your live storefront immediately.
* Uncheck it to keep the rule as a draft.

> 💾 Note: Changes will trigger a save bar at the top of your screen — click Save to apply them.

<figure><img src="https://174694297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9OWhs8RtPKlHqknxF8Qf%2Fuploads%2Fm8EmL6Ai0luxFe3qh02r%2Fimage.png?alt=media&amp;token=d9dc6a58-1b90-4a21-a75c-0eb3b7a6910b" alt=""><figcaption></figcaption></figure>

### Step 2: What to lock

Choose the restriction type from the Lock dropdown menu:

* **Hide products entirely:** Completely lock specific items or catalogs from unauthorized eyes.
* **Hide product's price:** Keep products visible, but mask the pricing and disable the "Add to Cart" button.
* **Hide specific pages / URLs:** Lock custom pages, blogs, or internal resource links.

<figure><img src="https://174694297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9OWhs8RtPKlHqknxF8Qf%2Fuploads%2FWTV1KAO2xipIp3s0PZn2%2Fimage.png?alt=media&amp;token=ba72af20-15df-449b-93cd-810b530ecba8" alt=""><figcaption></figcaption></figure>

### Step 3: Select what to apply the rule to

Depending on your selection in Step 2, you will configure either the product scope or the specific URL paths:

#### 3.1. Hide products entirely/Hide product's price

Define which items this rule applies to using the Apply to dropdown menu:

* **All products:** Applies the restriction across your entire store catalog.
* **Specific products:** Allows you to handpick exact products or collections.

<figure><img src="https://174694297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9OWhs8RtPKlHqknxF8Qf%2Fuploads%2FbgNfKwjk8CFjRDqaCYRF%2Fimage.png?alt=media&amp;token=bad77d84-79c6-4208-b789-c607e979e2b4" alt=""><figcaption></figcaption></figure>

*Tip:* Click **Edit products** to open the selection modal. You can search by Product title, Product ID, Barcode, or SKU, and use filters to narrow down your target list.

<figure><img src="https://174694297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9OWhs8RtPKlHqknxF8Qf%2Fuploads%2FjAiiwyOjK1biQj5OjqtX%2Fimage.png?alt=media&amp;token=fcc56059-7055-4085-a57f-96de5bc397d7" alt=""><figcaption></figcaption></figure>

#### 3.2. Hide specific pages / URLs

Specify the exact web addresses you want to restrict under the Pages / URLs to lock section:

* Page URL or path: Enter the specific relative path or URL of the page you want to lock (e.g., `pages/wholesale-terms` or `blogs/news`).
* Click **Add** to include the path in your restriction list. The entire content of any matching page will be securely masked and replaced with your custom display message.

<figure><img src="https://174694297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9OWhs8RtPKlHqknxF8Qf%2Fuploads%2F2moUvfnjDo5dFl8YnuWy%2Fimage.png?alt=media&amp;token=0a3a2b20-7ffe-4916-9a0d-d89e15a38f9d" alt=""><figcaption></figcaption></figure>

### Step 4: Access & Display Settings

Define who can bypass the restriction. The **Display settings** fields below will dynamically adapt based on your selection from the **Allow access for** dropdown:

<figure><img src="https://174694297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9OWhs8RtPKlHqknxF8Qf%2Fuploads%2FinNDrlzSpHlmoVfLYtCz%2Fimage.png?alt=media&amp;token=4c37a132-85c1-45ee-9467-4d2afc305b06" alt=""><figcaption></figcaption></figure>

#### 4.1. All logged-in customers

Any user who has a registered account and logs into your storefront can access the content.

**Message:** Enter your custom call-to-action text (e.g., `"Log in to view product"` or `"Log in to view price"`).

<figure><img src="https://174694297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9OWhs8RtPKlHqknxF8Qf%2Fuploads%2F6gIwlBbjtEOIxJqklhXw%2Fimage.png?alt=media&amp;token=db0a4676-70ea-44f1-870e-e36fcb74a687" alt=""><figcaption></figcaption></figure>

#### 4.2. Customers with a specific tag

Restrict visibility strictly to verified accounts carrying a unique tag (e.g., `B2B`, `Wholesale`).

* **Message:** Customize the fallback text for non-tagged logged-in customers.
* *Tip:* To manage tags, go to **Shopify Admin > Customers**, select a profile, and check the Tags section on the right. Ensure your entry here matches Shopify exactly.

<figure><img src="https://174694297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9OWhs8RtPKlHqknxF8Qf%2Fuploads%2F76lENA8kw4KCtjPsFgPp%2Fimage.png?alt=media&amp;token=7fe939d4-474e-41c3-ac69-5e0fd23f9496" alt=""><figcaption></figcaption></figure>

#### 4.3. Visitors who enter a password

Require a shared passcode to unveil the hidden content.

* **Password:** Enter the exact passcode shoppers must type.
* **Input placeholder:** The ghost text inside the input box (e.g., `"Enter password"`).
* **Unlock button text:** The label on the action button (e.g., `"Unlock"`).
* **Wrong-password message:** The error note shown upon incorrect entry.
* **Styling:** Customise the Button color and Button text color using hex codes to match your branding.

<figure><img src="https://174694297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9OWhs8RtPKlHqknxF8Qf%2Fuploads%2FLLdl1hBxDdflHNL8RXqw%2Fimage.png?alt=media&amp;token=57001ca3-7d6f-4212-8902-4eebcdb72792" alt=""><figcaption></figcaption></figure>

***

{% hint style="success" %}

### Need Help?

If you have questions or run into issues while using any feature, we're here to help.

* 💬 **Start a** [**Live Chat** with our support team](https://go.crisp.chat/chat/embed/?website_id=a59f354c-f51f-4f84-ae9a-c0e8dd69d2e5) directly from your B2Bridge dashboard.
* 📧 **Email us at** [**support@b2bridge.io**](mailto:support@b2bridge.io) and we'll get back to you as soon as possible.
  {% endhint %}
