> For the complete documentation index, see [llms.txt](https://help.memberply.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.memberply.com/creating-membership-benefits/locked-content-access/restrict-non-members-from-accessing-locked-content.md).

# Restrict non-members from accessing locked content

If you have locked content that you only want members to access, please go through the following steps to add the Memberply Restrict Pages component to your store theme. This will handle checking if a member has access or not.

{% hint style="info" %}
When a non-member tries to access locked content, a popup message lets them know they do not have access. They are then redirected to another page, which you can customize.
{% endhint %}

1. In the Shopify dashboard, on the left sidebar, open **Online Store** (then **Themes** if your admin shows it as a submenu).
2. On the right side, click **Edit theme** next to your theme.

<figure><img src="https://2037526248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVJXUszoUtB7SAceDihaK%2Fuploads%2Fgit-blob-6ff644231be383be6d39e78c76c5536dc766bdd4%2Fshopify-themes.png?alt=media" alt="Shopify Online Store screen with Edit theme on the current theme"><figcaption><p>Shopify Online Store theme selection.</p></figcaption></figure>

3. From the dropdown list at the top, select **Pages**.

<figure><img src="https://2037526248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVJXUszoUtB7SAceDihaK%2Fuploads%2Fgit-blob-3464d34f11340006bd4eb260e3ee5f067ef7f00a%2Fshopify-template-menu.png?alt=media" alt="Shopify theme template selector"><figcaption></figcaption></figure>

4. Then select **Default page**.

<figure><img src="https://2037526248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVJXUszoUtB7SAceDihaK%2Fuploads%2Fgit-blob-70fcc31131a2ff46ac65537950caea6e3e41e633%2Fshopify-page-template.png?alt=media" alt="Select Default page in the theme editor"><figcaption></figcaption></figure>

5. In the left section under **Template**, click **Add section**.

<figure><img src="https://2037526248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVJXUszoUtB7SAceDihaK%2Fuploads%2Fgit-blob-e153288294864bb0e391a1de8cbdc19d9c385920%2Fshopify-page-blocks.png?alt=media" alt="Default page template with Restricted Pages and Add section"><figcaption></figcaption></figure>

6. Click **Apps** and then click **Memberply Restricted Pages**.

<figure><img src="https://2037526248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVJXUszoUtB7SAceDihaK%2Fuploads%2Fgit-blob-292e109e1793df8479a3a527ecfb55e5536ed5ab%2Fshopify-restricted-pages-picker.png?alt=media" alt="Restricted Pages by Memberply in the Apps section picker"><figcaption></figcaption></figure>

7. Customize **Memberply Restricted Pages** to your needs.

<figure><img src="https://2037526248-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVJXUszoUtB7SAceDihaK%2Fuploads%2Fgit-blob-f74cfda0681d377c407cadcb6e9235d2957b2aec%2Fshopify-restricted-pages-settings.png?alt=media" alt="Restricted Pages message and redirect settings"><figcaption></figcaption></figure>

8. Click **Save** in the top right corner.

## Access-check limitations

The theme component checks access in the visitor’s browser. It hides the page while checking, then reveals it for eligible visitors or displays the configured message and redirects visitors without access. The check is skipped in the theme editor, so test the actual storefront outside the editor.

This is not server-side content protection. The page HTML is still delivered to the browser, and direct file or video URLs are not protected by the page restriction. JavaScript must run and the component must be installed on the template used by the selected page. If the access request fails, the current component reveals the page. Do not rely on this feature alone for confidential information or secure downloads.

If your selected pages use different templates, add the component to each applicable template. Test signed-out visitors, signed-in non-members, eligible members and members in tiers without access. Confirm the redirect destination remains publicly accessible and does not create a redirect loop.
