---
title: Secure access to pages
related:
  - https://docs.kentico.com/documentation/business-users/content-hub.md
  - https://docs.kentico.com/documentation/business-users/content-hub/content-items.md
  - https://docs.kentico.com/documentation/business-users/members.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** This page describes how to restrict access to pages on the live site. For restricting access to pages in the Xperience administration, see [Page permission management](https://docs.kentico.com/documentation/developers-and-admins/configuration/users/role-management/page-permission-management.md).

Pages in the content tree are accessible to all visitors by default. Use the **Membership access** section to restrict access on the live site. These settings require a site that already supports member [registration and authentication](https://docs.kentico.com/documentation/developers-and-admins/development/registration-and-authentication.md).

1. Open a website channel application.

2. Select a page in the content tree.

3. Go to **Properties** → **Membership access**.

   ![Page security tab](https://docs.kentico.com/docsassets/modules/secure-pages/SecurityTab.png "Page security tab")

4. Configure the page's security settings.
   - **Requires authentication** – select this option to require visitors to sign in before they can view the page.
   - **Membership roles** – this field appears after you select **Requires authentication**. Select one or more [member roles](https://docs.kentico.com/documentation/business-users/members.md#member-roles) to restrict access to those roles. If you leave the field empty, all authenticated members can view the page.

5. Select **Publish change**.
   - If securing a page with subpages, a dialog prompts you to decide whether the changed settings should apply to all subpages as well. Both the authentication requirement and the selected roles propagate to child pages.

The updated access restrictions take effect on the live site after you publish the page. Secured pages display a diamond icon  in the content tree.

> **Note:** When previewing pages in the Xperience administration, all secured content is visible regardless of member role assignments. This allows editors to review content without restriction.

> **Info:** **Access restriction inheritance**
>
> Newly created pages inherit access restrictions from their parent page.
>
> ---
>
> **Automated member role assignments**
>
> Developers typically set up automatic role creation and assignment during implementation. For one-off adjustments, use the [Members](https://docs.kentico.com/documentation/business-users/members.md#manage-roles) application to manage roles and [assign them to members](https://docs.kentico.com/documentation/business-users/members.md#assign-roles-to-members).
