For a small program, the "sense of security" is very important.

In order to ensure the safety of the applet, after the user enters the text, the developer needs to check whether a piece of text contains illegal content.

图片

So, is there a way: without the mini-program developers manually judging user input scenarios and calling the content security interface, it can also prevent possible content security threats in time?

can let the "cloud" know , whether a piece of text is safe, can it save more time to focus on business?

In order to allow more small programs to be developed and operated with peace of mind, cloud development has content security is here! Support to set content security rules stored in the cloud development database content automatically matches , and deal with the content that triggers violations.

How about it? Did you feel full of security and steady happiness?

The configuration of the content security function is also very simple, it can be enabled in two steps:

Step 1: Activate

Enter the latest version of WeChat developer tools, open the cloud development console, and click "More"-"Content Security" to activate (only pay-as-you-go environments).

图片

Step 2: Create content review rules

Click the "Add" button, select the set name of the content security rule to be applied in the drop-down box, configure the key value of the field, and fill in the rewritten content after the violation is triggered. If the field is reviewed and the violation is triggered, it will be automatically rewritten to this content.

图片

For the collection fields of the configuration rules, each insert, update and other operations will be automatically reviewed. The content of the database field that triggers the violation will be rewritten into the preset rewritten content, and an audit record will be generated.

图片

After the content security function is enabled, you can also view the audit details by filtering the set name, field name, and audit time of the configured rules. If the rewriting result does not meet expectations, the developer can also click the "Back" button in the operation column to automatically restore the content of the field to the original content.

图片

At present, developers can use the content security function for free. If there is any change in the subsequent billing rules, a full notification will be given. Developers are welcome to experience it.

Related documents:

https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/Consecurity.html


CloudBase云开发
425 声望438 粉丝

云开发(Tencent CloudBase,TCB)是云端一体化的后端云服务 ,采用 serverless 架构,免去了移动应用构建中繁琐的服务器搭建和运维。同时云开发提供的静态托管、命令行工具(CLI)、Flutter SDK 等能力极大的降...