Disallowed domains

After publishing articles on the Survival plugin, I noticed that some new user registrations used temporary email addresses. When I tried to communicate with these users, I couldn’t because they lacked valid email addresses. This allowed them to gain some level of anonymous access to the website, which is unacceptable to me. So, I sought a solution.

The requirements:

  • Block user registration with email addresses from disallowed domains.
  • Admin can edit the disallowed domains.
  • Plugin works from the WordPress public side, as well as from the Admin dashboard.
  • Free and simple component.

After testing many WordPress plugins that can block certain email domains, I found they all did too much for what I needed. Therefore, I created my own simple block email domain WordPress plugin that simply blocks disallowed domains.


Steps to use the plugin

GitHub Plugin Code
  • Install the download zip file in WordPress
  • Activate the plugin
WordPress Plugin Activate
  • Configure the disallowed domains
WordPress Plugin Configuration
  • Test new user registration with disallowed email address
Block email domain test

See also: Disallowed domains