Title: User Spam Remover
Author: Joel
Published: <strong>2010年8月27日</strong>
Last modified: 2024年3月3日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/user-spam-remover/assets/icon.svg?rev=1630376)

# User Spam Remover

 作者: [Joel](https://profiles.wordpress.org/joelhardi/)

[ダウンロード](https://downloads.wordpress.org/plugin/user-spam-remover.zip)

 * [詳細](https://ja.wordpress.org/plugins/user-spam-remover/#description)
 * [レビュー](https://ja.wordpress.org/plugins/user-spam-remover/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/user-spam-remover/#installation)
 * [開発](https://ja.wordpress.org/plugins/user-spam-remover/#developers)

 [サポート](https://wordpress.org/support/plugin/user-spam-remover/)

## 説明

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

Please see requirements and installation instructions below, or online [in the WordPress support forum](https://wordpress.org/support/topic/official-installation-instructions-and-what-to-do-about-errors/).

For more information, please go to: [https://lyncd.com/user-spam-remover/](https://lyncd.com/user-spam-remover/)

## スクリーンショット

 * [[
 * The plugin’s exciting configuration screen (added under WordPress’ Users menu).

## インストール

Requirements:

 * PHP 5.1+ (tested with PHP 5.2-8.2)
 * MySQL using PHP **mysqli extension** (read on for details)
 * WordPress 3.9+

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”).
 3. 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):
 4.     ```
        define('WP_USE_EXT_MYSQL', FALSE);
        ```
    
 5. 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.”
 6. One note on logging: By default, all logging is enabled (good!), but the log directory
    is set to a filesystem location that may not be writable by the webserver, or where
    you may not want it. I recommend you change this directory to someplace else (i.
    e., if the root of your site is `/www/mysite/html`, you could make a directory 
    like `/www/mysite/log`). Be sure to use `chmod` or your FTP program to make this
    directory webserver-writable (User Spam Remover will warn you if it’s not).
 7. 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.

## FAQ

Please see the updated FAQ online at: [https://lyncd.com/user-spam-remover/faq/](https://lyncd.com/user-spam-remover/faq/)

## 評価

![](https://secure.gravatar.com/avatar/a61a3fe46da238ccd95abfc954213ec2486724e33b3a31caa2c3f6adf6aa27fb?
s=60&d=retro&r=g)

### 󠀁[It does its job well.](https://wordpress.org/support/topic/it-does-its-job-well-2/)󠁿

 [Eli](https://profiles.wordpress.org/realact/) 2023年6月25日

This plugin helped me eliminate over 10k spam registrations from a website recently,
and it did its job very well regardless of being 3 years without updates.

![](https://secure.gravatar.com/avatar/114f918e425b702caf85c7a6d0ca48778feb1e3c84088c490f1bf1ce3ce76f05?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-8632/)󠁿

 [j35u5fr34k](https://profiles.wordpress.org/j35u5fr34k/) 2021年7月9日

I had a bunch of spam users on my forum and this deleted them all. Granted it took
some time as it could only do 1000 at a time but better than trying to figure it
out another way. Sit in front of the TV and delete them 1000 at a time. I love this
plugin.

![](https://secure.gravatar.com/avatar/9ece388d6f749c909be7c570c8280a7c64a2f70b03a9e154645b4a9915ffba45?
s=60&d=retro&r=g)

### 󠀁[Could be better](https://wordpress.org/support/topic/could-be-better-47/)󠁿

 [Liz_S](https://profiles.wordpress.org/liz_s/) 2020年10月29日

Would be amazing if it also removed all pending user registrations. We have 17000
spam registrations that never activated their accounts. Would love an easy way to
remove them.

![](https://secure.gravatar.com/avatar/3844f85ca52d3cd0d184f9de8428fba74d3f6f76196bcc44ecaedbb3c13f2475?
s=60&d=retro&r=g)

### 󠀁[It works!](https://wordpress.org/support/topic/it-works-1986/)󠁿

 [FinanzProfi](https://profiles.wordpress.org/finanzprofi/) 2020年10月11日

I had 31000 subscribers on a old (WP 4.4) website where I accidentially had the 
option “anyone can register” turned on. This plugin did the job of deleting all 
those subscribers. I had to do it in batches as it “only” deletes 1000 subs at the
time. Thanks a lot to the developer as it has saved me a lot of hassle!!

![](https://secure.gravatar.com/avatar/3d766708706256205c983e722f610588d2a34236fa71dbe4980f807c960a3091?
s=60&d=retro&r=g)

### 󠀁[Works as described; suggested improvements](https://wordpress.org/support/topic/works-as-described-suggested-improvements/)󠁿

 [tgrblogger](https://profiles.wordpress.org/tgrblogger/) 2018年11月6日

Does the job of removing registered users that have not commented or made a post
after a selected number of days and includes a log and a backup db file. Improvement
could be made by allowing this job to be applied to a selection of User Role and
a date range. Used on Wordpress version 4.9.8

![](https://secure.gravatar.com/avatar/3ffea248b6b286087ae6797352377d3f6deb53e6a7039dcb60510c23ca64584e?
s=60&d=retro&r=g)

### 󠀁[Very good! works!!](https://wordpress.org/support/topic/very-good-works/)󠁿

 [stiffgroup](https://profiles.wordpress.org/stiffgroup/) 2017年9月3日

delete 1000s

 [ 18件のレビューをすべて表示 ](https://wordpress.org/support/plugin/user-spam-remover/reviews/)

## 貢献者と開発者

User Spam Remover はオープンソースソフトウェアです。以下の人々がこのプラグインに
貢献しています。

貢献者

 *   [ Joel ](https://profiles.wordpress.org/joelhardi/)

[“User Spam Remover” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/user-spam-remover)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/user-spam-remover/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/user-spam-remover/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/user-spam-remover/)を 
[RSS](https://plugins.trac.wordpress.org/log/user-spam-remover/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.1

 * Changed default filesystem log location to not be inside the plugin directory.
   This means the default is no longer www-visible, but new users _really_ should
   set the Log Directory after installing the plugin because the default may not
   be webserver-writable.

#### 1.0

 * Bump to 1.0. No changes to core functionality. For existing users there is no
   urgent reason to upgrade to this version.
 * Improved error message when `mysqli` is not enabled.
 * Reformat of readme.txt due to wordpress.org redesign of their plugin directory.

#### 0.9.9

 * Update to code that suppresses new user registration notification email. WordPress
   core made a change to the API starting with version 4.3.0 of WordPress, so this
   update to User Spam Remover fixes the problem where the user gets a bogus registration
   notification email and is unable to complete site registration. Props to Oliver
   @ www.webmandesign.eu for the report.

#### 0.9.8

 * Now requires mysqli. If your PHP version is < 5.5 you may need to force WordPress
   to use `mysqli` instead of the older `mysql` extension. Just add this line to`
   wp-config.php`, near the top by the other DB settings:
 *     ```
       define('WP_USE_EXT_MYSQL', FALSE);
       ```
   

#### 0.9.1

 * Now detects and adds absent MySQL indexes to wp_comments.user_id and wp_links.
   link_owner columns. Greatly speeds performance and enables use on much larger
   databases. Big props to Raph Koster for help debugging!
 * Enables MySQL sql_big_selects config var at runtime for use on shared hosts and
   other installations where this is disabled by default.
 * MySQL SELECT errors now logged/shown to the user as appropriate.
 * Hard limit of 1000 users per deletion to prevent long-running operations. Upped
   limit to 10000 records per SELECT, thanks to improved SQL and indexes.
 * No longer deletes users with only comments marked as “spam.” This is a small 
   functional regression, but it speeds SQL performance. Once the spam is permanently
   removed these users will be deleted anyway.
 * Minor bug fix affecting settings page user list display w/ bbPress users.
 * Changes to method visibility. Many previously public methods now protected.
 * Code refactoring.

#### 0.9

 * Version/compatibility bump so that wordpress.org plugin repository info is accurate.
 * Added check for wp_usermeta ‘last_posted’ record so that users of database-integrated
   bbPress installations are not deleted if they have ever posted anything.
 * Added hard limit of 5000 records to prevent long-running operations.
 * Added a list of user accounts pending deletion to the settings page.
 * Style fix to inline error messages per r16205 changes to WordPress core file 
   wp-admin/css/colors-fresh.dev.css.
 * Miscellaneous minor style fixes.

#### 0.3

 * Added standard WordPress Users section icon and printing of status message on
   options update.
 * Updated deprecated PHP syntax for string access by character in lcfirst().
 * Very minor refactoring and tweak of message text.

#### 0.2

 * Fixed weird edge case where no usermeta records exist for a given user.
    Before:
   this caused user removal to abort and an error message to be logged. Now: any
   such users are deleted.
 * Added nonce checking to “Remove now” button on admin page.
 * Slight code refactor to remove buried strings.
 * Cosmetic change to log strings so plural “s” not added to singular words.

#### 0.1

 * Initial public release.
 * Tested using WordPress 3.0.1 and PHP 5.2.6 and 5.2.14.

## メタ

 *  バージョン **1.1**
 *  最終更新日 **2年前**
 *  有効インストール数 **1,000+**
 *  WordPress バージョン ** 3.9またはそれ以降 **
 *  検証済み最新バージョン: **6.4.8**
 *  言語
 * [English (US)](https://wordpress.org/plugins/user-spam-remover/)
 * タグ
 * [admin](https://ja.wordpress.org/plugins/tags/admin/)[registration](https://ja.wordpress.org/plugins/tags/registration/)
   [spam](https://ja.wordpress.org/plugins/tags/spam/)[user](https://ja.wordpress.org/plugins/tags/user/)
   [users](https://ja.wordpress.org/plugins/tags/users/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/user-spam-remover/advanced/)

## 評価

 5つ星中4.1つ星

 *  [  10 5-星レビュー     ](https://wordpress.org/support/plugin/user-spam-remover/reviews/?filter=5)
 *  [  5 4-星レビュー     ](https://wordpress.org/support/plugin/user-spam-remover/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/user-spam-remover/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/user-spam-remover/reviews/?filter=2)
 *  [  3 1-星レビュー     ](https://wordpress.org/support/plugin/user-spam-remover/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/user-spam-remover/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/user-spam-remover/reviews/)

## 貢献者

 *   [ Joel ](https://profiles.wordpress.org/joelhardi/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/user-spam-remover/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://lyncd.com/donate/)