# 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.

NOTE: When a non-member tries to access locked content, a pop up message will appear letting them know they don't have access. They are then redirected to another page (which is customizable).

1. In the Shopify dashboard, on the left hand side menu, click on Themes

<figure><img src="/files/Ly0hCau8vOKwDPf5IAH6" alt=""><figcaption></figcaption></figure>

2. On the right hand side, click on the Customize button next to your theme.

<figure><img src="/files/Mim4TrSmK1IvxtDOyYxc" alt=""><figcaption></figcaption></figure>

3. From the drop down list at the top, select Pages.

<figure><img src="/files/NLBzVUoLJneycEF2KQsu" alt=""><figcaption></figcaption></figure>

4. Then select Default page.

<figure><img src="/files/nRSXgvOxsjSr1utrntZq" alt=""><figcaption></figcaption></figure>

5. In the left hand section under Template, click on Add section.

<figure><img src="/files/s7IpErsO849WJkZ0wfbj" alt=""><figcaption></figcaption></figure>

6. Click on Apps and then click on the Memberply Restricted Pages component.

<figure><img src="/files/L4jes08MNxRyAbMNiKjv" alt=""><figcaption></figcaption></figure>

7. Customize the Memberply Restricted Pages component to your needs.

<figure><img src="/files/MhoOCtf8xYUgDJ27o2yR" alt=""><figcaption></figcaption></figure>

8. Click Save in the top right corner.

<figure><img src="/files/9BYiHZTeHPlyljq0f2zq" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.memberply.com/how-to-create-gated-content-only-for-members/restrict-non-members-from-accessing-locked-content.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
