> 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/passcodes/restriction-to-pages.md).

# Restriction to Pages

You can lock pages of products, collections & any CMS pages with restriction.&#x20;

<mark style="color:blue;">**Step #1 - Passcode Title**</mark>

For the first step for all, give the passcode a title from this respective field.

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

<mark style="color:blue;">**Step #2 - Restrict type**</mark>

Select the **Restriction** button, and enter the text that you want to display for your customers.

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

<mark style="color:blue;">**Step #3 - Customer Segments**</mark>

Select the options, whether you want to apply the set restriction to all the logged-in users or select customer tags only.

<figure><img src="/files/4igRtrvfHKEEbh1huggs" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #4 - Lock Products**</mark>

Select the option on which you want to apply the set restriction will be **applied to all products** of your store.&#x20;

If you want to set the restriction for **specific products** only instead of all products, you can easily search for the products from this search bar and apply the passcode to it.

<figure><img src="/files/4yd2UgFO3ptzyAVzvAds" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #5 - Lock Collections**</mark>

Select the option on which you want to apply the set restriction will be **applied to all collections** of your store.&#x20;

If you want to set the restriction for **specific collections** only instead of all products, you can easily search for the collections from this search bar and apply the passcode to it.

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

<mark style="color:blue;">**Step #6 - Lock Pages**</mark>

Select the option on which you want to apply the set restriction will be **applied to all pages** of your store.&#x20;

If you want to set the restriction for **specific pages** only instead of all products, you can easily search for the pages from this search bar and apply the passcode to them.

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

<mark style="color:blue;">**Step #7 - Lock Countries**</mark>

Select the option on which you want to apply the set passcode will be **applied to all countries** of your store.&#x20;

If you want to set the passcode for **specific countries** only instead of all products, you can easily search for the pages from this search bar and apply the passcode to them.

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

<mark style="color:blue;">**Step #8 - Lock Website**</mark>

If you want to restrict the whole website, select the **whole website restricted** checkbox.

If you want to restrict specific websites, search them up from the search bar.

And, if you want to set the restriction for majority of website excluding a few websites, then you can search for the websites from the search bar and select the **is excluded** checkbox.&#x20;

With this selection, the set restriction will be applied to all the websites <mark style="color:red;">**except**</mark> the website URLs you have selected from the search bar.

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

<mark style="color:blue;">**Step #9 - Date Based Restriction**</mark>

<mark style="color:$primary;">**Restrict website by date range**</mark>

If you want to restrict website access for a particular time period, select the **Restrict Website by Date Range** checkbox.

After that, choose the **start date** and **end date** for which you want to apply the restriction.

The website will be restricted only within the specified date range and will automatically become accessible once the period ends.

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

<mark style="color:$primary;">**Restrict website on specific days**</mark>

To **restrict access on specific days**, select the **Repeat restrictions on specific days** checkbox and select days like Monday, Wednesday, or Sunday. Access will be limited only on the chosen days for flexible control.

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

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