> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help-b2b.bsscommerce.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# B2B Lock | How can I lock pages with a login form or display a custom message?


# Set up your rule by using a condition requiring sign-in form
  
### Step 1: Lock content
  
* Choose Entire website to restrict access
![](https://storage.crisp.chat/users/helpdesk/website/-/c/4/a/6/c4a62a42ab467800/image_7v2p2l.png)
### Step 2: Control access
  
* Set rule If the customer is signed in
![](https://storage.crisp.chat/users/helpdesk/website/-/c/4/a/6/c4a62a42ab467800/image_1hwi9m3.png)

* Scroll down to customize your message with Login form or Sign-up form
![](https://storage.crisp.chat/users/helpdesk/website/-/c/4/a/6/c4a62a42ab467800/image_17uwn7l.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/c/4/a/6/c4a62a42ab467800/image_1f8gph9.png)

### Step 3: Advanced settings

Depending on your rule, choose one of these optional settings: *Exclude from lock rules*, *SEO and Meta Tag Options*, or *Hide content on locked page*. 
If none apply press **Save** to install the rule to your theme
* *
* *
![](https://storage.crisp.chat/users/helpdesk/website/-/c/4/a/6/c4a62a42ab467800/image_x8n95b.png)**
### Wait a second, B2B Lock is being installed to your theme!!
  
* After you save the rule, B2B Lock will usually take about 5-10 seconds to automatically update your theme. A toast will appear when the process is done.
  
* After that, you can click the "Check your store" button to see the results on your storefront. If it doesn't work as expected, please choose "Contact us" — we're happy and always ready to help.
**
![](https://storage.crisp.chat/users/helpdesk/website/-/c/4/a/6/c4a62a42ab467800/image_ocfz2u.png)
### Step 4: Storefront display

When customers come to restricted pages, the login form will be displayed.
![](https://storage.crisp.chat/users/helpdesk/website/c4a62a42ab467800/image_1e2aguk.png)
  
**