Ultimate Member - Black listing email domains
Extension to Ultimate Member for additional blocking possibilities like subdomains and top level domains and online updates of disposable email domains.
by Miss Veronica · github.com/missveronica/um-black-listing-email-domains · website
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/missveronica/um-black-listing-email-domains/archive/refs/heads/main.zipDeclares an update source (https://github.com/MissVeronica/um-black-listing-email-domains), so updates arrive through the plugin's own updater.
Readme
UM Black listing email domains Version 3.1.0
Extension to Ultimate Member for additional blocking possibilities like subdomains and top level domains and online updates of disposable email domains.
https://github.com/MissVeronica/um-black-listing-email-domains/blob/main/development.md
UM Settings -> Access -> Other -> Blocked Email Addresses (Enter one email per line)
- UM blocking formats:
user@block.com*@block.com - Additional settings by plugin: Top level blocking '.xyz' and subdomain blocking '.company.com'
- Top level blocking:
*.xyz - Subdomain blocking:
*.somedomain.com - Subdomain blocking will allow registration for
@somedomain.combut block@subdomain.somedomain.com
UM Settings -> Access -> Other -> Black listing email domains
- Number of hours to keep cached email domains - Enter the number of hours until refreshing current downloaded GitHub allowed and disposable email domains. Hours set to 0 disables caching.
- Enable listing of Plugin current caches - Tick to create HTML pages with listings of the Plugin's current caches with allowed and disposable email domains. - Untick and Save to remove the HTML files
- WHITE list: Additional allowed local email domains - Enter allowed local email domains (one per line) to be used together with the GitHub allowed emails during email validation. The update will be made at the next cache refresh. Example 'mydomain.com'
- BLACK list: Additional blocked local email domains - Enter blocked local email domains (one per line) to be used together with the GitHub disposable emails during email validation. The update will be made at the next cache refresh. Example 'notdomain.com'
- Enable UM error message for all blocked domains - Tick to use the UM "blocked_domain" error message also for all Plugin invalid email domains.
Disposable email domains
- Removal from version 3.0.0 of the old admin supplied list of uploaded disposable email domains
- Online download of "List of well-known email domains" and "List of known e-mail domains used disposable email services" from GitHub
- Source downloads: https://github.com/amieiro/disposable-email-domains
- Current sizes of the download files are 919 and 172813 (3,7 MByte) email addresses and updates are generated every quarter of an hour
- From Version 3.1.0 allowed and denied email domains are cached with a setting for the number of hours a cache refresh, Zero hours cache time disables caching and every user registration will download email domains from GitHub.
- A temporary solution with listing of all cached email domains to a HTML page is available and will be replaced by a more secure solution later.
- HTML files are located at .../wp-content/uploads/ultimatemember/disposable_emails/
- Cached email domain download and cache read times are displayed at the settings page.
Screen copy
User registration error messages
- We do not accept registrations from this top level email domain.
- We do not accept registrations from this email subdomain.
- We do not accept registrations from this temporary email domain.
- All error messages can be replaced by the UM error message: We do not accept registrations from that domain.
Translations or Text changes
- Use the "Loco Translate" plugin
- Text domain: black-listing-domains
- https://wordpress.org/plugins/loco-translate/
Updates
- Version 2.0.0 Admin user addition of disposable email domains
- Version 3.0.0 Addition of online update of disposable email domains
- Version 3.1.0 Local caching of the email domains, custom White and Black email domains, listing of cache content
Installation & Updates
- Install or update by downloading the ZIP file via the green Code button.
- Install as a new Plugin, which you upload in WordPress -> Plugins -> Add New -> Upload Plugin.
- Activate the Plugin: Ultimate Member - Black listing email domains