3.Bad Words

3.Bad Words

The admintools badwords command group lets you manage the Bad Words list used by the WAF to filter malicious content.

3.1.Add a bad word

Adds a new word to the Bad Words list.

wp admintools badwords add <word> [--format=<format>]

<word>

The word to add to the Bad Words list.

--format=<format>

The output format. Accepted values: text (default), json.

Examples

Add a word:

wp admintools badwords add "spam"

Add a word and get JSON output with the new entry's ID:

wp admintools badwords add "casino" --format=json

Sample output

Success: Bad word added with ID 1.