WordPress can require a shared password before displaying a page’s main content. This is useful for limited-access material, although it is not a substitute for individual user permissions or protecting downloadable files.

Set page visibility

  1. Sign in with permission to edit the page.
  2. Open Pages and edit the intended page, or select Add New Page.
  3. In the editor’s page settings, open the visibility or status control.
  4. Choose Password protected and enter a strong password.
  5. Publish the new page or update the existing one.

In the Classic Editor, use Publish > Visibility > Edit, select Password protected, enter the password and confirm with OK before publishing or updating.

Test as a visitor

Open the page in a fresh private browser session. Confirm that the password prompt appears, an incorrect password is rejected and the correct password reveals the content.

Check any page cache or CDN configuration so that protected content is not served from an inappropriate cached copy.

For confidential documents or access assigned to named people, use a suitable authenticated-access system and verify file access separately.