How to restrict users from using a phone number as their username
Note: you must be have the community manager/administrator primary role to configure this rule.
- Go to Control > Settings > Registration rules
- Under username restrictions, turn on the switch for ‘Block registrations with phone numbers in usernames’.
- That’s all!
Rule we use to block phone numbers
- We use the following regex to block phone numbers in usernames: https://regexr.com/3c53v.
- More generally, this rule blocks any username that is entirely composed of numbers.
End user experience
- If this setting is enabled, end users will see an error message explicitly mentioning that it looks like they’re trying to use a phone number in their name and asking them to try again.
-
This is a customisable phrase you can change in Control (Module: Forum; Key: validation.username.is.phone.number).
How to restrict users from using specific keywords in their username
Note: you must be have the community manager/administrator primary role to configure this rule.
- Go to Control > Settings > Registration rules
- Under username restrictions, turn on the switch for ‘Block registrations where username contains any of the following keywords’
- Add the keywords you want to block in a comma-separated list.
- Hit save changes, and you’re done!
End user experience
- If this setting is enabled, end users will see an error message explicitly mentioning that their username contains a restricted keyword and asking them to try again.
-
This is a customisable phrase you can change in Control (Module: Forum; Key: validation.username.restricted.text)