Skip to content

castlegateit/cgit-wp-password-protection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Password protection for staging sites

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages