Rules

Rules can be used to automate the moderation process. Go to Console → Settings → Rules to manage rules of your website.

How does it work?

Think of moderation rules as if conditions.

If something (Type) matches a given value (Value), an action (Action) will take place.

Type

The type of the rule. Basically, defined what is matched to the condition. Hyvor Talk has 7 rule types:

Type Value Description Excuted on
Comment word matches string Checks if words in the comment matches Create/edit
Comment link domain matches number Checks if the domain name of any of the links in the comment matches Create/edit
User name matches string Checks if the user's display name or user name matches Create/edit
Comment link count exceeds number Checks if the number of links in the comment is greater than Create/edit
Flags exceeds number Checks if the number of flags of the comment is greater than Flag
Downvotes exceeds number Checks if the number of downvotes of the comment is greater than Vote
Upvotes exceeds number Checks if the number of upvotes of the comment is greater than Vote

Value

A value is given by moderators to match with the data of that type. If the match is successful, the given action will be executed.

All the numerical values should be equal to or greater than 0.

String values allow you to define multiple comma-separated values. Each value can contain any valid PCRE regex. However, if you use regex, limit it to basic regex, such as *, ., and [0-9], to avoid conflicts. String matching is case-insensitive. Examples:

Note: Currently, it is only possible to match single words with the string type. For example, it is not possible to match "hello world" together.

Action

There are 4 actions for each type.

  1. Keep pending
  2. Mark as spam
  3. Delete
  4. Publish

See moderation docs to learn more about comment statuses.

Priority

Rules are executed on each comment based on the priority. High priority rules will be executed first. If a rule is matched and the action is called, the other rules are ignored.

Usage Examples

Here are some common use cases of moderation rules.

Monitoring

When a comment matches a rule, we keep a record of it. You can see these in Console → Comments along with other moderation actions.