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

Whole website

Lock your entire storefront behind access rules, with an option to still allow the home page.

The Whole Website content type locks every page of your storefront behind the access rules you set, with one exception you control: whether the home page stays open. This is the right choice when you're building a store that should be invite-only, wholesale-only, or gated behind a single login screen across the board.

Create the lock

  1. Open Locks in the app's navigation.

  2. Click Create lock.

  3. Give the lock a clear, descriptive name — you'll see this name in the Locks list, so make it something you'll recognize later (for example, "Whole store login required").

Choose Whole Website as the content to lock

  1. On the Lock setup tab, in the content picker, select Whole Website.

The content picker with Whole Website selected as the content type to lock.
Select Whole Website in the content picker to protect your entire storefront.
  1. Optionally tick Exclude url and list any paths that should stay public even though the rest of the site is locked — a contact page or a landing page you're running ads to, for example.

Exclude url is specific to the Whole Website content type. It's the only content type with a URL-level carve-out, which is what makes "lock everything except a few pages" possible in a single lock.

  1. Click the Unlock rules tab to continue.

Add an access rule

  1. Add at least one rule that decides who gets through. For a whole-site lock, Logged-in customers or Passcode are common starting points — for example, requiring every visitor to sign in with a customer account before browsing anything.

  2. Configure the rule's specific settings (see Access rules overview for the full catalogue of available rules).

  3. If you need more than one condition to be true at once, add every required rule to the access key. All configured conditions must be satisfied. See Combining rules for details.

Choose a lock behavior

On the same Unlock rules tab, the right-hand sidebar has a Blocked visitor behavior panel. For a Whole Website lock, that panel has a single field:

  1. Turn on Allow access to the home page if you want visitors to still be able to browse your storefront's home page without meeting any access rule — useful if you want the home page to work as a public landing page while everything else stays locked. Leave it off to lock the home page along with the rest of the site.

The Allow access to the home page toggle for a Whole Website lock.
Turn on Allow access to the home page to keep your home page public while locking the rest of the site.
  1. Decide what else blocked visitors see and what happens once they pass — for a whole-site lock this is usually a full lock screen rather than a hidden price or button. Review Lock behavior overview for the available options, such as redirecting visitors after they gain access or tagging their customer account once verified.

Save

  1. Click Save. Once the app embed is enabled in your theme, the lock takes effect on your storefront immediately.

Last updated

Was this helpful?