Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 956 Bytes

File metadata and controls

21 lines (13 loc) · 956 Bytes

Castlegate IT WP Password Protection

This plugin provides simple password protection for staging sites. You can find the settings page in Settings > Password Protection. When active, the plugin provides four modes:

  1. Disabled: Access to the site is not restricted.
  2. WordPress user account: Access to the site is restricted to logged in users.
  3. Password: Access to the site is restricted to users who enter a single, common password.
  4. Password or WordPress user account: Access to the site is restricted to logged in users or users who enter a single, common password.

When the third or fourth option is selected, users will need to re-enter the common password after 24 hours.

Exceptions

Exceptions are made for a few URLs and endpoints:

  • Cron requests (wp-cron.php)
  • REST API requests (^/wp-json/*)

License

Released under the MIT License. See LICENSE for details.