IP Whitelist & Blacklist
A lightweight WordPress security plugin that allows admins to easily whitelist or blacklist IP addresses directly from the dashboard. Enhance website security, block unwanted access, and manage trusted IPs with a simple user-friendly interface.
by Sana Ullah · github.com/sanaach66/ip-whitelist-blacklist · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sanaach66/ip-whitelist-blacklist/archive/refs/heads/main.zipIP Whitelist & Blacklist for WordPress
A powerful WordPress security plugin that allows you to control access to your WordPress login page by whitelisting or blacklisting IP addresses. Track login attempts and manage IP access with ease.
Features
- Whitelist Mode: Allow only specific IP addresses to access the login page
- Blacklist Mode: Block specific IP addresses from accessing the login page
- IP Management: Easily add or remove IPs from whitelist/blacklist
- Access Logs: View detailed logs of login attempts
- User-Friendly Interface: Clean and intuitive admin interface
- Secure: Built with security best practices in mind
Installation
- Upload the
ip-whitelist-blacklistfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to 'IP Control' in the WordPress admin menu to configure the plugin
Usage
Setting Up Access Control
- Navigate to IP Control in your WordPress admin menu
- Choose your preferred security mode:
- Whitelist Mode: Only allow listed IPs to access the login page
- Blacklist Mode: Block listed IPs from accessing the login page
Managing IP Addresses
-
To add an IP:
- Enter the IP address in the appropriate field
- Click "Add to Whitelist" or "Add to Blacklist"
-
To remove an IP:
- Click the "Remove" button next to the IP you want to remove
- Confirm the removal when prompted
Viewing Access Logs
- The Access Logs section displays recent login attempts
- You can see the date, IP address, action type, and user agent
- Use the "Clear All Logs" button to remove all log entries
Frequently Asked Questions
What happens if I lock myself out?
If you accidentally block your own IP address, you can:
- Access your site via FTP/SFTP
- Navigate to
/wp-content/plugins/ - Rename the
ip-whitelist-blacklistfolder to deactivate the plugin - Log in to your WordPress admin
- Rename the folder back to
ip-whitelist-blacklist - Reactivate the plugin and adjust your settings
How often are logs cleared?
By default, logs older than 30 days are automatically cleared. You can adjust this in the plugin settings.
Support
For support, please open an issue on the GitHub repository or contact the plugin author.
Changelog
1.0.0
- Initial release
License
GPL v2 or later