ultimatemember / Extended

All custom extended features and codes
16 stars 14 forks source link

UM-Block Disposable Email Domains #91

Open MissVeronica opened 3 months ago

MissVeronica commented 3 months ago

Remove the email blocked list with the UM options key blocked_disposable_emails from um_options.

UM()->options()->update( 'blocked_disposable_emails', implode( PHP_EOL, $arr_email_formatted ) );

The blocked disposable email domains return from "CDN API URL" is approx 2970 Kbytes and my current um_options is 79 Kbytes. Activating the "Block Disposable Email Domains" plugin will make the um_options 39 times larger with longer load times for each UM page or 97,4% of the um_options is Blocked Email Domains only needed at the Registration page.

Move the blocked_disposable_emails to its own option_name in the options table and cleanup by removing blocked_disposable_emails from um_options.

Another issues with this blocked_disposable_emails is that phpMyAdmin will fail ( too large entry ) if you need to update anything in um_options and UM will crash.