User Spam Remover for WordPress
User Spam Remover is a plugin for WordPress that automatically removes spam user registrations and other old, never-used user accounts. It also blocks the notification e-mail that WordPress normally sends to the administrator whenever a new user registers (annoying when that registration is spam!) and logs it instead.
The plugin adds a configuration panel so that all of these options can be turned on or off, and it logs and fully backs up all user accounts that it deletes, so that you can restore them if you need to.
Features
- Automatically deletes user registration spam and other orphaned, never-used accounts.
- Very simple, enable and go! Doesn’t interfere with the normal user registration process in any way. So, it doesn’t add captchas or activation or anything else — you’re free to use it alongside a plugin that does, if you like. (For more info on why I’ve written it this way, see the FAQ).
- Blocks notification e-mail that WordPress normally sends to the administrator every time a new user registers (instead, logs this event).
- Fully configurable, with grace period for new accounts and optional username whitelist.
- Fully logs all actions and backs up all user accounts that it deletes so that you can seamlessly restore them if you ever need to.
Installation
Note: Please report any bugs or issues you have in the comments below, so that I can make it better.
Requirements: PHP 5.1+ (tested with PHP 5.2.x and 5.3.2). WordPress 3.0+ (uses new permissions system).
- Download, unzip and upload into your plugins directory. (Or, install through the plugins menu in WordPress.)
- Go to the Plugins configuration screen in WordPress and activate. Look for the settings link to go to the User Spam Remover settings page (User Spam Remover also gets added to the left menu under “Users”).
- On the settings page, you’ll need to click the “Enable” checkbox to turn the plugin on. Scroll down and change any options you like. Click “Save Changes.”
One note on logging: By default, all logging is enabled (good!), but the log directory is set to the
logsubdirectory of the plugin. While this is OK, it means your log files will be viewable over the web, so I recommend you change this directory to someplace else (i.e., if the root of your site is/www/mysite/html, do something like/www/mysite/log). Be sure to usechmodor your FTP program to make this directory webserver-writable (don’t worry, User Spam Remover will warn you if it’s not). - Once you’re done, that’s it! Feel free to use the blue “Remove spam/unused accounts now” button to test it out. User Spam Remover will run once a day automatically from now on.
Questions? Please see the FAQ.
Upgrading
There’s nothing special you need to know. Either upgrade through WordPress itself, or download the newest version, unzip and upload the new files.
Versions
See the changelog to see what’s new. Version 0.9.1 was released on March 11, 2011.

