{"id":1867,"date":"2024-12-26T12:47:45","date_gmt":"2024-12-26T11:47:45","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/interdire-les-e-mails\/"},"modified":"2025-01-08T15:43:59","modified_gmt":"2025-01-08T14:43:59","slug":"interdire-les-e-mails","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/ban-e-mail\/","title":{"rendered":"Ban e-mails"},"content":{"rendered":"<h1 class=\"wp-block-heading\">WPMasterToolKit \"Ban Emails\" module: Block unwanted e-mail addresses on WordPress<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Security and user management are top priorities for any WordPress site administrator. Whether it's to protect your site from spam or prevent certain users from accessing your services, it's sometimes essential to restrict registrations based on specific e-mail addresses. That's why we've developed the <strong>\"Ban Emails<\/strong>WPMasterToolKit's integrated feature makes it easy to ban unwanted e-mail addresses or domains.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which plugin can the \"Ban Emails\" module replace?<\/h2>\n\n\n\n<p>The \"Ban Emails\" module can easily replace dedicated plugins such as <em>Ban Hammer<\/em> or <em>Block Disposable Emails<\/em>. It offers a lightweight, optimized solution fully integrated into the WPMasterToolKit ecosystem.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Main features of the \"Ban Emails\" module<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Block specific e-mail addresses or domains<\/strong><br>With this module, you can create a blacklist of e-mail addresses or domains. For example :\n<ul class=\"wp-block-list\">\n<li>Block an entire domain (e.g. : <code data-no-auto-translation=\"\">@spamdomain.com<\/code>)<\/li>\n\n\n\n<li>Block a specific address (e.g. : <code data-no-auto-translation=\"\">user@domain.com<\/code>)<\/li>\n\n\n\n<li>Block partial keywords (e.g. : <code data-no-auto-translation=\"\">spamuser<\/code> will block all addresses containing \"spamuser\").<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Redirecting blocked users<\/strong><br>If a user tries to register with a blocked address, you can choose to redirect them to a personalized URL. This can be useful to explain why their registration was refused, or to redirect them to a support page.<\/li>\n\n\n\n<li><strong>Customized error messages<\/strong><br>If no redirection is configured, an error message is displayed when attempting to register with a blocked address. The message is clear and indicates that the e-mail address is not accepted.<figure class=\"wp-block-image size-full\"><img alt=\"Registration screen with email error not accepted.\" fetchpriority=\"high\" decoding=\"async\" width=\"344\" height=\"688\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-118.png\" class=\"wp-image-3779\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-118.png 344w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-118-150x300.png 150w\" sizes=\"(max-width: 344px) 100vw, 344px\" \/><\/figure><\/li>\n\n\n\n<li><strong>Settings from the WordPress dashboard<\/strong><br>The \"Ban Emails\" module adds a sub-menu to the WPMasterToolKit settings. From this user-friendly interface, you can :\n<ul class=\"wp-block-list\">\n<li>Enable\/disable redirection for blocked e-mails.<\/li>\n\n\n\n<li>Configure redirection URL.<\/li>\n\n\n\n<li>Modify blacklist of addresses or domains.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"Blog interface for banning email addresses.\" decoding=\"async\" width=\"1024\" height=\"322\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-120-1024x322.png\" class=\"wp-image-3781\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-120-1024x322.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-120-300x94.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-120-768x241.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-120-1536x482.png 1536w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-120.png 1640w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How do I use the \"Ban Emails\" module?<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Access the module sub-menu<\/strong>\n<ul class=\"wp-block-list\">\n<li>Go to your WordPress dashboard.<\/li>\n\n\n\n<li>Under the <strong>WPMasterToolKit<\/strong>click on <strong>Ban Emails<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Configure blocked e-mails<\/strong>\n<ul class=\"wp-block-list\">\n<li>In the <strong>Blocked List<\/strong>Enter the e-mail addresses, domains or keywords you wish to ban, one per line.<\/li>\n\n\n\n<li>Example: <code data-no-auto-translation=\"\">spamuser @spamsite.com user@blockeddomain.com<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Enable redirection (optional)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Check the <strong>Redirect Blocked Users<\/strong> if you wish to redirect blocked users.<\/li>\n\n\n\n<li>Enter the redirection URL in the corresponding field.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Save settings<\/strong><br>Click on the <strong>Register<\/strong> to apply your changes.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">The technical choices behind the \"Ban Emails\" module<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Lightweight and optimized<\/strong> The module only loads the necessary PHP classes when activated, guaranteeing optimum performance for your site. Unlike other plugins that overload the system, \"Ban Emails\" integrates seamlessly into your WordPress installation.<\/li>\n\n\n\n<li><strong>Compatibility with WordPress Core<\/strong> The module uses native WordPress hooks such as <code data-no-auto-translation=\"\">register_post<\/code> to validate e-mail addresses at the time of registration, ensuring seamless integration with the user management system.<\/li>\n\n\n\n<li><strong>Customize redirects and messages<\/strong> By using secure functions such as <code data-no-auto-translation=\"\">wp_redirect<\/code> and <code data-no-auto-translation=\"\">wp_safe_redirect<\/code>We have ensured that all redirections comply with best security practices.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The module <strong>\"Ban Emails<\/strong> from WPMasterToolKit is a simple, effective and highly customizable solution for blocking unwanted e-mail addresses on your WordPress site. Whether you're looking to block spammers or restrict access to certain users, this module will meet your needs perfectly, while integrating effortlessly into your dashboard. Test it now for better subscription management!<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>WPMasterToolKit's Ban Emails module is a solution for strengthening the security of WordPress sites by blocking specific email addresses or domains. Easy to configure, this module allows you to restrict unwanted registrations, thus preventing spam attacks. Integrated into a familiar environment, it effectively replaces several third-party plugins without compromising site performance. Thanks to an intuitive interface, administrators can manage a block list and configure customized redirects for banned users.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_robots_primary_cat":"","_seopress_titles_title":"WordPress: Bloquez les e-mails avec Ban Emails","_seopress_titles_desc":"Bloquez facilement des e-mails ind\u00e9sirables sur WordPress avec le module 'Ban Emails'. Solution l\u00e9g\u00e8re et optimis\u00e9e pour une s\u00e9curit\u00e9 accrue.","_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-1867","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1867","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=1867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}