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

How to create a Protected Page

Restrict storefront URLs by customer segment, country or password.

Use Protected Pages to restrict specific storefront URLs.

This is the right choice for member-only/wholesale landing pages, hidden URLs, VIP access pages, and time-limited campaigns combined with secret product tagging.

When to use Protected Pages

Choose this tag type when the restriction is tied to a page or URL, not to a product or collection, unless you want an additional layer of password protection.

Protected Pages can either:

  • show a page only to a selected audience

  • hide a page from a selected audience

  • gate a page behind a password

Use cases:

  • members-only landing pages

  • hidden collection links

  • campaign pages

  • password-gated access pages

Before you start

Decide these settings first:

  • the exact URLs you want to protect

  • who should qualify

  • where blocked visitors should go

  • whether you also want a password

  • whether the rule should start or end automatically

If the page links to a restricted product or collection, plan that rule too.

Protected Pages controls access to a specific URL.

It does not hide the product URLs within this URL on its own. This is where secret product tagging may be more suitable.

Set up a Protected Pages tag

1

Open Tag Library

In Shopify admin, go to AppsRoadmap DevTag Library.

2

Create a new tag

Click Create a New Tag.

Tag Library screen with Create a New Tag button
3

Choose Protected Pages

In the Select tag type modal, choose Protected Pages.

Select tag type modal showing Protected Pages
4

Add the URLs you want to protect

On the Protected Pages screen:

  • enter a clear Tag name

  • paste each URL under URLs

  • add one URL per line when possible

  • add multiple URLs if the same rule should apply to more than one page

  • use store-relative paths such as /pages/loyalty

  • keep Status in Draft while you set up the tag

Protected Pages settings showing Tag name, URLs, redirect field, and Customer Eligibility
5

Set the redirect for blocked visitors

Choose a destination in Redirect ineligible customers to:.

Use homepage for a broad fallback, or enter a path like /collections/all.

6

Choose who can access the URLs

In Customer Eligibility:

  • use The above pages are: to choose whether the selected audience should see the URLs

  • use only for to define who qualifies

  • add any required extra values, such as Shopify customer tags

Protected Pages example with URLs filled in and customer eligibility configured

The available audience options match the ones used in Secret Products:

  • all customers

  • logged in customers

  • logged in customers tagged with

  • logged in customers with order history

  • customers from specific countries

  • members

  • non-members

7

Add password protection if needed

In Password Protection, enable Require password to access the above pages if you want a password prompt.

Then set:

  • Lock Screen Title

  • Lock Screen Caption

  • Lock Screen Password

  • Lock Screen Background Color

  • Lock Screen Background Image

Password Protection section showing lock screen fields

This is usually paired with Visible for all customers.

You can also combine it with logged-in or member-only access if needed.

Anyone with the password can access the URL, so share it carefully.

The lock screen uses your storefront theme styling, then applies the colours and image you set here.

8

Add a schedule if needed

In Active Dates:

  • set a Start date and Start time

  • enable Set end date if access should stop automatically

  • choose what happens after the schedule ends in When inactive, the selected pages are:

Scheduling only controls the protection rule.

It does not publish or unpublish the Shopify page for you.

Active Dates section showing end date and the When inactive dropdown
9

Save and activate

Click Save.

Switch the tag to Active after testing passes.

URL tips

Use the same storefront path the customer will visit.

Examples:

  • /pages/vip-access

  • /collections/private-drop

  • /products/member-bundle

Add one path per line when possible.

Common use cases

Hide a page from wholesale customers

VIP early access, then public access

Members-only page that stays private

Short campaign page

Password-gated campaign landing page

Password-gated access to a product or collection

Test before launch

Check all of these before you activate the tag:

  • the exact protected URL redirects when the customer should be blocked

  • the allowed customer can open the URL

  • the redirect destination is correct

  • the password works, if enabled

  • the schedule and inactive behavior match the outcome you want

Fix common issues

I can still access the page when I should be blocked

Check these first:

  • the tag Status is Active

  • the exact URL path in URLs is correct

  • the test customer matches the eligibility rule

  • the protection rule is within its active schedule

Customers are being redirected unexpectedly

Review Redirect ineligible customers to:.

Anyone who does not qualify, or is outside the active schedule, will be sent there.

The page should be public now, but it is still restricted

Check When inactive, the selected pages are:.

If you want the page to open after the schedule ends, this must be Visible.

The password page works, but the product is still visible without the password

Protected Pages only controls the page URL.

If you are running a password-gated product or collection campaign, add a matching Secret Product rule too.

Last updated