You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #2 from loukie-pressable/plugin/github-actions
Introduced automated GitHub Actions workflow for packaging and releasing plugin updates. Added Ruby script to streamline release creation and asset uploads. Improved multisite compatibility and login redirection reliability.
Enhanced security for logout functionality with nonce verification and safer credential handling. Added exclusion for specific API and XML-RPC endpoints to bypass Basic Authentication.
A WordPress plugin that forces all users to authenticate using Basic Authentication before accessing any page on the site.
4
+
5
+
## Description
6
+
7
+
This plugin implements server-level Basic Authentication for your WordPress site, requiring valid credentials before any page can be accessed. It's particularly useful for:
8
+
9
+
- Sites that should not be publicly accessible
10
+
- Sites under maintenance
11
+
- Sites that need an additional layer of security before the WordPress login
12
+
13
+
Key features:
14
+
- Forces Basic Authentication for all requests (except AJAX, CRON, and CLI)
15
+
- Integrates with WordPress user database for authentication
16
+
- Handles logout functionality properly
17
+
- Prevents caching of authentication requests
18
+
- Logs failed authentication attempts
19
+
- Bypasses authentication for Super Admins in multisite installations
20
+
- Redirects authenticated users away from wp-login.php
21
+
22
+
## Requirements
23
+
24
+
- WordPress 6.7 or higher
25
+
- PHP 8.1 or higher
26
+
- Server must support PHP_AUTH_USER and PHP_AUTH_PW server variables (most standard hosting environments do)
27
+
28
+
## Frequently Asked Questions
29
+
30
+
### Why am I getting constant authentication prompts?
31
+
32
+
This typically means:
33
+
1. Your credentials are incorrect - verify your WordPress username and password
34
+
2. Your server is stripping authentication headers - contact your hosting provider
35
+
3. There may be a caching layer interfering - try clearing all caches
36
+
37
+
### Can I bypass Basic Authentication for certain users?
38
+
39
+
In a multisite installation, Super Admins can bypass the authentication. For single site installations, you would need to modify the plugin code.
40
+
41
+
### How do I disable the plugin if I'm locked out?
42
+
43
+
1. Access your site via FTP/SFTP or file manager
44
+
2. Rename or delete the `hosting-basic-authentication` folder in `/wp-content/plugins/`
45
+
3. This will deactivate the plugin
46
+
47
+
## Changelog
48
+
49
+
## License
50
+
51
+
This plugin is licensed under the GPL2 license. See the [LICENSE](LICENSE) file for details.
The Pressable Basic Authentication plugin enforces HTTP Basic Authentication across your WordPress site, requiring users to authenticate before accessing any page. This is particularly useful for development environments, ensuring that only authorized users can view or interact with the site during development or testing phases.
14
+
15
+
== FEATURES ==
16
+
17
+
* Enforces HTTP Basic Authentication on all front-end and back-end pages.
18
+
* Installed on sites to restrict public access.
19
+
* Allows super administrators to bypass authentication for seamless management.
20
+
* Integrates with WordPress's authentication system for user verification.
21
+
* Provides a mechanism to log out of Basic Authentication sessions.
22
+
23
+
== Frequently Asked Questions ==
24
+
25
+
= How do I use this plugin? =
26
+
27
+
No manual configuration is required. When accessing a protected site, you'll be prompted to enter your WordPress credentials.
28
+
29
+
= Can I disable Basic Authentication on my site? =
30
+
31
+
Basic Authentication is enforced on sites to protect your site during development. To remove this protection, you can promote your site to a live environment through the MyPressable Control Panel.
32
+
33
+
= What credentials should I use to authenticate? =
34
+
35
+
Use your WordPress username and password associated with the site. Ensure that your user account has the necessary permissions to access the site.
0 commit comments