Part of the guide: Maintenance mode and password protection
Password Protect rules let you password protect WordPress pages, posts and whole sections of your site, each with its own password. Lock one page for a client, a post type for members, the shop for a private sale, or any URL that matches a pattern, while the rest of the site stays public. This is an AdminEase Pro feature.
What this feature does
Site Lock (in the free plugin) puts one password in front of the whole site. Password Protect rules are the fine-grained version: you add rules, and each rule locks one part of the site behind its own password. Visitors who open a locked page see a password form with the rule’s own title and message. Once they enter the right password, they can read that part of the site for as long as the remember time allows.
A rule can lock any of these:
- A single post or page: search for it by title.
- A post type: every entry of that type and its archive.
- A taxonomy archive: every term of a taxonomy, or one term by its slug.
- Search results, the blog home, author archives or date archives.
- A WooCommerce page: Shop, Cart, Checkout or My account (WooCommerce must be active).
- A URL pattern: a path where
*matches anything, for example/members/*.
Rules are checked from top to bottom, and the first rule that matches the page shows its password form. Put narrow rules (one page) above broad ones (a whole post type) when they overlap.
How to password protect WordPress pages with a rule
- Open AdminEase › Security › Password Protect. Click AdminEase in the WordPress admin menu, open the Security tab and choose Password Protect in the sidebar, next to Site Lock.
- Click Add a rule. A new rule opens with its fields.
- Choose what it locks. Pick the type in Lock, then fill in Which one: the post or page, the post type, the taxonomy (and optionally a term slug), the WooCommerce page, or the URL pattern.
- Set the password. Every rule needs its own password. A saved rule shows Password set; leave the field empty to keep the current password.
- Optionally, write the form title and message. These show on the password page for this rule. Leave them empty for “Password protected” and “This content is password protected. Enter the password to continue.”
- Click Save rules. The rule now shows as one short line: what it locks, whether it has a password, and its title. Click Edit on the line to open its fields again.
Each post and page also has a Password (AdminEase) box in the editor sidebar. Enter a password there and save the post, and AdminEase adds a single post rule for it in Security › Password Protect.
Settings reference
| Field | What it does | Default |
|---|---|---|
| Lock | What the rule covers: a single post or page, a post type, a taxonomy archive, search results, blog home, author archives, date archives, a WooCommerce page or a URL pattern. | Required |
| Which one | The post, post type, taxonomy, WooCommerce page or path the rule applies to. Taxonomy rules also take a term slug; leave it empty for every term. | Required (not for search, blog home, author or date) |
| Password | The password visitors enter. Stored as a hash. | Required |
| Form title (optional) | Heading of the password page for this rule. | Password protected |
| Form message (optional) | Text above the password field. | This content is password protected. Enter the password to continue. |
| Use own bypass roles and IP addresses instead of the Site Lock ones | Gives the rule its own skip lists. Off: the rule uses the Site Lock role and IP lists, but only while Site Lock is on. | Off |
| Roles that skip this rule | Tag picker. Logged-in users with one of these roles never see the form. | None |
| IP addresses that skip this rule (one per line) | Visitors from these addresses never see the form. | None |
What happens behind the scenes
On every front-end request AdminEase checks the rules in order on template_redirect. A matching page is never cached, so a cache cannot hand an unlocked copy to the next visitor. A user who can edit the post, a bypass role or an allowed IP passes straight through.
A correct password sets a signed cookie for that rule only, so unlocking one rule does not unlock another. The cookie lasts as long as the Site Lock Remember Device time (one day by default). Changing a rule’s password locks everyone out of that rule again.
After 5 wrong passwords from one IP for one rule, that IP waits 15 minutes before it can try again. Posts locked by a single post or post type rule also hide their content and excerpt in listings, such as a blog index or a “load more” grid, until the visitor unlocks them. You can keep up to 50 rules.
Common workflows
- A client preview page: lock a single page and send the client its password. The rest of the site stays public.
- A members area without accounts: lock a URL pattern such as
/members/*with one shared password. - A private sale: lock the WooCommerce Shop page while you prepare it, turn on the rule’s own bypass lists and let the Shop Manager role skip it.
Troubleshooting
The rule does not lock the page
Check that you are testing in a private window: an administrator, or anyone who can edit the post, is let through. Then check the order of your rules: a rule higher in the list may match first and show its own form instead.
My changes to a rule were not saved
Rules are saved with Save rules (or the main Save settings button). On AdminEase Pro 2.4.0 and older, title and message changes could be lost; update to 2.4.1 or later.
A URL pattern does not match
Enter a path, not a full address with a query string: /members/*, not https://example.com/members/?a=1. A pattern needs at least one real path segment, and can hold up to 5 * wildcards.
I am asked for the password again every day
Visitors stay unlocked for the Site Lock Remember Device time. Raise it under Security › Site Lock.

