> 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-pages-with-login-signup-form-or-custom-message.md).

# Lock pages with login / signup form or custom message

**Goal**\
Lock selected **pages** (not the whole site) and show a **login/signup form or custom message** instead.

**When to use this recipe**

* You have a **wholesale info page**, resource library, or partner docs.
* You want those URLs visible only to logged-in or tagged customers.

***

#### Step 0 – Before you start

* Identify the URLs/pages you want to protect (e.g., `/wholesale`, `/partners`, `/resources`).

***

#### Step 1 – Lock content

1. Go to **Locks → Add lock**.
2. In **Step 1 – Lock content**:
   * Name: `Lock wholesale info page`.
   * Target: **Specific pages** / **Page / URL / Blog** (depending on UI).
   * Select the page(s) you want to lock (e.g. `Wholesale`, `B2B Information`).

***

#### Step 2 – Control access

Choose the access pattern:

**Option A – Logged-in customers only**

* Condition: **If the customer is signed in**

**Option B – Only tagged customers (wholesale/partners)**

* Condition: **If the customer is tagged with `wholesale`** (or `partner`).

***

#### Step 3 – Advanced settings

This is where the **UX** matters most:

* Headline: “Wholesale information for registered customers”.
* Body:
  * Explain who the page is for.
  * Explain the next step (login, signup, or contact).
* Add:
  * **Login** button/link.
  * **Create account / Request access** link.

If you don’t allow self-registration, clearly say “Contact us to request access” with a link.

Click **Save**.

***

#### Check your page

* As a **guest/unapproved user** → opening the URL should show your lock message and login/signup options.
* As an **approved customer** → after logging in, the page should load normally.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs-shpf.bsscommerce.com/bss-b2b-lock-login-password-hide-price/lock-core-concepts/goal-based-guides-i-want-to.../lock-pages-with-login-signup-form-or-custom-message.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
