Linux 软件免费装
Banner图

Easy Basic Authentication – Add basic auth to site or admin area

开发者 matteoenna
ashkanahmadi
更新时间 2026年9月30日 00:18
捐献地址: 去捐款
PHP版本: 7.2.5 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security login authentication access control WordPress security

下载

3.4 4.1.0 4.2.0 1.5.3 1.8.1 2.7 3.1 3.7.0 3.8.0 3.9.0 3.9.1 4.0.0 1.3.1 1.6 1.2 1.3 2.1 2.8 1.3.2 1.3.3 1.3.5 1.4.1 1.5 1.5.1 1.6.1 1.6.2 1.7.1 1.8 1.9 1.6.3 2.2 3.0 1.9.1 2 1.4 1.7 2.5 2.5.2 2.6 1.5.2 3.4.1 2.4 2.5.1 3.2 3.3 3.5.0 3.6.0 3.6.1 1.1 1.6.4 1.3.4

详情介绍:

The Easy Basic Authentication plugin provides a simple method to add basic authentication to your WordPress site. You can enable basic authentication for the entire site or only for the admin area by setting a custom username and password. Secure your site by restricting access only to authorized users. Try it on a free mock site: click here Key Features Protect your WordPress site with basic authentication quickly and reliably. Easy Basic Authentication gives you control to ensure that only authorized users can access your online resources. Maintain your site's security and prevent unwanted access today with Easy Basic Authentication. Installation
  1. Upload the Easy Basic Authentication plugin to your WordPress site.
  2. Activate the plugin.
  3. Configure the basic authentication settings from the WordPress admin panel.
Usage Letting a crawler in with a token Go to the plugin settings, tick Generate a token when saving next to Access token for crawlers, and save. The token appears in the field; copy it and give it to the service that needs to reach the site. That service must send it as a header, one of these two: X-Basic-Auth-Token: your-token-here Authorization: Bearer your-token-here A request carrying the right token is served normally. The admin area and the login page stay behind the username and password, so the token cannot be used to reach the dashboard. A wrong token is refused like wrong credentials, and it is recorded among the failed attempts. The token is a password: anyone holding it can read the whole site. Send it over HTTPS, and tick Delete the token and close this door when it is no longer needed. Tick Replace this token with a new one when saving to rotate it; the old one stops working immediately. The basic_auth_token_access_granted action fires whenever a request comes in on the token, if you want to log or count those separately. Troubleshooting: Resetting Basic Authentication If you're having trouble logging in due to the basic authentication, you can reset it and regain access by following these steps: 1 Connect to your website via FTP. 2 Navigate to the plugin directory: wp-content/plugins/easy-basic-authentication/class/ 3 Locate the file: easy-basic-authentication-class.php 4 Find the following line: add_action( 'init', array($this,'basic_auth_admin') ); 5 Comment out that line by adding a # at the beginning: #add_action( 'init', array($this,'basic_auth_admin') ); 6 Save the file and re-upload it to your server. This will disable the basic authentication temporarily, allowing you to log in. Once logged in, you can adjust the plugin settings as needed. If you need further assistance, feel free to reach out. GitHub Repository You can find the source code and contribute to the project on GitHub: Easy Basic Authentication on GitHub

更新日志:

4.2.0 4.1.0