Forbid Same Email Domain
What It Does
Forbid Same Email Domain refuses an email address that uses the site’s own domain name.
An account that already uses that domain when the protection is turned on stays allowed. A new account does not.
The same rule applies in three places:
- registration and account creation in the admin;
- a change of email on the profile, including the confirmation link WordPress sends before it applies the new address;
- the users REST API, when an account is created or updated, including a person editing their own account.
The message is “Error: The email address is not correct.”
Why It Matters
An address at the site’s domain looks like it belongs to the site. It is used to impersonate the staff, to pass a check that trusts that domain, or to receive mail the site was not meant to send. Blocking it at registration is not enough: the profile form and the REST API can set the same address later, and WordPress applies a confirmed profile email without the usual profile checks.
How to Use
Open the Users & Login module and enable Forbid Same Email Domain. The checkbox names the domain, or the domains, of the site.
Accounts that already use that domain stay allowed. New ones are refused. There is no extra list to fill in.