Published on
Dec 17, 2024
Updated on
08 Jan 2025
Share

Block Subscriptions with Disposable Emails: An Essential Feature for the Security of Your WordPress Site

With the increase in malicious users and spam, protecting your WordPress site has become a priority for many administrators. With this in mind, we've developed the "Block User Registration From Disposable Email for our plugin WPMasterToolKit. This module blocks user registrations using disposable email addresses, guaranteeing better quality of your user bases and reducing the risk of spam.

Why did we develop this module?

Disposable e-mails (for example, yopmail.com, 10minutemail.com, or mailinator.com) are often used by malicious users to create temporary accounts or spam a site. This can lead to problems such as :

  • Databases filled with useless or fraudulent accounts.
  • Extra efforts to manage suspicious entries.
  • Damage to your site's credibility (e.g. rigged contests or surveys).

With this module, we wanted to offer a simple, effective and lightweight solution for blocking these emails directly at source, during registration.

Discover the module : Limit connection attempts

Which plugin can this module replace?

This module can replace plugins such as Stop Signup Spam or similar solutions that monitor registrations via disposable e-mail addresses. The advantage here is that this module is integrated into WPMasterToolKit, an optimized all-in-one plugin. If you only need this functionality, only the corresponding class will be loaded, minimizing the impact on your site's performance.

Main features of this module

  1. Pre-integrated list of disposable email domains
    The module includes an extensive list of domains known to offer temporary email services. For example: yopmail.com, mailinator.com, 10minutemail.com, etc.
  2. Filtering based on email domains
    When a user attempts to register, the domain of their email address is automatically matched against this list.
  3. Extendable filter
    The module uses the WordPress filter apply_filters('wpmastertoolkit/block_user_registration_from_disposable_email/disposable_emails_domains') to allow administrators or developers to add or remove email domains from the list. This enables advanced customization.
  4. User-friendly error message
    If a disposable email address is detected, registration is blocked and a clear message is displayed:
    "Registration from disposable email addresses is not allowed.
    Registration with disposable e-mail prohibited.
Discover the module : Ban e-mails

How to use this module

This module is extremely easy to use:

  1. Install and activate the plugin WPMasterToolKit.
  2. Activate the Block User Registration From Disposable Email from the module dashboard.
  3. The module automatically takes care of blocking disposable emails during registration, without any additional configuration.

Add or modify disposable email domains

To customize the list of blocked domains, you can use the filter provided by the module. Here's an example of code to add to the file functions.php of your theme or via a custom plugin :

add_filter('wpmastertoolkit/block_user_registration_from_disposable_email/disposable_emails_domains', function($domains) {
    // Ajouter un nouveau domaine à bloquer
    $domains[] = 'nouveaudomainejetable.com';
    
    // Supprimer un domaine de la liste
    if (($key = array_search('10minutemail.com', $domains)) !== false) {
        unset($domains[$key]);
    }
    
    return $domains;
});

Technical choices behind this module

  1. Optimized performance
    This module is only loaded if you activate it in WPMasterToolKit. This limits the use of server resources.
  2. Easy integration
    The module uses native WordPress hooks (pre_user_email) to filter emails during registration. This ensures maximum compatibility with the WordPress user management system.
  3. Extensibility with apply_filters
    We have deliberately added a filter apply_filters to give developers the flexibility to adapt the list of domains to their specific needs.
  4. Enhanced safety
    The module ensures that malicious registrations are blocked before they even enter the database, reducing the risk and effort required to clean up fraudulent accounts.
Pro
from
2.50$
/Month
14
Days
Money-back guarantee
risk-free at 100 %!

Conclusion

The module Block User Registration From Disposable Email is a powerful tool for protecting your WordPress site from unwanted users and spam. Easy to activate and customize, it helps you maintain a quality user base while reducing the hassle of managing disposable emails. Thanks to WPMasterToolKitYou can benefit from this functionality in an all-in-one, performance-optimized plugin.

Don't wait any longer to strengthen the security of your WordPress site with this indispensable module!

Category
Security
Version
≤ 1.6.0
Type
Free
More than 18 reviews
+1000
Installations
104
Modules
Pro
from
30.00$
/Year