The "Stop List: Registration" module for OpenCart allows site administrators to block user registration based on various filters, such as banned customer names, email addresses, phone numbers, IP addresses, and regular expressions. This helps prevent spam registrations and unwanted users, ensuring a safer and cleaner community.
The fields in the "Stop List" module are protected from the following special characters using regular expressions:
Regular expressions and their usage Symbols:
Regular expression: /[!@#$%^&*(),.?":{}|<>/]/
Used for checking the "First Name" and "Last Name" fields.
These symbols include: !@#$%^&*(),.?":{}|<>/
Numbers:
Regular expression: /d/
Used for checking the "First Name" and "Last Name" fields.
These symbols include: 0-9
Special characters:
Regular expression: /[W_]/
Used for checking the "First Name" and "Last Name" fields.
These symbols include: any characters that are not letters, digits, or underscores _
Cyrillic:
Regular expression: /[А-Яа-яЁё]/
Used for checking the "First Name," "Last Name," and "Phone" fields.
These symbols include: all Cyrillic letters (А-Я, а-я, Ё, ё)
Letters:
Regular expression: /[a-zA-Z]/
Used for checking the "Phone" field.
These symbols include: Latin letters (A-Z, a-z)
Usage examples and protection
First Name:
Banned symbols: !@#$%^&*(),.?":{}|<>/
Banned numbers: 0-9
Banned special characters: any characters that are not letters, digits, or underscores _
Check for Cyrillic: all Cyrillic letters (А-Я, а-я, Ё, ё)
Last Name:
Banned symbols: !@#$%^&*(),.?":{}|<>/
Banned numbers: 0-9
Banned special characters: any characters that are not letters, digits, or underscores _
Check for Cyrillic: all Cyrillic letters (А-Я, а-я, Ё, ё)
Phone:
Banned Cyrillic letters: all Cyrillic letters (А-Я, а-я, Ё, ё)
Banned Latin letters: Latin letters (A-Z, a-z)
Banned special characters: any characters that are not letters, digits, or underscores _
Usage Examples
First Name:
User enters the name John!Doe – registration will be blocked due to the symbol !.
User enters the name Иван123 – registration will be blocked due to the numbers 123.
Last Name:
User enters the last name Doe# – registration will be blocked due to the symbol #.
User enters the last name Smith$ – registration will be blocked due to the symbol $.
Phone:
User enters the phone number +123ABC456 - registration will be blocked due to the letters ABC.
User enters the phone number +123-456-7890 - registration will be blocked due to the symbols -.
Module Installation:
Go to the OpenCart admin panel.
Navigate to "Extensions" -> "Installer".
Upload and install the "stop_list.ocmod.zip" module file.
Go to "Modifications" and refresh the cache.
Activating the Module:
Navigate to "Extensions" -> "Modules".
Find the "Stop List: Registration" module and click "Install".
Click "Edit" to configure the module.
Configuring the Module:
Module Status: Activate the module.
Banned Customer Names: Enter banned customer names, one per line or separated by commas.
Regular Expressions for First and Last Names: Select regular expressions to check the first and last names.
Banned Email Addresses: Enter banned email addresses, one per line or separated by commas.
Spam Domains: Enter email domains you want to block, one per line or separated by commas.
Spam Words: Enter words you want to block in email addresses, one per line or separated by commas.
Temporary Email Services: Enter domains of temporary email services, one per line or separated by commas.
Banned Phone Numbers: Enter banned phone numbers, one per line or separated by commas.
Regular Expressions for Phones: Select regular expressions to check phone numbers.
Banned IP Addresses: Enter banned IP addresses or ranges, one per line or separated by commas.
Click "Save" to save changes or "Apply" to apply changes without closing the settings page. Before installing and using the module, it is recommended to make a full backup of your site, just as you would before installing any other module. This is a precautionary measure and nothing more, which will help you save a lot of time and effort. Enjoy using the module!