Option 1: Password-Protect a Page
In the WordPress dashboard, click Pages.
Hover over the page you want to restrict.
Click Quick Edit.
In the Quick Edit menu, you can update basic settings like the title, slug, and publish date.
To add a password, enter it in the Password field.
Click Update to save changes.
A lock icon will appear next to the page name, indicating that it is now password-protected.
Option 2: Restrict by Role or User
In the dashboard, click Pages.
Hover over the page you want to update and click Edit.
You will be taken to the Page Editor.
Scroll down to the Permissions section, in the right-hand page setting menu.
To restrict who can edit the page:
Under Grant Users, search for and select the specific user(s) you want to give editing access to.
To restrict who can view the page:
Under Grant Roles, search for and select the user role(s) allowed to view the page.
Click Publish (or Update) to apply the new permissions.
These tools ensure that sensitive or internal content on your site is only accessible to the right people.
