How To Stop Spam User Registration in WordPress Using Plugin

Reading Time: 5 minutes

If you have a WordPress website, you know how annoying spam user registrations can be. In this post, we will look at a powerful solution to this problem: employing a dependable plugin. Learn how to effectively stop spam user registration in WordPress and keep your user database clean and secure.

Tutorial will guide you How To Stop Spam User Registration in WordPress Using Plugin.

The undesired and sometimes automated creation of user accounts on a WordPress website is referred to as spam user registration. It is a typical problem that can result in a bloated user database, security issues, and a poor user experience.

Read More: Step by Step How To Setup Cron Jobs in CodeIgniter 4 Tutorial

Bots or criminal persons usually produce spam registrations in order to exploit or disrupt websites. Here, is a database users view of spam users.

In this article we will use a wordpress plugin to stop spam users registration in wordpress based applications.

Let’s get started.

Installation of WordPress Plugin (Ban Hammer)

Go to WordPress admin panel.

Click to Plugins >> Add New

Read More: How To Send Emails Using GMail SMTP and PHPMailer 6

Search for “ban hammer” keyword into search box.

You should see above plugin into the list.

Click on Install Now.


Click on Activate.

Once you will install it, you should see Ban Hammer Menu inside Tools.

Manage Spam User Settings

Now, we will set spam users email pattern from where we are getting spam users data into application.

Read More: Laravel 10 Authentication with Laravel UI Tutorial

Open Ban Hammer Settings page from Tools >> Ban Hammer

Here, you can see we passed (The Blocked List) a pattern like

These pattern means that, if any user register using email pattern ends with these values will not be acceptable into WordPress registration.

This is one of the analysed pattern we got after seeing spam users email addresses. You can choose any similar texts and put it inside that.

Additionally you can set a value for Redirection Blocked Users? Here you can pass a URL where you want to redirection spam users after failed registration.

Read More: How To Clear Complete Application Caches in Laravel 10

Once you do all settings, just hit Save Changes button.

If everything will be upto mark then you will see spam users now stopped to register themselves.

There are surely other methods as well like Enabling registration captcha, Disable user registration, Specifying a specific role, Add Email verification and Admin approval, etc. But the method you seen is very basic and too simple to do.

We hope this article helped you to learn How To Stop Spam User Registration in WordPress Using Plugin Tutorial in a very detailed way.

Online Web Tutor invites you to try Skillshike! Learn CakePHP, Laravel, CodeIgniter, Node Js, MySQL, Authentication, RESTful Web Services, etc into a depth level. Master the Coding Skills to Become an Expert in PHP Web Development. So, Search your favourite course and enroll now.

If you liked this article, then please subscribe to our YouTube Channel for PHP & it’s framework, WordPress, Node Js video tutorials. You can also find us on Twitter and Facebook.

Sanjay KumarHello friends, I am Sanjay Kumar a Web Developer by profession. Additionally I'm also a Blogger, Youtuber by Passion. I founded Online Web Tutor and Skillshike platforms. By using these platforms I am sharing the valuable knowledge of Programming, Tips and Tricks, Programming Standards and more what I have with you all. Read more