Moderation Rules: Sample Use Cases & Flows

This article presents possible use cases and corresponding sample flows that your app can support. It provides a useful starting point as you plan your app's implementation.

Check Wix Blog comments for rule violations

To prevent the publication of spam content on your blog, which often includes links to advertised products or services, phishing sites, or fraudulent schemes, you can implement a moderation rule that applies only to site visitors, excluding members. Once this rule is defined, any comment containing links will be rejected.

To check comments for rule violations:

  1. Create a rule to define conditions on which the content will be rejected. For example:

    Copy
    1
  2. After a site visitor submits the comment, call Check Content to verify that the comment does not break any rules.

Sync moderation rules across all sites

If you have several eComm sites that use your app, you might need to sync moderation rules for product reviews across those sites. For example, you have a new rule, that from now on, all 1-star ratings must go through a manual review. This change also needs to be reflected on other sites.

To sync the rule across all sites:

  1. Call Get Rule on the site where you created a new rule.

  2. Extract the whole rule object. Remove unnecessary fields, like createdDate.

  3. Call Create Rule for your other sites and pass the new rule to each.

Was this helpful?
Yes
No