2.3.Bad Words Management

2.3.Bad Words Management

These commands let you manage the Bad Words, used to block requests if you have enabled this feature in the Configure WAF page.

2.3.1.admintools:badwords:add

What it does: Adds a new entry in the Admin Tools Bad Words list.

Syntax: admintools:badwords:add --word=WORD

Arguments

This command takes no arguments.

Options

--word=WORD

Mandatory. The word you are adding to the Bad Words list.

This is a regular expression fragment, stored exactly as you type it — this command has no equivalent of the Escape Regular Expression option of the Bad Word edit page. If the word contains anything other than letters, numbers, dashes and underscores you have to escape it yourself. Please read Bad Words are regular expressions first.