WP Manifestindependent plugin directory
manifest / security / ip-based-login-restriction

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

1stars
0forks

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.zip

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.

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

  1. Upload the plugin files to the /wp-content/plugins/ip-based-login-restriction directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. 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

  1. User Registration/Login: The plugin will automatically record the initial IP.
  2. Managing IPs: Users can go to their "My Account" page (WooCommerce) or their WordPress profile to view and manage their allowed IPs.
  3. Login Protection: Subsequent logins are checked against the user's allowed list.

License

This project is licensed under the GPL v2 or later.