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
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。