Linux 软件免费装
Banner图

Registration Email Blocker

开发者 altcreative
更新时间 2026年9月9日 06:50
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

email spam registration user-registration email-validation

下载

1.0.0 1.1.0

详情介绍:

Registration Email Blocker decides which email domains are acceptable on your site. Run it as a blocklist to refuse the providers you name, or as an allowlist to accept only the ones you approve. The check is applied everywhere an address can be set, not only on the registration form: Checking email changes matters as much as checking registration. If only the registration form is guarded, an account can be created with an accepted address and switched to any other one a minute later. That option is on by default and can be turned off. What it does Privacy The plugin stores registration attempts in a table in your own database. Nothing is sent anywhere else, and no external service is contacted. You decide how much is kept: The plugin registers a personal data exporter and eraser, so log entries are included in the export and erasure requests WordPress produces under Tools → Export/Erase Personal Data, and it suggests text for your privacy policy. The connection address is used by default; forwarded headers such as X-Forwarded-For are trusted only if you state that the site is behind a reverse proxy, because a visitor can otherwise put any value there. A note on what a blocklist can do A blocklist only refuses the domains you thought of. Somebody who wants an account will find a provider that is not on the list. When the set of acceptable providers is actually known, the allowlist is the mode that holds. The plugin is a technical control over email domains. It does not by itself make a site compliant with any particular legislation, and the site owner remains responsible for their own legal obligations. Russian Federal Law 406-FZ The plugin was originally written for Russian site owners working towards Federal Law No. 406-FZ, which requires authorization through a phone number, ESIA, a biometric system or another Russian-controlled system. This plugin implements none of those. It only controls the email domain used at registration, which the law does not address directly. Treat it as one piece of housekeeping, not as a compliance solution, and take legal advice about your own obligations.

安装:

  1. Install the plugin through Plugins → Add New, or upload the folder to /wp-content/plugins/.
  2. Activate it.
  3. Open "Email Blocker" in the admin menu and choose a mode.
  4. Fill in the domain list for that mode. Pre-configured lists are provided and can be edited freely.
  5. Send yourself a test message before notifying anybody, to confirm this site can send mail at all.
On a multisite network the plugin can be network activated. Each site keeps its own settings and its own log table.

屏幕截图:

  • Affected users: paginated list of accounts with a rejected domain, and the domains in use
  • Log: recorded attempts with filtering and pagination
  • The message a visitor sees when a domain is refused

升级注意事项:

1.1.0 Security release — updating is recommended. Also closes a gap that let accounts switch to a blocked domain after registering, adds WooCommerce block checkout support, log retention and privacy controls. Requires WordPress 6.2 or newer.

常见问题:

Does this make my site compliant with Federal Law 406-FZ?

No. The law requires authorization by phone number, ESIA, a biometric system or another Russian-controlled system, and this plugin implements none of them. It controls email domains only. Consult a lawyer about your actual obligations.

Can somebody get around a blocklist?

Yes. A blocklist can only refuse domains you have listed, and new mail providers appear constantly. If it matters that only certain providers are used, switch to allowlist mode.

Will existing users be blocked?

Not retroactively. Existing accounts keep working. They appear in the "Affected users" tab so you can see who is affected and notify them, and if email change checking is enabled they will be asked for a compliant address the next time they edit their profile.

Can an administrator set a rejected address for someone by hand?

Not while email change checking is on: the rules apply to the account being edited, whoever is doing the editing. Administrators are exempt as accounts, not as editors. To make an exception, either turn the setting off, or use the regiembl_skip_validation filter.

Does it work on WordPress with SQLite?

The domain rules do. The reports about existing accounts do not: they rely on SUBSTRING_INDEX, which the SQLite integration does not provide, and the "Affected users" tab will show nobody. This affects development environments such as WordPress Playground, not ordinary MySQL or MariaDB hosting.

Can I be locked out of my own site?

Administrators are exempt by default. Leave that setting on unless you have a specific reason to change it.

Does it work with the WooCommerce block checkout?

Yes. The block checkout is validated through the Store API, which requires WooCommerce 9.9 or newer. The classic shortcode checkout is validated as well, on any version.

What happens to a malformed email address?

Nothing, as far as this plugin is concerned. WordPress and WooCommerce already reject malformed addresses with a message that explains the real problem, so the plugin stays out of the way and does not record it as a blocked domain.

Can I add a .рф domain?

Yes. Type it in Cyrillic and it is converted to punycode when you save. If the PHP intl extension is missing on your server, the plugin tells you so and you can enter the punycode form directly, for example xn--80a1acny.xn--p1ai.

Does it slow the site down?

Registration checks are a string comparison against a list held in memory, so the cost is negligible. The reports about existing accounts are heavier by nature. They are answered with aggregate SQL rather than by loading user objects, the results are cached for an hour, and the tables are paginated. If you do not need that report on a very large site, turn off "Report existing accounts that do not comply" and it will not be calculated at all.

How many emails are sent at once?

Up to ten per request, and fewer if your mail server is slow: a batch also stops after ten seconds, so it cannot run into the execution time limit. The browser drives the run, shows progress and can stop it. Users notified within the configured window are skipped, so restarting after an interruption does not mail anybody twice. The plugin sends through wp_mail() and does not set a From address, leaving that to WordPress or to your SMTP plugin. For any real volume, install an SMTP plugin.

What is removed when I delete the plugin?

The settings, the log table and the per-user notification timestamps, on every site of a network. User accounts are never touched.

更新日志:

1.1.0 This release contains security fixes. Updating is recommended for every installation. Coverage: Privacy and data retention: Reliability on larger sites: Housekeeping: 1.0.0