{"id":1866,"date":"2024-12-17T10:47:11","date_gmt":"2024-12-17T09:47:11","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/bloquer-lenregistrement-des-utilisateurs-a-partir-dun-e-mail-jetable\/"},"modified":"2025-01-08T15:32:01","modified_gmt":"2025-01-08T14:32:01","slug":"bloquer-lenregistrement-des-utilisateurs-a-partir-dun-e-mail-jetable","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/block-user-registration-from-a-disposable-e-mail-address\/","title":{"rendered":"Block user registration from disposable e-mail"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Block Subscriptions with Disposable Emails: An Essential Feature for the Security of Your WordPress Site<\/h1>\n\n\n\n<p>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 <strong>\"Block User Registration From Disposable Email<\/strong> for our plugin <strong>WPMasterToolKit<\/strong>. This module blocks user registrations using disposable email addresses, guaranteeing better quality of your user bases and reducing the risk of spam.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why did we develop this module?<\/h2>\n\n\n\n<p>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 :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Databases filled with useless or fraudulent accounts.<\/li>\n\n\n\n<li>Extra efforts to manage suspicious entries.<\/li>\n\n\n\n<li>Damage to your site's credibility (e.g. rigged contests or surveys).<\/li>\n<\/ul>\n\n\n\n<p>With this module, we wanted to offer a simple, effective and lightweight solution for blocking these emails directly at source, during registration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which plugin can this module replace?<\/h2>\n\n\n\n<p>This module can replace plugins such as <strong>Stop Signup Spam<\/strong> 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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Main features of this module<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Pre-integrated list of disposable email domains<\/strong><br>The module includes an extensive list of domains known to offer temporary email services. For example: yopmail.com, mailinator.com, 10minutemail.com, etc.<\/li>\n\n\n\n<li><strong>Filtering based on email domains<\/strong><br>When a user attempts to register, the domain of their email address is automatically matched against this list.<\/li>\n\n\n\n<li><strong>Extendable filter<\/strong><br>The module uses the WordPress filter <code data-no-auto-translation=\"\">apply_filters('wpmastertoolkit\/block_user_registration_from_disposable_email\/disposable_emails_domains')<\/code> to allow administrators or developers to add or remove email domains from the list. This enables advanced customization.<\/li>\n\n\n\n<li><strong>User-friendly error message<\/strong><br>If a disposable email address is detected, registration is blocked and a clear message is displayed:<br><em>\"Registration from disposable email addresses is not allowed.<\/em><figure class=\"wp-block-image size-full\"><img alt=\"Registration with disposable e-mail prohibited.\" fetchpriority=\"high\" decoding=\"async\" width=\"794\" height=\"135\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-117.png\" class=\"wp-image-3777\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-117.png 794w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-117-300x51.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-117-768x131.png 768w\" sizes=\"(max-width: 794px) 100vw, 794px\" \/><\/figure><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">How to use this module<\/h2>\n\n\n\n<p>This module is extremely easy to use:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install and activate the plugin <strong>WPMasterToolKit<\/strong>.<\/li>\n\n\n\n<li>Activate the <strong>Block User Registration From Disposable Email<\/strong> from the module dashboard.<\/li>\n\n\n\n<li>The module automatically takes care of blocking disposable emails during registration, without any additional configuration.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Add or modify disposable email domains<\/h3>\n\n\n\n<p>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 <code data-no-auto-translation=\"\">functions.php<\/code> of your theme or via a custom plugin :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\" data-no-auto-translation=\"\">add_filter('wpmastertoolkit\/block_user_registration_from_disposable_email\/disposable_emails_domains', function($domains) {\n    \/\/ Ajouter un nouveau domaine \u00e0 bloquer\n    $domains[] = 'nouveaudomainejetable.com';\n    \n    \/\/ Supprimer un domaine de la liste\n    if (($key = array_search('10minutemail.com', $domains)) !== false) {\n        unset($domains[$key]);\n    }\n    \n    return $domains;\n});\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Technical choices behind this module<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Optimized performance<\/strong><br>This module is only loaded if you activate it in <strong>WPMasterToolKit<\/strong>. This limits the use of server resources.<\/li>\n\n\n\n<li><strong>Easy integration<\/strong><br>The module uses native WordPress hooks (<code data-no-auto-translation=\"\">pre_user_email<\/code>) to filter emails during registration. This ensures maximum compatibility with the WordPress user management system.<\/li>\n\n\n\n<li><strong>Extensibility with apply_filters<\/strong><br>We have deliberately added a filter <code data-no-auto-translation=\"\">apply_filters<\/code> to give developers the flexibility to adapt the list of domains to their specific needs.<\/li>\n\n\n\n<li><strong>Enhanced safety<\/strong><br>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.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The module <strong>Block User Registration From Disposable Email<\/strong> 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 <strong>WPMasterToolKit<\/strong>You can benefit from this functionality in an all-in-one, performance-optimized plugin.<\/p>\n\n\n\n<p>Don't wait any longer to strengthen the security of your WordPress site with this indispensable module!<\/p>","protected":false},"excerpt":{"rendered":"<p>Protect your WordPress site against fraudulent registrations with WPMasterToolKit's Block User Registration From Disposable Email module. This module automatically blocks disposable email addresses during registration, guaranteeing a reliable, high-quality user base. With a pre-integrated list of blocked domains and easy customization via filters, this module is a lightweight, high-performance and indispensable solution in the fight against spam. Find out how it can secure your site today!<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_robots_primary_cat":"","_seopress_titles_title":"S\u00e9curisez WordPress : Bloquez les emails jetables","_seopress_titles_desc":"Prot\u00e9gez votre WordPress des spams en bloquant les emails jetables avec WPMasterToolKit. S\u00e9curit\u00e9 renforc\u00e9e et bases utilisateurs de qualit\u00e9.","_seopress_robots_index":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-1866","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=1866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}