Title: Comment Blacklist Manager
Author: Andrew Norcross
Published: <strong>2014 年 5 月 21 日</strong>
Last modified: 2025 年 12 月 13 日

---

搜索插件

![](https://ps.w.org/comment-blacklist-manager/assets/banner-772x250.jpg?rev=1071762)

![](https://ps.w.org/comment-blacklist-manager/assets/icon-256x256.png?rev=2265891)

# Comment Blacklist Manager

 作者：[Andrew Norcross](https://profiles.wordpress.org/norcross/)

[下载](https://downloads.wordpress.org/plugin/comment-blacklist-manager.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/comment-blacklist-manager/#description)
 * [评价](https://cn.wordpress.org/plugins/comment-blacklist-manager/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/comment-blacklist-manager/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/comment-blacklist-manager/#developers)

 [支持](https://wordpress.org/support/plugin/comment-blacklist-manager/)

## 描述

Comment Blacklist Manager retrieves a list of terms from a remote source and updates
the `disallowed_keys` setting in WordPress. The plugin will automatically fetch 
a list of terms on a regular schedule and update the contents of the “Disallowed
Comment Keys” field. Terms added manually via the “Local Blacklist” field will be
retained during the scheduled updates. Terms added manually to the “Excluded Terms”
field will be removed from the list.

The default list of terms is fetched from a [GitHub](https://github.com/splorp/wordpress-comment-blacklist/)
repository maintained by [Grant Hutchinson](https://splorp.com/).

## 屏幕截图

 * [[
 * The “Discussion Settings” screen showing the various blacklist fields

## 安装

**To install the plugin using the WordPress dashboard:**

 1. Go to the “Plugins > Add New” page
 2. Search for “Comment Blacklist Manager”
 3. Click the “Install Now” button
 4. Activate the plugin on the “Plugins” page
 5. (Optional) Add terms to the “Local Blacklist” field in “Settings > Discussion”
 6. (Optional) Add terms to the “Excluded Terms” field in “Settings > Discussion”

**To install the plugin manually:**

 1. Download the plugin and decompress the archive
 2. Upload the `comment-blacklist-manager` folder to the `/wp-content/plugins/` directory
    on the server
 3. Activate the plugin on the “Plugins” page
 4. (Optional) Add terms to the “Local Blacklist” field in “Settings > Discussion”
 5. (Optional) Add terms to the “Excluded Terms” field in “Settings > Discussion”

## 常见问题

### What is the source for the default blacklist?

The default blacklist is maintained by [Grant Hutchinson](https://splorp.com/) on
[GitHub](https://github.com/splorp/wordpress-comment-blacklist/).

### How often is the default blacklist updated?

Generally, the default blacklist is updated several times per month. This includes
the addition of new entries and the optimizing of existing entries. Sometimes the
default blacklist can undergo multiple updates per week, depending on how much spam
in being sent to public WordPress sites we use to test the plugin.

### Can I provide my own blacklist sources?

Yes, you can. Use the filter `cblm_sources` to add different source URLs.

**To replace the default source completely:**

    ```
    add_filter( 'cblm_sources', 'rkv_cblm_replace_blacklist_sources' );

    function rkv_cblm_replace_blacklist_sources( $list ) {

        return array(
            'http://example.com/blacklist-1.txt'
            'http://example.com/blacklist-2.txt'
        );

    }
    ```

**To add a new source to the existing sources:**

    ```
    add_filter( 'cblm_sources', 'rkv_cblm_add_blacklist_source' );

    function rkv_cblm_add_blacklist_source( $list ) {

        $list[] = 'http://example.com/blacklist-1.txt';

        return $list;

    }
    ```

The plugin expects the list of terms to be in plain text format with each entry 
on its own line. If the source is provided in a different format (eg: a JSON feed
or serialized array), then the result must be run through the `cblm_parse_data_result`
filter, which parses the source as a list of terms and the source URL.

### What is the default update schedule?

The plugin will update the list of terms from the specified sources every 24 hours.

### Can I change the update schedule?

Yes, you can. Use the filter `cblm_update_schedule` to modify the time between updates.

    ```
    add_filter( 'cblm_update_schedule', 'rkv_cblm_custom_schedule' );

    function rkv_cblm_custom_schedule( $time ) {

        return DAY_IN_SECONDS;

    }
    ```

The `return` data should be specified using WordPress [Transient Time Constants](https://codex.wordpress.org/Transients_API#Using_Time_Constants).

### Can I add my own terms to the blacklist?

Yes. Individual terms can be added to the “Local Blacklist” field in the “Settings
> Discussion” area of WordPress. Each term must be entered on its own line.

### Can I exclude terms from the blacklist?

Yes. Individual terms can be excluded from the automatically fetched blacklist by
adding them to the “Excluded Terms” field in the “Settings > Discussion” area of
WordPress. Each term must be entered on its own line.

## 评价

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

### 󠀁[Great Little Plugin](https://wordpress.org/support/topic/great-little-plugin-90/)󠁿

 [Jake Jackson](https://profiles.wordpress.org/blue-liquid-designs/) 2016 年 9 月
3 日

Does as advertised. I especially liked how you can exclude words from the automated
blacklist if they don’t suit your website.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/comment-blacklist-manager/reviews/)

## 贡献者及开发者

「Comment Blacklist Manager」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Andrew Norcross ](https://profiles.wordpress.org/norcross/)
 *   [ Grant Hutchinson ](https://profiles.wordpress.org/grantsplorp/)

「Comment Blacklist Manager」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/comment-blacklist-manager/contributors)
为本插件所做的贡献。

[帮助将「Comment Blacklist Manager」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/comment-blacklist-manager)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/comment-blacklist-manager/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/comment-blacklist-manager/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/comment-blacklist-manager/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/comment-blacklist-manager/)。

## 更新日志

#### 1.0.1 — 23-Mar-2020

 * Fixed admin notice to properly clear when a manual update is run
 * Minor code cleanup

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**4 月前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 5.6 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/comment-blacklist-manager/) 、 [German](https://de.wordpress.org/plugins/comment-blacklist-manager/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/comment-blacklist-manager/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/comment-blacklist-manager/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/comment-blacklist-manager)
 * 标签
 * [blacklist](https://cn.wordpress.org/plugins/tags/blacklist/)[comments](https://cn.wordpress.org/plugins/tags/comments/)
   [spam](https://cn.wordpress.org/plugins/tags/spam/)
 *  [高级视图](https://cn.wordpress.org/plugins/comment-blacklist-manager/advanced/)

## 评级

 4.4 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/comment-blacklist-manager/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/comment-blacklist-manager/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/comment-blacklist-manager/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/comment-blacklist-manager/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/comment-blacklist-manager/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/comment-blacklist-manager/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/comment-blacklist-manager/reviews/)

## 贡献者

 *   [ Andrew Norcross ](https://profiles.wordpress.org/norcross/)
 *   [ Grant Hutchinson ](https://profiles.wordpress.org/grantsplorp/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/comment-blacklist-manager/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://andrewnorcross.com/donate)