Control access to locked content
Explore the rules that B2B Lock makes available to you!

These are all the conditions for setting up the rules that B2B Lock supports:
🟢 Everyone - No restrictions
This rule applies to everyone who has access to the content. When this rule is selected, it will take the highest priority.
🧑 Signed-in customers - Must be logged in
This rule requires all customers to log in with a customer account. Once they're logged in, they'll be granted access to the locked resource. (When inverted: If the customer is not signed in)
🏷️ Tagged customers – Must have specific tags
This rule is for the customer with specific tags. (When inverted: If the customer is not tagged with)
🔑 Passcode - Must enter the correct passcode
This rule prompts the visitor to enter a passcode, which must match the passcode you configure. If they don't enter a matching passcode, they'll be given the same prompt again.
🔗 Secret link – Must access via a special link
This rule generates a "secret" URL for the locked resource, containing a secret code. If the visitor arrives via that link, they'll be granted access. If they use any other link, they will be denied access.
✉️ Email subscribers – Must be subscribed to your emails
This rule requires all customers to subscribe to their email address to access the restricted content.
🔞 Age verified – Must confirm age
This rule is suitable for stores that contain contents for 18+ customers. After verifying, they'll be granted access to the locked resource.
🆔 Specific customers – Must match exact email
This rule for only selected customer accounts can view locked pages while visitors and non-selected accounts can't. (When inverted: If it is not a specific customer)
🌍 Specific market – Only for selected Shopify markets
This rule applies for all customers only in selected markets while visitors in non-selected markets are restricted.
⏰ After date/time → Visible from
This condition checks the current time, and grants access if it's after the time that you specify.
⏰ Before date/time → Visible until
This condition checks the current time, and grants access if it's before the time that you specify.
🧩 Custom code (Liquid) – For advanced setup
This condition allows you to define your own logic using Liquid code. It gives you flexibility to create advanced rules based on customer data, cart contents, tags, time, or any other custom input.
📡 IP address – Only for specific IP addresses
This condition checks whether the customer's IP address matches one of the specified IPs. If it does, access is granted or specific content is shown. Useful for internal testing, regional control, or restricted access.
📍 Location – Only for selected countries/regions
This condition detects the customer's geographic location (usually based on IP geolocation) and compares it against a list of allowed or targeted locations such as countries, states, or cities. Access or content display is adjusted accordingly.
✉️ Email domain - Must use an allowed email domain
This condition detects the customer's email domain. Access or content display is adjusted accordingly.
Last updated
Was this helpful?