Title: Baidu TextCensor For Comments
Author: 沈唁
Published: <strong>janvier 9, 2020</strong>
Last modified: décembre 5, 2025

---

Search plugins

![](https://ps.w.org/baidu-textcensor/assets/banner-772x250.png?rev=2224552)

![](https://ps.w.org/baidu-textcensor/assets/icon-128x128.png?rev=2224552)

# Baidu TextCensor For Comments

 By [沈唁](https://profiles.wordpress.org/shenyanzhi/)

[Download](https://downloads.wordpress.org/plugin/baidu-textcensor.1.2.0.zip)

 * [Details](https://tah.wordpress.org/plugins/baidu-textcensor/#description)
 * [Reviews](https://tah.wordpress.org/plugins/baidu-textcensor/#reviews)
 *  [Installation](https://tah.wordpress.org/plugins/baidu-textcensor/#installation)
 * [Development](https://tah.wordpress.org/plugins/baidu-textcensor/#developers)

 [Support](https://wordpress.org/support/plugin/baidu-textcensor/)

## Description

基于百度文本内容审核技术来提供 WordPress 评论内容审核，对网站用户的评论信息检测，
一旦发现用户提交恶意垃圾内容，可以做到文本的自动审核与实时过滤。

### 依赖第三方服务

 * 依赖百度 AI 文本审核技术：https://ai.baidu.com/tech/textcensoring
 * 使用说明：https://ai.baidu.com/ai-doc/ANTIPORN/Vk3h6xaga
 * 即在 WordPress 中有新的评论时，将会调用百度文本审核接口进行验证，验证结果分为
   4 种：1. 合规、2. 不合规、3. 疑似、4. 审核失败
 * 不改变原有的讨论规则，不合规时提示重新评论；疑似和审核失败时写数据库，人工二次
   审核

### 主要功能

 1. 基于百度 Api，一站式检测文本中夹杂的色情、推广、辱骂、违禁、涉政、灌水等垃圾内容，
    净化网络环境；
 2. 用户可以在平台上自助选择审核维度、审核标签，审核松紧度、自定义文本黑白名单，让文本
    按照勾选的维度、松紧度进行审核。
 3. 插件更多详细介绍和安装：[https://github.com/sy-records/wp-baidu-textcensor](https://github.com/sy-records/wp-baidu-textcensor)

### 作者博客

[沈唁志](https://qq52o.me)

### 相关插件

**文章内容审核**：[GitHub](https://github.com/sy-records/textcensor-for-articles)，
[WordPress Plugins](https://wordpress.org/plugins/textcensor-for-articles)

## Screenshots

 * [[
 * 插件配置页面

## Installation

 1. 把 wp-baidu-textcensor 文件夹上传到 /wp-content/plugins/ 目录下
 2. 在后台插件列表中激活 wp-baidu-textcensor
 3. 在“百度内容审核设置”菜单中输入百度文本内容审核相关的 AppID、API Key、Secret Key
    信息
 4. 开始使用吧~

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Baidu TextCensor For Comments” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ 沈唁 ](https://profiles.wordpress.org/shenyanzhi/)

[Translate “Baidu TextCensor For Comments” into your language.](https://translate.wordpress.org/projects/wp-plugins/baidu-textcensor)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/baidu-textcensor/),
check out the [SVN repository](https://plugins.svn.wordpress.org/baidu-textcensor/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/baidu-textcensor/)
by [RSS](https://plugins.trac.wordpress.org/log/baidu-textcensor/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.0

 * 增加 Redis 缓存，限制 IP 请求频率

#### 1.1.2

 * 修复 preprocess_comment 钩子执行顺序问题

#### 1.1.1

 * 增加`userId`和`userIp`参数，可在内容审核平台-数据统计-[用户风险统计](https://ai.baidu.com/censoring#/overview/userrisk)
   使用

#### 1.1.0

 * 支持 WordPress 6.3

#### 1.0.8

 * 支持 WordPress 5.8
 * 支持验证登录用户角色的评论

#### 1.0.7

 * 修改 wp_die 的响应状态码

#### 1.0.6

 * 支持 WordPress 5.6

#### 1.0.5

 * 更新 Tested up to 版本号

#### 1.0.4

 * 修复 add_submenu_page 参数错误提示

#### 1.0.3

 * 更新 readme 为 markdown 格式
 * 更新插件名称为 Baidu TextCensor For Comments
 * 修复停用插件删除配置

#### 1.0.2

 * Optimization baiduWpRequest method

#### 1.0.1

 * Updated readme.txt
 * Updated pre_comment_approved filter hook

#### 1.0.0

 * First version

## Meta

 *  Version **1.2.0**
 *  Last updated **4 mois ago**
 *  Active installations **40+**
 *  WordPress version ** 5.6 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/baidu-textcensor/)
 * Tags
 * [baidu](https://tah.wordpress.org/plugins/tags/baidu/)[comments](https://tah.wordpress.org/plugins/tags/comments/)
   [textcensor](https://tah.wordpress.org/plugins/tags/textcensor/)
 *  [Advanced View](https://tah.wordpress.org/plugins/baidu-textcensor/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/baidu-textcensor/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/baidu-textcensor/reviews/)

## Contributors

 *   [ 沈唁 ](https://profiles.wordpress.org/shenyanzhi/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/baidu-textcensor/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://qq52o.me/sponsor.html)