> 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/app-configuration/lock-hide.md).

# Lock & Hide

Lock & Hide lets you control what different customers can see and access on your storefront. You can restrict entire product categories, individual products, prices, or specific pages and define exactly who is allowed to view them.

### Setup

This guide walks you through creating a Lock & Hide rule, choosing what to lock or hide, who can access it, and what restricted customers see.

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

Go to **Dashboard** > **Lock & Hide** in the sidebar and click **Create lock**.

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

#### Step 1: General information

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

* **Lock name:** enter an internal name for this rule (not shown to customers).
* **Status:** set to **Enabled** to activate the rule, or **Disabled** to save it without applying it yet.

#### Step 2. Choose what to lock or hide

In the **Choose what to lock/hide** section, select the lock type:

**Entire store**

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

Locks your entire storefront. All pages and products require the access condition to be met.

**Lock collections**

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

Choose which collections to lock:

* **All collections:** every collection on your store
* **Specific collections:** search and select individual collections

All products within a locked collection are also locked.

**Lock products**

<figure><img src="/files/8BiiCpxOoTtTcgI4tnpM" alt=""><figcaption></figcaption></figure>

Choose which products to lock:

* **All products:** every product on your store
* **Specific products:** search and select individual products
* **Products in price lists:** lock all products belonging to specific Price Lists

**Hide product prices**

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

Choose which products have their price hidden from non-qualifying customers. Products are still visible, but the price is replaced by your custom message. Options: all products, specific products, or products in specific Price Lists.

**Specific pages**

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

Select individual pages to lock: Homepage, Customer log-in/registration page, or other custom page URLs.

You can also specify **Pages to exclude from being locked** — for example, exclude your login page even when locking your entire store.

#### Step 3: Who can access

In the **Choose how customers can access locked content** section, define the access condition:

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

* **All logged-in customers:** anyone with a store account
* **Customers belong to customer groups:** select specific Customer Groups
* **Select specific customers:** search and pick individual customers
* **Enter password:** customers gain access by entering a passcode you define
* **Members belong to specific company:** select a Company Account

You can also use the **Invert** button to flip the logic  for example, to block specific customers rather than allow them.

#### Step 4: Display settings

In the **Choose what to display to restricted customers** section, configure the message or interface shown to customers who don't meet the access condition.

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

**For locked content (non-price-hiding rules)**

Enter the message or redirect URL that restricted customers see when they try to access locked content.

**For Hide price rules**

Use the visual editor to customise the message that replaces the price. You can adjust the font, color, font style, and size. Switch to the **Edit HTML** tab to customise the message further with raw HTML.

A **Preview** panel shows how the message will look on your storefront.

Click **Save**. The rule activates immediately if the status is set to **Enabled**.

***

{% 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 %}

***

{% 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 %}


---

# 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://docs.b2bridge.io/app-configuration/lock-hide.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.
