IP-Based Login Restriction
IP-Based Login Restriction is a WordPress plugin designed to enhance security by restricting user login access to a specific set of authorized IP addresses. It integrates seamlessly with WooCommerce to manage IP restrictions for customer accounts.
by Your Name · github.com/zeeshan-sshaikh/ip-based-login-restriction · 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/zeeshan-sshaikh/ip-based-login-restriction/archive/refs/heads/main.zipIP-Based Login Restriction is a WordPress plugin designed to enhance security by restricting user login access to a specific set of authorized IP addresses. It integrates seamlessly with WooCommerce to manage IP restrictions for customer accounts.
Features
- Registration IP Logging: Automatically captures the user's IP address upon registration.
- First Login Logging: Records the IP address on the first successful login if not already captured.
- Safe List Management: Users can manage their list of authorized IP addresses via their account profile.
- WooCommerce Integration: Adds a dedicated "IP Management" tab to the WooCommerce "My Account" page.
- Strict Validation: Denies login attempts from unauthorized IP addresses.
- User Prompts: Interactive prompts to confirm the primary IP and add subsequent IPs.
Installation
- Upload the plugin files to the
/wp-content/plugins/ip-based-login-restrictiondirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Note: This plugin requires WooCommerce to be installed and active.
Configuration
Navigate to the plugin settings (if applicable) or manage behavior via the codebase constants.
Admin Settings
- Enable IP Logged on Registration: Toggle IP capture on registration.
- Enable IP Logged on First Login: Toggle IP capture on first login.
- Max IPs per User: Set the limit for authorized IPs per user.
Usage
- User Registration/Login: The plugin will automatically record the initial IP.
- Managing IPs: Users can go to their "My Account" page (WooCommerce) or their WordPress profile to view and manage their allowed IPs.
- Login Protection: Subsequent logins are checked against the user's allowed list.
License
This project is licensed under the GPL v2 or later.