For the complete documentation index, see llms.txt. This page is also available as Markdown.

Locks overview

What a lock is in Sami B2B Lock, Password Protect, and where to go next to build one.

A lock is the core building block of Sami B2B Lock, Password Protect. Every lock combines three things:

  1. Content to lock — what part of your storefront the lock protects (the whole site, specific products, a collection, a page, blog content, a custom URL, the cart page, or checkout).

  2. Access rules — the conditions a visitor must meet to get through (logged in, tagged, has a passcode, arrived via a secret link, and many more). When you add multiple conditions to an access key, the visitor must satisfy all of them.

  3. Lock behavior — what happens to the protected content and to blocked visitors (hide price and Add to cart, hide from menus and search engines, redirect, tag the customer, or set how long access is remembered).

The lock editor is two tabs: Lock setup, where you name the lock and choose its content type, and Unlock rules, where you add access rules and — right alongside them, in the same tab — configure the lock's blocked-visitor behavior. Fill in both tabs, then save. All of your locks live on the Manage locks list, where you can enable, disable, duplicate, preview, or delete them.

New to the app? Create your first lock walks through building one from scratch, and How locks work explains the underlying logic in more detail.

Content types you can lock

Each content type has its own guide with the full setup, including the options specific to that type. Some content types may require a paid plan.

Content type
What it protects
Guide

Whole Website

Your entire storefront, with an option to still allow the home page

Products and variants

All products, manually selected products, specific variants, or (from the create picker) by product tag or vendor

Collections

One or more specific collections

Pages

Specific storefront pages

Blogs and articles

An entire blog or specific articles within it

Specific URL

Any custom URL or path on your store

Cart page

The storefront cart page itself

Checkout

Checkout itself, using its own condition builder

The other two pieces of every lock

Once you've picked what to lock, every lock needs:

  • Access rules — the conditions that decide who gets through. See Access rules overview for the full catalogue and how multiple conditions are evaluated together.

  • Lock behavior — what a blocked visitor sees and what happens after someone passes. See Lock behavior overview.

Managing your locks

Once you have one or more locks, head to Manage locks to view, enable/disable, duplicate, preview, or delete them, and to use the Quick Setup templates if you're starting from scratch.

Last updated

Was this helpful?