Stop WordPress Spam Registration With or Without a Plugin

WordPress is the most popular platform for creating a blog or website. This is probably the reason it attracts spammers. You should take care to stop WordPress spam registration.

Spam usually concerns the article’s comments. But, when your blog is open to member registration, many of them will come from spammers.

WordPress spam registration is usually easy to be recognized. Strange usernames without member name or CV.

You may use online resources to identify if the IP or the domain name of the new member is related to spam or not. One of them is Stop Forum Spam.

Stop WordPress Spam Registration With a Plugin

ReCaptcha plugin

It is very important to use ReCaptcha on the registration page. Please, keep in mind that it will reduce spam, but it will not eliminate it. Some bots can bypass it.

There are many plugins available. Just select “Add new plugin” from your WordPress Dashboard and search for “Recaptcha”.

I use Login No Captcha reCAPTCHA. It adds a Google ReCaptcha checkbox to login, forgot password, and user registration pages.

Stop WordPress Spam Registration - Recaptcha
Stop WordPress Spam Registration – Recaptcha

WPBruiser {no- Captcha anti-Spam}

According to its author: “eliminates spam-bot signups, spam comments, even brute force attacks”.

You should give it a try.

Plugins based on Stop Forum Spam

You may find interesting the following plugins, as they are mentioned in the Stop Forum Spam page

  1. Stop Spammers
  2. Stop Signup Spam
  3. AVH First Defense Against Spam.

Plugins 2 and 3 have not been tested with the latest three major releases of WordPress.

Other options

Consider using the following plugins

It would also be a good idea to use a plugin for email verification.

Stop WordPress Spam Registration Without a Plugin

Here is a “quick and dirty” way to utilize Stop Forum Scan to prevent spam registration.

This solution assumes that you are using a child theme. So, open functions.php file and use the following code.

First, define your blacklist. It will be an array with suspicious domains:

