A Plugin for URL-Based Protection
制作・開発Protecting your website’s sensitive pages is crucial for maintaining security. Introducing Basic Auth Manager, a WordPress plugin that allows you to easily secure specific pages using Basic Authentication. Whether you’re working with static or dynamically rewritten URLs, this plugin has you covered.
Key Features of Basic Auth Manager
- Restrict Specific URLs: Protect URLs like
/en/hello-world/
or/tw/sample-page/
with Basic Authentication. - Dynamic Language-Based Protection: Handle URL rewrites caused by plugins like Transpress.
- Secure Credential Management: Use
.htpasswd
to store encrypted credentials. - Fallback Logic: Protect rewritten URLs using WordPress hooks.
- Admin Panel Configuration: Easily manage settings via a user-friendly interface.
How It Works
- Primary Enforcement with
.htaccess
:
- The plugin dynamically updates
.htaccess
to enforce authentication for specific URLs.
- Fallback with WordPress Hooks:
- If
.htaccess
rules fail (e.g., due to dynamic rewrites), the plugin ensures protection using thetemplate_redirect
hook.
- User Role Exceptions:
- Assign roles that bypass authentication when logged in.
- Scenarios:
- Protect
/en/hello-world/
while leaving/en/about/
unrestricted. - Secure
/admin/secure-data/
without impacting other admin pages.
Benefits of Using Basic Auth Manager
- Enhanced Security: Protect sensitive pages from unauthorized access.
- Seamless Integration: Works with WordPress and plugins like Transpress.
- Flexible Settings: Customize authentication for specific URLs.
- User-Friendly: Configure everything via the WordPress admin panel.
How to Install and Configure
- Install the Plugin:
- Download the plugin from the plugin repository. Upload it to your site via the Plugins > Add New page.
- Activate the Plugin:
- Go to Plugins > Installed Plugins and activate Basic Auth Manager.
- Configure the Settings:
- Navigate to Settings > Basic Auth Manager. Add a username, password, and a list of URLs you want to protect. Select roles to exclude from authentication.
- Save Settings:
- Click the Save Changes button to apply your configuration.
With Basic Auth Manager, securing specific pages on your WordPress site has never been easier. Whether you’re managing a small website or a multilingual portal, this plugin provides robust and flexible protection.
Ready to enhance your website’s security? Download Basic Auth Manager and start protecting your pages today!