Lockaire

Description

Lockaire is a WordPress password protection plugin that lets you create a custom password page instead of relying on the default WordPress password form.

Want to password protect a WordPress page or post while keeping control over its appearance? Lockaire lets you create a dedicated password page, add your password form using a shortcode, and configure which content requires a password.

Whether you want to protect private content, restrict access to a specific page, or create a branded password entry experience, Lockaire gives you a simple way to manage password-protected content from your WordPress dashboard.

Unlike a plain default password form, your custom password page can use your own page layout, text, images, and design.

Key Features

  • Custom Password Page: Create your own password page instead of relying on the default WordPress password form.
  • Password Protect Pages: Configure a specific WordPress page to require a password.
  • Password Protect Posts: Configure a specific WordPress post to require a password.
  • Custom Password Form Shortcode: Add the [lkar_password_protector_form] shortcode to your custom password page.
  • Automatic Redirects: Send visitors to your custom password page when they access protected content.
  • Return to Original Content: Redirect visitors back to the requested page or post after successful password verification.
  • AJAX Password Validation: Validate password submissions without a full page reload.
  • Password Visibility Toggle: Let users show or hide the password they enter.
  • Dashboard Settings: Configure your password page, protected content, and password from the WordPress admin area.
  • WordPress Nonce Checks: Use WordPress nonce verification for the plugin’s AJAX requests.

Why Choose Lockaire?

WordPress includes a built-in password protection feature, but its default password form offers limited control over the surrounding page design.

Lockaire gives you a different approach: create a dedicated page that matches your website’s branding and place the password form wherever you want within that page’s content.

Use Lockaire when you want to:

  • Create a branded password entry page.
  • Password protect selected WordPress content.
  • Design a more personalized password form experience.
  • Redirect visitors to protected content after they enter the correct password.
  • Keep your password page consistent with the rest of your website.

How It Works

  1. Install and activate Lockaire.
  2. Create a WordPress page for your custom password form.
  3. Add [lkar_password_protector_form] to that page.
  4. Open the Lockaire settings in your WordPress dashboard.
  5. Select your password page, choose the page or post you want to protect, and configure the password.
  6. Save your settings.
  7. Visitors attempting to access the protected content are redirected to your password page.
  8. After entering the correct password, visitors are redirected back to the requested content.

Screenshots

Installation

  1. Upload the lockaire folder to the /wp-content/plugins/ directory, or install Lockaire through the WordPress Plugins screen if it is available in the plugin directory.
  2. Activate Lockaire through the Plugins menu in WordPress.
  3. Create a new WordPress page for your password form.
  4. Add the [lkar_password_protector_form] shortcode to the page content.
  5. Open the Lockaire settings in your WordPress dashboard.
  6. Select the custom password page.
  7. Choose the page or post you want to protect and configure your password.
  8. Save your settings.
  9. Test the protected content in a private or incognito browser window.

FAQ

What is Lockaire?

Lockaire is a WordPress password protection plugin that lets you create a custom password page and use it to control access to a selected page or post.

How do I create a custom password page?

Create a new WordPress page and add the [lkar_password_protector_form] shortcode. You can design the surrounding page with your preferred content and layout.

How do I password protect a WordPress page?

Create your password page, open the Lockaire settings, select the password page, choose the page you want to protect, set the password, and save your settings.

Can I password protect a WordPress post?

Yes. Lockaire provides a setting for selecting a post to protect with your configured password.

Can I customize the password page design?

Yes. You can customize the WordPress page containing the shortcode using your normal page content and design tools. The shortcode supplies the password form.

Does Lockaire use the default WordPress password form?

Lockaire redirects visitors to your configured custom password page, where you place its password form shortcode, instead of relying on the default password form for the protected-content flow.

Does the password form reload the page when submitted?

Lockaire uses AJAX for password validation, allowing the form to submit without a full page reload.

What happens after a visitor enters the correct password?

After successful password verification, Lockaire returns the visitor to the protected page or post they originally requested.

What happens if the password is incorrect?

Lockaire returns an error response indicating that the password is incorrect, allowing the visitor to try again.

Can I use Lockaire with a page builder?

You can use the shortcode in a page editor or page builder that supports WordPress shortcodes. The surrounding page design is controlled by your page editor.

Which WordPress versions does Lockaire support?

The readme currently specifies WordPress 6.0 or later and PHP 7.4 or later. Check the tested version information above for the latest version against which compatibility has been verified.

Reviews

Read all 1 review

Contributors & Developers

“Lockaire” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Lockaire” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.1

  • Fixed WordPress Coding Standards warnings.
  • Improved input handling and redirect validation.
  • Added asset versioning for browser cache management.