Hide / Lock Pages

B2B Lock doesn’t only work on products and collections – it can also hide or lock pages across your storefront.

When you use page-related targets in Step 1 – Lock content, you’re telling the app to protect:

  • Your entire website, or

  • Specific pages / URLs (CMS pages, blog posts, landing pages, etc.)

Then in Step 2 – Control access, you choose how visitors unlock them: via login, passcode, or secret link.


1. Entire website vs specific pages

Entire website

What it does

  • Puts your whole storefront behind a gate.

  • All pages (home, collections, products, CMS pages) are protected by the same rule.

Use when

  • You run a private / wholesale-only store.

  • You don’t want the general public to explore your catalog.

Typical setup

  • Step 1: Target → Entire website

  • Step 2: Condition → allow only tagged wholesale customers or logged-in customers

  • Step 3: Show a clear lock screen (login + “request access” link)

You can still use exclusions in Advanced settings to keep certain pages public (e.g. “Contact” or legal pages).


Specific pages (CMS / blog / landing pages)

What it does

  • Locks only selected pages: e.g. /wholesale, /partners, /docs, /resources, /campaign-2025.

  • Any other pages remain public unless covered by other rules.

Use when

  • You have wholesale info, partner resources, or VIP content that should not be public.

  • You want the store mostly open, but certain content areas gated.

Typical setup

  • Step 1: Target → Page / URL / Blog

  • Step 1: Select the page(s) you want to lock

  • Step 2: Condition → login / tags / passcode / secret link

  • Step 3: Customize message + CTA for that specific audience

This approach is more granular and works well in hybrid B2B + B2C setups.


2. Locking with login (customer accounts)

How it works

  • In Step 2, you choose conditions based on login state and/or customer tags:

    • “Customer is signed in”

    • “Customer is tagged with wholesale

If the visitor:

  • Meets the login/tag condition → page loads normally.

  • Doesn’t meet it → sees your lock message.

Use login when

  • You want a clean, account-based experience (customers log in and see their content).

  • You already manage approval and tagging via B2B apps or manual workflows.

UX tips

  • In Advanced settings, always add:

    • Login button

    • Create account / Request access link

  • Explain clearly who the page is for (e.g., “for approved wholesale customers only”).


3. Locking with passcode

How it works

  • In Step 2, choose condition: Passcode.

  • You set a passcode in the rule (e.g., PARTNER2025).

  • When visitors open the locked page/URL:

    • A passcode prompt is shown.

    • Correct passcode → access granted.

    • Wrong passcode → error message.

Use passcode when

  • You want invite-only access but don’t want to manage accounts/tags.

  • You’re running a private campaign or beta test.

  • You need a quick, low-friction way to gate content.

Advanced options

  • Case-sensitive or not.

  • Remember passcode for the session (so users aren’t constantly re-entering).

  • Custom error messages.


How it works

  • In Step 2, choose condition: Secret link.

  • The rule expects a special URL (often with a token parameter).

  • Only visitors arriving via that URL can see the page; everyone else is blocked.

Use secret link when

  • You want hidden content that:

    • Doesn’t appear in navigation.

    • Isn’t easily discoverable via search.

  • You run VIP / early access campaigns.

  • You want a “soft gate” where security is less strict than login/passcode, but still not public.

Behaviour

  • Visitors using the secret URL → page loads normally.

  • Visitors using a normal URL without token → see lock message or get redirected (based on Advanced settings).


Use this quick guide to pick the right method for locked pages:

Scenario
Best Method
Why

Private wholesale or partner pages, long-term

Login + tags

Strong control, tied to real customer accounts

One-off invite-only campaign or small partner group

Passcode

Easy to share, no account management

VIP early access, light gating, marketing-focused

Secret link

Frictionless for invited users, hidden from casual visitors

Full B2B / private store

Entire website + login/tags

The whole store behaves as a gated portal

In all cases, remember:

  • Login is best for ongoing relationships and tight segmentation.

  • Passcode is best for quick, manual gatekeeping.

  • Secret link is best for hidden but convenient access.

Combined with the targets (entire website vs specific pages), you can design anything from a fully private wholesale store to a few softly gated partner pages inside a public site.

Last updated

Was this helpful?