
How to create a private or password-protected WordPress page
A private WordPress page and a password-protected page have different audiences. Private content relies on account permissions, while a password-protected page shares its content with people who know a common password. Decide who should have access and how much control you need before choosing either option. 1. Choose the access model Use Private for website accounts with the appropriate permissions, normally administrators and editors. Use password protection when sharing content through a common password is suitable. Customer areas, subscriptions or individual access rules may need a dedicated system with account-based permissions rather than one shared page password. 2. Open the page settings Open the content from Pages and display the Page panel in the editor. Find Status: the demonstration content is still a Draft. A draft is unpublished work, not an already published restricted page. Confirm that you are editing the intended item before changing who can access it. Figure 1. Demonstration draft page and its settings. 3. Locate the Private option Open Status & visibility and find Private. This choice concerns users with suitable permissions, not everyone who is logged in. Read any save or publication confirmation carefully. The tutorial screenshots show the controls without publishing a restricted demonstration page. Apply the setting deliberately when working on your own content. Figure 2. Status and visibility: the available page options. 4. Locate password protection Enable Password protected in the same panel to display the password field. When applying protection, choose a strong password and share it through an appropriate channel. Never reuse the site administrator’s password. A page password is shared knowledge; it does not identify or manage each individual reader. Figure 3. The empty password field: the demonstration content is not published. 5. Save and test as a visitor Save or publish after checking the intended access model. Open the page URL in a private browser window without an administrator session. Test private content with an unauthorised account too. For password protection, check the password prompt and confirm that entering the correct password reveals the intended content. Figure 4. A filtered list of demonstration pages. 6. Check files, navigation and caching Uploaded pictures and documents can remain accessible through their direct URLs. Protecting a page is not a complete confidential-file storage system. Check whether page titles remain in menus or archives, and verify the cache configuration. Access restrictions need to be tested in the actual website environment. Frequently asked questions Can any registered user read private pages? No. Access depends on roles and capabilities. Simply being logged in does not automatically grant permission to read private content. Can I revoke one person’s shared password access? Not individually. Changing the common password affects everyone who knew the previous one. Use account-based permissions when individual revocation is required.



