How to add password to specific pages or sections in Shopify

Topic summary

A user seeks to restrict access to specific pages or product sections on their Shopify store for subscription-based customers only.

Proposed Solutions:

  • Method 1: Custom password protection using Liquid code templates
  • Method 2: JavaScript with hidden content (noted as basic security)
  • Method 3: Third-party Shopify apps like Locksmith or Easylockdown

Detailed Implementation Approach:

  1. Enable customer accounts in Shopify settings
  2. Tag special subscribers with identifiers (e.g., ‘subscriber’)
  3. Create dedicated pages or product collections
  4. Apply custom page templates that check customer tags

A code snippet demonstrates conditional content display using Liquid: the page content appears only if the logged-in customer has the ‘subscriber’ tag, otherwise showing an access-denied message.

The discussion remains open with no confirmation of which solution the original poster will implement.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

Hi guys, so I have my website (https://primeindoors.com/) but wanted to ask how can I like add the login password page to specific pages or sections within my website.

For example I have a specific set of subscriptions based customers, and I wanted them to access a special but different set of products on my website. But cant figure it out how to get this done.

Hello Harrygoat, to add password to specific pages or section on your Shopify, here are 3 methods you can consider using

  • Custom Password Protection Using Liquid
  • JavaScript + Hidden Content (Basic Security Only)
  • Use a Shopify App ( locksmith or Easylockdown

Hi,

Hope this will help

  • Enable Customer Accounts
  • Tag your special subscribers
  • Create your special page or product
  • Lock that page using customer tags by using special page template

Example of special page template code

{% if customer and customer.tags contains 'subscriber' %}
  
  {{ page.content }}
{% else %}
  

This page is for subscribers only. Please log in.

{% endif %}