aprivette/bedrock-auth
Composer 安装命令:
composer require aprivette/bedrock-auth
包简介
Environment-specific basic auth for the Bedrock WordPress framework.
关键字:
README 文档
README
A WordPress plugin designed to be an addon to the Bedrock WordPress framework.
It adds environment-specific basic authentication to WordPress sites. There are a few use cases for this. For example, if you were to set up a staging site and only wanted to protect only this setup while not affecting version control, then this package could be of use. Alternatively, you can exclusively protect wp-login.php to protect against brute force attacks.
Setup
- Add the package to your bedrock installation with
composer require aprivette/bedrock-auth. - Activate the plugin in WordPress.
- Add the
BASIC_AUTH_USERandBASIC_AUTH_PASSvariables to your .env file. - Choose an authentication level by setting the
BASIC_AUTH_LEVELvariable to either site or login. Choosing site will require auth for the entire site while login will exclusively protect wp-login.php. - Navigate to the site and it should require you to login.
统计信息
- 总下载量: 821
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-07-07