WP User Blocking is a WordPress plugin that allows administrators to restrict access to their website for specific users based on email addresses or IP addresses. It provides a customizable block message and offers features such as email export/import functionality and debug mode.
- Block users by email address
- Block users by IP address
- Customizable block message
- Option to block admin users
- Export and import blocked email addresses
- Debug mode for testing
- wp-config.php debug mode override
- Bulk actions to block/unblock users
- User-friendly settings page in WordPress admin
- Download the plugin zip file.
- Log in to your WordPress admin panel.
- Go to Plugins > Add New.
- Click on the "Upload Plugin" button.
- Choose the downloaded zip file and click "Install Now".
- After installation, click "Activate Plugin".
- Log in to your WordPress admin panel.
- Go to Users > User Blocking.
- Block Message: Customize the message displayed to blocked users.
- Blocked Emails: Enter email addresses to block, one per line.
- Blocked IPs: Enter IP addresses to block, one per line.
- Button Email: Set an email address for the "Contact Us" button on the block page.
- Debug Mode: Enable to allow access to wp-admin for testing.
- Block Admins: Enable to block users with administrator roles.
- Go to the Users page in the WordPress admin.
- Hover over a user and click "Block User" or "Unblock User".
- Go to the Users page in the WordPress admin.
- Select multiple users using the checkboxes.
- Choose "Block Users" or "Unblock Users" from the Bulk Actions dropdown.
- Click "Apply".
- Go to Users > User Blocking.
- Click the "Export Blocked Emails" button.
- A CSV file will be downloaded with all blocked email addresses.
- Go to Users > User Blocking.
- Click "Choose File" under the Import Blocked Emails section.
- Select a CSV file containing email addresses to block.
- Click the "Import Blocked Emails" button.
Note: The CSV file should have a header row with "Blocked Emails" as the column name. The import function will skip this header row.
You can enable debug mode in two ways:
-
Check the "Debug Mode" box in the plugin settings.
-
Add the following line to your wp-config.php file:
define('WP_USER_BLOCKING_DEBUG', true);
This will override the setting in the admin panel.
Q: Will this plugin block existing logged-in users? A: Yes, the plugin checks user access on each page load, so it will block existing sessions for newly blocked users.
Q: Can I block entire IP ranges? A: Currently, the plugin only supports blocking individual IP addresses. IP range blocking may be added in future updates.
Q: What happens if I block my own email or IP? A: If you block your own email or IP, you may lose access to your site. Always keep debug mode on or have an alternate admin account when testing.
Q: How do I unblock a user? A: You can unblock a user by removing their email from the Blocked Emails list in the plugin settings, or by using the "Unblock User" action on the Users page.
We welcome contributions to the WP User Blocking plugin. Please fork the repository and submit a pull request with your changes.
WP User Blocking is licensed under the GPL v2 or later.
© 2024 OpenWPclub.com. All rights reserved.