> For the complete documentation index, see [llms.txt](https://magecomp.gitbook.io/shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magecomp.gitbook.io/shopify/apps/shoplock-login-required/locks/secret-link-lock.md).

# Secret Link Lock

The **Secret Link Lock** feature lets you grant access to restricted content using a unique URL instead of a passcode. Customers who open the secret link can access the protected content directly, while anyone visiting the page without the link will only see your custom restriction message.

**Example:** Create a secret link for a VIP product launch and email it to selected customers. Only customers who open the shared link can view the product.

#### Configuration

**Secret Link Code**

A unique code is generated automatically and appended to your store URL to create the secret link.

**Example:** [**https://your-store.myshopify.com?ls=IQZ2KjitSE2hvqbQSaxvy**](https://your-store.myshopify.com?ls=IQZ2KjitSE2hvqbQSaxvy)

Share this URL with customers via email, SMS, or any other channel to grant access.

**Restriction Message**

Enter the message displayed to visitors who try to access the restricted content without the secret link.

**Example:** *"This page is available through an exclusive invitation only."*

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FQz9Cs7dYPzM3RvFFC2ez%2Fimage.png?alt=media&amp;token=1da51efe-32d2-4f4e-8a46-f59e866645c1" alt=""><figcaption></figcaption></figure>

**Who Can Access Without Secret Link?**

You can allow specific customers to bypass the restriction without using the secret link by enabling one or more of the following options:

* **Logged-in Users** – Allow all logged-in customers.
* **Customer Tags** – Allow customers with selected Shopify tags.
* **Specific Customers** – Allow selected customer accounts.
* **Customer Order Count** – Allow customers based on their total number of orders.
* **Customer Money Spent** – Allow customers based on their lifetime spending (minimum, maximum, or exact amount).
* **IP Address** – Allow visitors accessing from specified IP addresses.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FthorIif4gDAnisldhbcz%2Fimage.png?alt=media&amp;token=7ff108f8-6b67-4c57-8e8b-0ccbe1859416" alt=""><figcaption></figcaption></figure>

**Lock Products, Collections, Pages, Blogs & Articles**

Select the resources you want to protect with the secret link. Enable **Is Excluded** to exclude selected resources from the restriction.

**Example:** Lock an entire collection but exclude one product so it remains publicly accessible.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2Fy3HwoEl9fNIKrU0zkHKj%2Fimage.png?alt=media&amp;token=08ac86cf-94b0-4613-b883-0f0a60fa9b08" alt=""><figcaption></figcaption></figure>

**Lock Countries**

Restrict access for customers from selected countries.

**Example:** Allow access only to customers in the United States while restricting visitors from other countries.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2F5U56MNZtXzNG0dgTRmqG%2Fimage.png?alt=media&amp;token=ce06de61-9e91-4fc8-8a8c-0ef400bb6c0e" alt=""><figcaption></figcaption></figure>

**Lock Website**

Enable **Whole Website Restricted** to protect your entire storefront with the secret link.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FY8W7S6YurZ1MATVzUtgf%2Fimage.png?alt=media&amp;token=75fd03c9-e690-4070-b749-5e77ce66aa6c" alt=""><figcaption></figcaption></figure>

**Date-Based Restriction**

Schedule when the secret link restriction is active by setting a date range. You can also repeat the restriction on specific days.

**Example:** Restrict access from **1st–7th August**, or make it active **every weekend** for exclusive promotions.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FEll57wXeNFNjHO174fD2%2Fimage.png?alt=media&amp;token=f526e425-626b-4de6-856e-1b4adbcecf69" alt=""><figcaption></figcaption></figure>
