How to Prevent Spam User Registration on WordPress

Sometimes, you may face spam user registration on your WordPress website. Reason being that user registration have been turned on and no security was implemented on the registration form. Meanwhile if any spam registration robot attacks on your website, it will register thousands of fake users in a very short time.

To prevent spam user registration on your WordPress website, you can implement end-point email address verification (that will check the existence of that particular email address). To make this check more strong, use the following verify e-mail class:

WordPress provides a pre_user_email filter. Before the insertion of user data into Database, hook this filter by using pt_verify_email_address function.

Now create inc directory in your Theme and upload class.verifyEmail.php file in it. Add the following code into your Theme’s functions.php file and you are done:

User Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

    Get in Touch