> For the complete documentation index, see [llms.txt](https://docs-shpf.bsscommerce.com/bss-b2b-lock-login-password-hide-price/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-shpf.bsscommerce.com/bss-b2b-lock-login-password-hide-price/lock-core-concepts/goal-based-guides-i-want-to.../lock-your-entire-website-and-only-allow-b2b-wholesale-customers.md).

# Lock your entire website & only allow B2B/wholesale customers

Make your store fully private so only approved B2B/wholesale customers can see any content.

**Goal**\
Make your store **fully private** so only **approved B2B/wholesale customers** can see any content.

**When to use this recipe**

* You run a **wholesale-only** business.
* You don’t want the public to browse your catalog or prices.
* You only sell to **approved customers** (e.g., tagged with `wholesale`).

***

#### Step 0 – Before you start

* Decide which customers are “approved” (usually via **tags** like `wholesale`, `b2b-approved`, `partner`).
* Make sure your B2B approval flow (e.g., registration form from B2B & Wholesale Solution) is set up to assign those tags.

***

#### Step 1 – Lock Target

1. Go to **Apps → B2B Lock → Locks → Add lock rule**.
2. In the **Start with a preset** modal, select **Create my own lock**, then click **Continue**.
3. In **Step 1 – Lock Target**:
   * **Lock name**: `Lock entire site for wholesale only`.
   * In **What do you want to lock?**, select **Entire store**.
4. Click **Next**.

This tells B2B Lock to treat the whole store as gated content.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-93c53e1dfa3ad7009b38d43fc7fc8c273a98f761%2Fstep1-lock-target-option-entire-store.png?alt=media" alt="The What do you want to lock? dropdown open, showing Entire store and the other lock targets"><figcaption><p>Step 1 — Lock Target. Select Entire store</p></figcaption></figure>

***

#### Step 2 – Access & Message

Let’s allow only **tagged wholesale customers**:

1. In **Rule 1**, click the **User type** condition chip and choose **Tagged customers – Must have specific tags**, then enter `wholesale` (or your chosen tag) in the **Customer tag** field.
2. Optional:
   * Click **+ Add rule** to add separate rules for internal tags (e.g., `staff`, `test`) if needed. A visitor who matches any rule gets access.

Everyone else (guests + non-wholesale customers) will see the lock message.

Make the message clear and helpful. In the **Preview** card, click **Customize message** and set:

* Headline: “Wholesale access only”.
* Body: “This store is available only for approved B2B customers. Please log in with your wholesale account or request access.”
* Add buttons/links:
  * **Login**
  * **Request wholesale account** (link to your B2B registration page)

Click **Next**.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-1470035576362bede59d95955b4d41afa858f6b3%2Fcustomize-message-modal.png?alt=media" alt="The Preview &#x26; customize message modal with the message text editor, Custom CSS and a live preview"><figcaption><p>Preview &#x26; customize message — edit the lock message and preview it on desktop or mobile</p></figcaption></figure>

***

#### Step 3 – Exclude Pages

* In **Exclude from lock rules**, check public pages you still want visible — e.g. **Home page**, **Customer areas** (login, register and account pages), **Policy pages**, or **Specific pages** such as `Contact` or `About`.
* Under **SEO and Meta Tag Options**, check **Add the "noindex" meta tag to any pages protected by this lock** to keep locked pages out of search engines.
* Under **Hide content on locked page**, choose whether to **Hide store's header and footer** and **Hide store's navigation bar** on the lock screen.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-ba4c12c984d470b6a79649acf8f058e0970d7987%2Fstep3-entire-store-seo-hide-content.png?alt=media" alt="Step 3 for Entire store: Exclude from lock rules, SEO and Meta Tag Options and Hide content on locked page"><figcaption><p>Step 3 — Exclude Pages. Exclusions, noindex and Hide content on locked page for an Entire store lock</p></figcaption></figure>

Click **Save** (the button next to **Back**, or **Save** in the **Unsaved changes** bar at the top of the page).

***

#### Check your storefront

* As a **guest or non-tagged customer** → you should see the lock screen when visiting the homepage.
* As an **approved, tagged wholesale customer** → you should see and use the site normally after logging in.

***

## **Still Need Help?**

If you have questions or need assistance configuring BSS B2B Lock, our dedicated support team is here to help.

* **In-App Assistance:** Click **Need help?** or use the in-app chat button within BSS B2B Lock.
* **Email Support:** Contact us at [**support-sbc@bsscommerce.com**](mailto:support-sbc@bsscommerce.com) with your store URL and specific rule details.