Ping from新推出的WordPress Plugins - 22/3 | Avocado Solutions
March 21, 2011, 7:47 pm
[...] User Spam Remover – 自動移除Spam,太舊或沒有使用的用家戶口 [...]
grp362
March 26, 2011, 5:05 am
Neat plugin. As a semi-newbie, I deleted most of my member list when I pressed the wrong button before registering my white list.
How do I use the restore feature to put them back? I have access via phpmyadmin, but am not sure how to use it.
sticks
March 26, 2011, 2:04 pm
Check the FAQ for how to restore users. The backup file is in standard SQL format (i.e. a text file with a bunch of SQL statements in it).
The easiest thing to do is just to restore everything in the backup file. You can do this with “mysql < backupfile” or you can load the backup file into phpMyAdmin.
Ping fromWordPress Blogs: How to Stop Spam | Teach Me Internet Marketing
March 28, 2011, 5:39 am
[...] For more information and installation instructions, please go to: http://lyncd.com/user-spam-remover/ [...]
Ping fromWordPress Blogs: How to Stop Spam
April 3, 2011, 8:33 am
[...] For more information and installation instructions, please go to: http://lyncd.com/user-spam-remover/ [...]
Ping fromWordPress Blogs: How to Stop Spam | How to setup a website
April 13, 2011, 7:25 am
[...] For more information and installation instructions, please go to: http://lyncd.com/user-spam-remover/ [...]
Ping fromWordpress Plugins » Blog Archive » User Spam Remover
April 21, 2011, 6:21 am
[...] Spam Remover 21 April 2011 | Antispam Plugins | Es gibt keine Kommentare » | Das Plugin User Spam Remover löscht automatisch Spam, Registrationen und inaktive Benutzer. Ausserdem blockiert es die [...]
chod
May 3, 2011, 8:38 pm
Any option to remove user who have no post in xx days?
Thanks.
sticks
May 3, 2011, 8:50 pm
No, the plugin’s goal is to remove spam user accounts (i.e. those who have *never* submitted a non-spam comment), not legitimate users who have merely been inactive for a long time.
You don’t really want to delete user records of users with posts, comments or links anyway, as that would break the database relations — better to just disable those accounts.
Ping fromWordPress Blogs: How to Stop Spam | Spam Stop Articles
May 4, 2011, 8:53 pm
[...] For more information and installation instructions, please go to: http://lyncd.com/user-spam-remover/ [...]
AstroGremlin
May 17, 2011, 8:44 pm
I am using WordPress TwentyTen and loved the idea of dealing with spammers without Captchas. I activated your plugin and not sure it’s doing what I think it’s intended to do. One strange thing though: I now get *two* copies of every request to moderate a comment. Weird, huh? Because it was made clear that not getting any e-mail on incoming comments was a feature. I’m just marking the spammers as spam for now (and deleting the extra e-mails!) Should I be using another Plugin to catch them in the first place, and how do I turn off the *extra* e-mails.
Appreciate your efforts to stop these annoying parasites.
AstroGremlin
sticks
May 17, 2011, 9:42 pm
This plugin is not for comment spam. It is for user registration spam!
I actually have written a comment spam plugin that I’ve been using for almost a year now, but haven’t decided how/if to release it. So, I can’t really help there … yet.
I would recommend you use my plugin alongside a comment spam plugin like Akismet. Of course, if you’re not getting any spam user registrations (for instance, if your site doesn’t allow the public to register), then you don’t need this plugin at all.
AstroGremlin
May 18, 2011, 5:20 pm
Thanks for your response. I *wish* I had enough traffic to get registration spam (assuming that’s a factor). My experience as a green WP blogger is that you can get zero traffic and still get comment spammers. It seems to be a small industry! Aksimet, as you know, comes bundled with WP. Have been hesitating to activate it, but looks like what I need to do. Appreciate your help!
Ping fromWordPress Blogs: How to Stop Spam | The Vall
June 11, 2011, 9:58 pm
[...] For more information and installation instructions, please go to: http://lyncd.com/user-spam- remover / [...]
Ping fromWordPress Blogs: How To Stop Spam | Wordpress Theme Plugin Tutorial Tips Download
June 17, 2011, 10:19 pm
[...] For more information and installation instructions, please go to: http://lyncd.com/user-spam-remover/ [...]
Kevin
Oct. 10, 2011, 6:01 pm
Hi, thanks for a great plugin! The only thing I would like to see added in the future is the ability to delete only accounts that have not been activated, regardless of whether they have or have-not made any posts or comments. Thanks!
scott4design
Oct. 12, 2011, 8:13 pm
The site I am applying this to is not the one on my profile here… but I needed to know. Is the patch discussed between Michelle and Sticks integrated?
I want only accounts never used to be deleted. On User Spam Removal I was seeing it detect a lot of accounts that I know belong to people I know on the site and are verified…
My site has been alive for 3 years and I got pretty good at catching spam accounts as they registered, but I missed some over time.
I did this so far:
copy/paste: ”
So, If I understand correctly (English is a 2nd language to me), I have to:
1) Install login logger
2) Install User Spam Remover ”
I did not activate User Spam Remover yet out of pure fear.
scott4design
Oct. 12, 2011, 8:26 pm
More…
Okay I activated User Spam remover
So… I installed Login Logger and it shows all logins as n/a:
copy/paste: ”
Last logins:
Username Time IP How Long Ago Time Since Last Active
person1 N/A N/A N/A N/A
person2 N/A N/A N/A N/A
person3 N/A N/A N/A N/A
person4 N/A N/A N/A N/A
which I admit might be normal because I am only just installing this plugin?
User Spam Remover
That is showing ALL of my user accounts as having not ever been used … I can’t insert a tolerance for X days because it’s too big a wild card. Some members only login a couple times a year because it centers around one specific event.
So going back to my previous post. I know there are about 30 accounts that are spam… give or take… because I manually verify almost everyone as they register and upgrade those to another level of access.
So… do you see my struggle? I think it is the same sorta think Michelle was trying to do???
scott4design
Oct. 12, 2011, 9:08 pm
ugh… none of these are working? I have the latest WordPress and Buddypress installed on http://www.gayburners.com and it is not even logging my own current login … am I missing something?
Ping fromWordPress Blogs: How to Stop Spam | 101DesignBlog.com
Oct. 13, 2011, 5:12 pm
[...] For more information and installation instructions, please go to: http://lyncd.com/user-spam-remover/ [...]
Ping from- Politector
Oct. 14, 2011, 1:44 pm
[...] For more information and installation instructions, please go to: http://lyncd.com/user-spam-remover/ [...]
Steve Lambert
Oct. 18, 2011, 4:10 pm
I’m getting a lot of emails about new users signing up, even though I have checked “Check to block new user e-mail notifications to administrator”
Media Tower
Nov. 18, 2011, 3:22 am
wow.. your user spam remover is really fantastic!! :) … Removed 152 unused user accounts within 1 sec :)
thank you for saving my time,
Helmuts
virginads
Michele
Dec. 12, 2011, 9:49 am
Hi.
I just released that user spam remover has removed a user who had logged in a few days ago, but Age threshold is set to 400 days. My suspect is that my system is using european date format and this messes up with the plugin…. can this be the reason?
Thanks.
sticks
Dec. 12, 2011, 10:39 am
Sorry, but it’s nothing to do with that — datetimes are stored in GMT/UTC format that is timezone-independent (in WordPress, in my plugin, in MySQL, in pretty much any reasonable software).
Please reread how the plugin works — it has nothing to do with whether users log in or not. It removes accounts that have never created a post, comment, link or anything else. I’m sorry for your troubles, but this has been discussed a lot.