[MokoCBRegGuard] [FEATURE] Trusted IP and email domain whitelist bypass #19
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
Add a whitelist/trust system that allows known-good IPs and email domains to bypass all RegGuard checks.
Problem or Use Case
Legitimate bulk registrations — staff onboarding, event signups, partner accounts — trigger false positives. Office IPs registering multiple accounts hit the IP frequency check. Corporate email domains are unnecessarily scanned. There is currently no way to exempt known-good sources.
Proposed Solution
Add trust/whitelist parameters:
trusted_ips— comma-separated IPs or CIDR ranges that bypass all checkstrusted_email_domains— comma-separated domains that bypass all checksWhen a registration matches a trusted entry:
TRUSTED_BYPASSnote (maintain audit trail)Alternative Solutions
Benefits
Implementation Details (Optional)
cbregguard.xml:trusted_ips,trusted_email_domainscbregguard.phpbefore running any checksinet_pton()and bitmask comparisonTRUSTED_BYPASS) to maintain complete audit trailRelevant Standards
Checklist