Country Ban Request

Created on 15 May 2025, about 1 month ago

Problem/Motivation

The Advanced Ban module currently provides IP-based banning but lacks the functionality to conveniently ban entire countries. Administrators have to manually input extensive IP ranges, making management cumbersome and inefficient.

Steps to reproduce

  1. Attempt to block all IP addresses from a specific country.
  2. Observe that there is no simple interface or method to ban by country.
  3. Administrators must manually compile and input IP addresses, leading to potential errors and inefficiency.

Proposed resolution

  • Integrate NirSoft's Country IP database (https://www.nirsoft.net/countryip/) into the Advanced Ban module.
  • Provide an admin interface for importing and regularly syncing IP ranges based on country selection.
  • Allow administrators to select countries to ban/unban through a simplified UI.

Remaining tasks

  • Evaluate the NirSoft IP database for feasibility and compatibility.
  • Design and implement the administrative interface.
  • Develop synchronization or import mechanisms for IP ranges.
  • Ensure performance optimizations to handle large datasets.
  • Testing and validation.

User interface changes

  • Add a new section or tab within the Advanced Ban module admin settings for country-based banning.
  • Provide intuitive controls for selecting countries and managing country-based ban rules.

API changes

No significant API changes anticipated beyond the necessary hooks for IP range synchronization and administration.

Data model changes

Introduction of new tables or configurations to store country-based IP ranges and corresponding ban settings.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands ndf Amsterdam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024