[MokoCBRegGuard] [FEATURE] GeoIP country filtering #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Description
Integrate GeoIP lookup to allow country-level filtering of registrations.
Problem or Use Case
Some communities serve specific geographic regions. The existing rDNS hosting-provider check identifies VPNs/proxies but cannot determine the registrant's country. Sites receiving spam waves from specific countries have no way to flag or block by geography.
Proposed Solution
Integrate a lightweight GeoIP service:
Add plugin parameters:
enable_geoip_check— toggleallowed_countries— comma-separated ISO country codes (if set, only these pass)blocked_countries— comma-separated ISO country codes to flaggeoip_provider— select between available providersGenerate
GEO_BLOCKEDflag (weight: 2) when country matches blocked list or is outside allowed list.Alternative Solutions
Benefits
Implementation Details (Optional)
cbregguard.xmlRegGuardHelper::checkGeoIP()static methodRelevant Standards
Checklist
Built: RegGuardHelper.checkGeoIP() — ip-api.com lookup, allow/block country lists.