Sensitive Keywords Rules

Sensitive Keywords protection is a highly practical feature that prevents various types of illegal and sensitive information from flowing into or out of the server.


Our company provides a downloadable sensitive word list—simply click "Download Library" to obtain it. You can also customize sensitive words based on your specific needs.


The following rules apply to sensitive word matching:


1. Case Insensitivity

Example: "A" and "a" are treated as identical.


2. Default Fuzzy Matching

No need to add * before or after keywords—fuzzy matching is enabled by default.

For instance, entering "abuse" will match "ABUSE," "abusive," "child abuse," etc.


3. Support for "++" Rule

This rule ensures that all specified keywords must appear simultaneously in the content for a match to occur (order of appearance does not matter).


Format Examples:

A++B

A++B++C

A++B++C++D


Example Rule: A++B++C

Matching Condition: The content must contain all three keywords (A, B, and C)—regardless of their sequence.


Valid Matches:

"C, B, and A appeared here"

"This contains a, then C, and B later"


Non-Matches:

"Only A and B are present" 


4. Support for "--" Rule (Keyword Exclusion)

This rule can be understood as exclusion keywords. If any keyword following the "--" appears, the current group of keywords will be skipped. Multiple "-- keywords" are supported.


Syntax Examples:

A--B → Match A, but exclude any content containing B.

A++B--C → Match content that contains both A and B, but exclude any content containing C.

A--B--C--D → Match A, but exclude content containing B, C, or D.

A++B--C--D → Match content containing both A and B, but exclude any content containing C or D.


5. Support for "==" Rule (Keyword Replacement)

The "==" rule is used for keyword substitution, specifying replacement content for matched keywords. This feature is supported only in the "Sensitive Keywords Filtering" module.


1) Positioning Requirement:

== must appear after ++ or -- symbols and only one == is allowed per rule.


2) Length Handling:

If the replacement keyword (after ==) differs in length from the matched keyword:

Excess characters are truncated.

Missing characters are padded with the default character (*).


3) Default Replacement:

If no replacement content is specified after ==, the keyword is replaced with * by default.


Correct Examples:

A==B → Replace A with B.

A++B==C → Replace both A and B with C.

A++B--C==D → Replace A and B with D, while excluding C.


Invalid Examples:

A==B--C → Error: == cannot precede --.

A==B++C--D → Error: == must follow ++/-- directly.

A==B==C → Error: Only one == is allowed per rule.


6. Prohibited Symbols

Please note that keywords must not contain the following characters:

Backslash (\), Single Quote ('), Double Quote (")


<< URL Rules