// https://www.stopforumspam.com/domain/tree.frequiry.com
// https://www.stopforumspam.com/domain/edu.frequiry.com
// https://www.stopforumspam.com/domain/blog.boringverse.com
// https://www.stopforumspam.com/domain/orobasovot.pro
// https://www.stopforumspam.com/domain/astriacabs.com
// https://www.stopforumspam.com/domain/a-kinofilm.ru
// https://stopforumspam.com/domain/hdkinoclubcom.ru
// https://stopforumspam.com/domain/sriexpress.com
// https://stopforumspam.com/domain/photoaim.com
// https://stopforumspam.com/domain/greyedwheals.xyz
// https://stopforumspam.com/domain/enelopes.com
// https://stopforumspam.com/domain/libusnusc.online
// https://stopforumspam.com/domain/platinum.dummyfox.com
// https://stopforumspam.com/domain/vipcherry.com
// https://stopforumspam.com/domain/usamami.com
// https://stopforumspam.com/domain/busin.site
// https://stopforumspam.com/domain/goodcoffeemaker.com
// https://stopforumspam.com/domain/over.qwertylock.com
// https://stopforumspam.com/domain/city.foodforhat.com
// https://stopforumspam.com/domain/how.lakemneadows.com
// https://stopforumspam.com/domain/fireonlocation.xyz
// https://stopforumspam.com/domain/allmails.us
// https://stopforumspam.com/domain/mailanuncios.com
// https://www.stopforumspam.com/domain/any.lakemneadows.com
// https://stopforumspam.com/domain/even.hammerhandz.com
// https://stopforumspam.com/domain/highspeed.catchallserver.com
// https://stopforumspam.com/domain/vipitv.com
// https://stopforumspam.com/domain/delperdang24.housecleaningguides.com
// https://stopforumspam.com/domain/elen.nicewoodenbaskets.com
// https://stopforumspam.com/domain/work.lakemneadows.com
// https://stopforumspam.com/domain/kopienak.website
// https://stopforumspam.com/domain/jacksonmichiganhomes.com
// https://www.stopforumspam.com/domain/coolyarddecorations.com
// https://stopforumspam.com/domain/erpin.org
// https://stopforumspam.com/domain/time.wrengostic.com
// https://stopforumspam.com/domain/hit.carmanial.com
// https://stopforumspam.com/domain/hidebox.org
// https://stopforumspam.com/domain/b.cr.cloudns.asia
// https://stopforumspam.com/domain/tempr.email
// https://stopforumspam.com/domain/monopolyempiretreasurehunt.com
// https://stopforumspam.com/domain/join.zoomingabout.com
// https://stopforumspam.com/domain/time.oldoutnewin.com
// https://stopforumspam.com/domain/canvasarttalk.com
// reported as Phishing from Chrome stardustersla.com
// https://stopforumspam.com/domain/nativerainforestplum.com
// https://stopforumspam.com/domain/purecbdww.com
// https://stopforumspam.com/domain/werkbike.com
// https://stopforumspam.com/domain/vast.ioswed.com
// https://stopforumspam.com/domain/we-b-tv.com
// https://stopforumspam.com/domain/ualusa.com
// https://stopforumspam.com/ipcheck/104.223.38.183
// https://stopforumspam.com/domain/great.gasbin.com
// https://stopforumspam.com/domain/mcdrives.com
// https://stopforumspam.com/domain/evezee.com
// https://stopforumspam.com/domain/ad.gmxx.uno
// https://stopforumspam.com/domain/list.ru
// https://stopforumspam.com/domain/house.bochip.com
// https://stopforumspam.com/domain/portableblender.club
// https://stopforumspam.com/domain/exist.ioswed.com
// https://stopforumspam.com/domain/full.gasbin.com
// https://stopforumspam.com/domain/h.zeriesshop.com
// https://stopforumspam.com/domain/mailoracle.com
// https://stopforumspam.com/domain/apple.dnsabr.com
// https://stopforumspam.com/domain/solarchargecontroller.club
// https://stopforumspam.com/domain/usgeek.org
// https://stopforumspam.com/domain/with.felphi.com
// https://stopforumspam.com/domain/label.felphi.com
// https://stopforumspam.com/domain/wirelessphonecharger.club
// https://stopforumspam.com/domain/noise.bochip.com
// https://stopforumspam.com/domain/electricscooter.best
// https://stopforumspam.com/domain/chinaflights.online
// https://stopforumspam.com/domain/hamsterbreeeding.com
// https://stopforumspam.com/domain/familygames.website
// https://stopforumspam.com/domain/vodafoneyusurvivalzombie.com
// https://stopforumspam.com/domain/instructor.net
// https://stopforumspam.com/domain/musclebuilding.club
// https://stopforumspam.com/domain/brainboosting.club
// https://stopforumspam.com/domain/moon.pointbuysys.com
// https://stopforumspam.com/domain/baby.makingdomes.com
// https://stopforumspam.com/domain/autorambler.ru
// https://stopforumspam.com/domain/cbd24shop.online
// https://stopforumspam.com/domain/for.oldoutnewin.com
// https://stopforumspam.com/domain/new.hellohappy2.com
// https://stopforumspam.com/domain/some.felphi.com
// https://stopforumspam.com/domain/case.pumez.com
// https://stopforumspam.com/domain/discardmail.com
// https://stopforumspam.com/domain/discard.email
// https://stopforumspam.com/domain/spambog.com
$domains_blacklist = [
    'tree.frequiry.com',
    'edu.frequiry.com',
    'blog.boringverse.com',
    'orobasovot.pro',
    'astriacabs.com',
    'a-kinofilm.ru',
    'hdkinoclubcom.ru',
    'sriexpress.com',
    'photoaim.com',
    'greyedwheals.xyz',
    'enelopes.com',
    'libusnusc.online',
    'platinum.dummyfox.com',
    'vipcherry.com',
    'usamami.com',
    'busin.site',
    'goodcoffeemaker.com',
    'over.qwertylock.com',
    'city.foodforhat.com',
    'lakemneadows.com',
    'any.lakemneadows.com',
    'fireonlocation.xyz',
    'allmails.us',
    'mailanuncios.com',
    'even.hammerhandz.com',
    'highspeed.catchallserver.com',
    'vipitv.com',
    'delperdang24.housecleaningguides.com',
    'elen.nicewoodenbaskets.com',
    'work.lakemneadows.com',
    'kopienak.website',
    'jacksonmichiganhomes.com',
    'onukogu25.coolyarddecorations.com',
    'coolyarddecorations.com',
    'erpin.org',
    'time.wrengostic.com',
    'hit.carmanial.com',
    'hidebox.org',
    'b.cr.cloudns.asia',
    'tempr.email',
    'monopolyempiretreasurehunt.com',
    'join.zoomingabout.com',
    'time.oldoutnewin.com',
    'canvasarttalk.com',
    'stardustersla.com',
    'nativerainforestplum.com',
    'purecbdww.com',
    'werkbike.com',
    'vast.ioswed.com',
    'sport.ioswed.com',
    'we-b-tv.com',
    'ualusa.com',
    'store.pointbuysys.com',
    'checkout.pointbuysys.com',
    'sheep.pointbuysys.com',
    'great.gasbin.com',
    'mcdrives.com',
    'evezee.com',
    'ad.gmxx.uno',
    'list.ru',
    'house.bochip.com',
    'portableblender.club',
    'exist.ioswed.com',
    'full.gasbin.com',
    'h.zeriesshop.com',
    'mailoracle.com',
    'apple.dnsabr.com',
    'solarchargecontroller.club',
    'usgeek.org',
    'with.felphi.com',
    'label.felphi.com',
    'beat.felphi.com',
    'wirelessphonecharger.club',
    'noise.bochip.com',
    'electricscooter.best',
    'chinaflights.online',
    'hamsterbreeeding.com',
    'familygames.website',
    'vodafoneyusurvivalzombie.com',
    'instructor.net',
    'musclebuilding.club',
    'brainboosting.club',
    'moon.pointbuysys.com',
    'baby.makingdomes.com',
    'autorambler.ru',
    'cbd24shop.online',
    'for.oldoutnewin.com',
    'new.hellohappy2.com',
    'some.felphi.com',
    'case.pumez.com',
    'discardmail.com',
    'discard.email',
    'spambog.com',
];

You have to maintain this list manually. After a suspicious registration check Stop Forum Spam for this domain.

Then use the following code to prevent registration

function restrict_registration($login, $email, $errors ){
    global $domains_blacklist;
    $blacklisted = false;
    $a_email = explode('@', $email);
    $email_domain = strtolower($a_email[1]);

    if (true === in_array($email_domain, $domains_blacklist)) {
        $blacklisted = true;
    }

    if( true === $blacklisted){
       wp_mail('your_email_here', '[your_site_here] Registration denied', 'Registration denied for: ' . $email);
       $errors->add('domain_blacklist_error',__( '<strong>ERROR</strong>: Something went wrong.' ));
    }
   }
   add_action('register_post', 'restrict_registration',10,3 );

It is based on register_post hook.

The use of wp_mail is optional. It is useful if you want to receive an email notification after any denied registration.

Conclusion

Try to use as few plugins as possible. I chose to use the ReCaptcha plugin and the above custom code.

Related Posts

You may also be interested in

Your comments are welcome!


Never Miss A Post!

Subscribe to our free NewsLetter