B2B Lock | How can I protect pages by locking them with a passcode?
Set up your rule by using a condition requiring passcode
**
Step 1: Target settings
- Choose Entire website to restrict access
Step 2: Control access
- Choose the key is If the customer gives the passcode
- Enter the passcodes and choose whether you want the passcodes to be case-sensitive or not
- Use the Extra setting to customize how the passcode behaves for your locked pages.
- Scroll down to customize your Message on Passcode Page
- Click "Custom now" to customize the style of the passform and enable Passcode request so customers can send you a passcode request.
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
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.
**
Step 4: Storefront display
- When customers come to restricted pages, the passcode form will be displayed.
- When clicking on Request Passcode, a popup will appear allowing the user to enter basic information to request the store owner to send them the passcode.
Updated on: 09/05/2025
Thank you!