Use Password Protection to give named users access to selected pages. Organize users into groups, then choose which groups may open each protected page.

1. Plan access and open Site Settings

For example, a school could have Parents, Students and Teachers groups. An account may belong to more than one group; a page can allow several groups. Decide these permissions before creating accounts.

Open Site Settings > Password Protection. The master password unlocks sensitive information stored in the project; it is separate from the usernames and passwords visitors use on the website. If this panel shows Unlock, unlock the project here before managing accounts or publishing their changes.

Password Protection requires PHP on your web host. Local preview is useful for designing the page, but authentication must be tested on a PHP-enabled server.

Password Protection in Site Settings, with controls for user accounts and groups.

2. Create user groups

Choose Edit User Groups and add a clearly named group for each audience. Keep groups tied to the access people need, rather than creating a separate group for every user.

Creating a named user group in Site Settings.

3. Add user accounts

Return to Password Protection and choose Edit User Accounts. Create an account for each person, enter their username and password, and keep its enabled status up to date. Use the account’s group controls to grant the intended access.

User account settings and group membership.

A user can belong to several groups. In this example, selecting Teachers grants that account access to pages whose allowed groups include Teachers. Review membership whenever a person’s role changes.

Selecting the groups an account belongs to.

4. Protect the page

Select a page and enable Protect With Password in the Page inspector. Open its Edit control and select the groups allowed to view it. Repeat this for every page that needs restricted access; linking to a page from a members’ menu does not set its permissions.

Page password protection and allowed user groups.

Select the allowed groups deliberately. Check the destination pages as well as the first landing page, so a user cannot follow a link into an area they are not authorized to view.

5. Design the login form

Sitely creates a User Login Page when you first configure password protection. Style this page to match the site, or add a User Login form to another page. Select the form to configure the destinations shown below.

Login form destinations for user groups and after logout.

Set a landing page for each group and review Other Access for users without a matching group destination. Choose a public page for Page Following Logout, such as the home page. Group membership still determines access to each destination.

6. Provide a way to log out

Add an accessible button with the Logout action to the protected area. In Site Settings > Password Protection, use Force User Logout to limit how long a login lasts. Publish changes to accounts, groups and protection settings so the server receives the updated configuration.

Button configured with the Logout click action.

Check both the Logout button and the automatic logout setting on the server. Do not use a successful local preview as evidence that login or logout works.

Show different content to different audiences

A public page can contain a login form for logged-out visitors and a different message for logged-in members. The example below shows the public view before login. This is separate from restricting access to the whole page.

Public page with a login form for signed-out visitors.

After an authorized customer logs in, the page can display a member message in place of the login form. Give each element the appropriate audience visibility condition.

The same page showing a message for signed-in customers.

Select the login form and set its audience visibility in Arrange to logged-out users. Set the member message to logged-in users or to the required group. Keep the alternative versions aligned, because each audience will see only its permitted content.

Audience visibility options for page elements.

Test the published PHP pages

Pages using password protection or audience visibility are generated as PHP. A static export or local preview cannot run the server-side checks, and may show alternative elements together, as illustrated below. Use a PHP-enabled test location to evaluate the real result.

Static preview showing alternative audience content together.

During editing, the visibility control helps you inspect the page as different audiences. It changes the canvas view, so it is useful for arranging alternatives; it does not sign you in or test the server.

On the server, try an allowed account, an account from another group, an incorrect password and a signed-out visitor opening a protected URL directly. Then log out and revisit it. Check every protected area and republish when permissions change.

Visibility icon

Canvas visibility menu for inspecting the page as different audiences.

Video tutorial

Play Video

Clicking sends your details to Google, which sets cookies and uses your data to personalize ads

Reuse the login controls’ styles

Select the username field, password field or sign-in button inside Login Form. In Style, apply a compatible Text Input preset to either field or a Button preset to the button. Save Preset stores the selected control’s appearance. The fields and button keep their login behavior.

Please report any shortcoming in this documentation and we’ll fix it as soon as possible!

Updated for Sitely 8

Powerful and refreshingly simple, at home on Mac, finding new freedom on iPad.

Product

Documentation

Pricing

What’s new

Download: iPad | Mac

© 2026 Crinon. All rights reserved.

Made with ♥ for iPad and Mac

Close and reject optional cookies

Cookie Bite  Cookie choices

We and our partners use optional cookies for extra features, saved preferences, visit counts and personalised ads. To change your choices later, use Cookie settings in the footer.

Reject all
Accept all

Closing keeps optional cookies off.  Privacy policy