Plugin Directory

User Spam Remover

Automatically removes spam user registrations and other old, unused user accounts. Blocks annoying e-mail to administrator after new registrations.

Requirements: PHP 5.1+ (tested with PHP 5.2-5.5). WordPress 3.9+ (uses new permissions system, requires WordPress support for mysqli). MySQL using PHP


extension (read on for details). If you are strictly assigning MySQL privileges, note that the plugin adds two column indexes, so your database account must be assigned the ALTER and CREATE privileges (if you don't know what this means, don't worry, you probably already have this).

  1. Download, unzip and upload into your plugins directory. (Or, install through the plugins menu in WordPress.)

  2. 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").

    Note: if you see mysqli errors at the top of the activation or settings page, you need to tell WordPress use use the mysqli extension instead of the older mysql one. Add this line to your wp-config.php (insert it next to all the other DB settings, near the top):

    define('WP_USE_EXT_MYSQL', FALSE);
  3. 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 log subdirectory 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 use chmod or your FTP program to make this directory webserver-writable (don't worry, User Spam Remover will warn you if it's not).

  4. 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.

Requires: 3.9 or higher
Compatible up to: 4.1.4
Last Updated: 2014-12-20
Active Installs: 3,000+


4.5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,3,3
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 50,2,1