[MokoCBRegGuard] [FEATURE] Username pattern detection #23
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 regex-based username analysis to detect bot-generated or suspicious usernames during registration.
Problem or Use Case
Spam bots often use formulaic usernames — random character strings, sequential numbers, keyboard walks, or known bot prefixes (user12345, test9876). The plugin currently performs no username analysis.
Proposed Solution
Add configurable regex patterns that flag suspicious usernames:
Generate a
USERNAME_SUSPICIOUSflag (weight: 1) when a match is found.Alternative Solutions
Benefits
Implementation Details (Optional)
cbregguard.xml:enable_username_check,username_suspicious_patterns(textarea, one regex per line)RegGuardHelper::checkUsername()static methodRelevant Standards
Checklist