Kentico CMS 6.0 Context Help

Bad words

Bad words

Previous topic Next topic Mail us feedback on this topic!  

Bad words

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

Bad words list

 

On this tab, you can see a list of defined bad words. For each bad word, you can see the expression and the action to be taken when a user inputs the expression. In case that the Replace action is configured for a word, the replacement word is listed in the Replacement column.

 

The top part of the page is a filter. Using it, you can display only those bad words that match the specified criteria. You can filter by the Expression and by the Action that has been set for it. After specifying the filtering criteria and clicking the Show button, only those items that match the specified criteria will be displayed in the list.

 

Bad word properties

 

General tab

 

Bad word

Bad word that should not appear in the text.

Bad word is a regular expression

If checked, you can also enter regular expressions into the previous field.

Match whole word

If enabled, only whole word occurrences of the expression will be identified. If disabled, even words with substrings matching the expression will be identified (e.g. an occurrence of the word "document" would be reported if "cum" was defined as a bad word with this option disabled).

Action        

Action that will be taken in case that the bad word is detected; the possibilities are:

Remove - the bad word is removed from the entered text with no substitution for it

Replace - the bad word is removed and replaced with a predefined word

Report abuse - a report will be created in CMSDesk -> Tools -> Abuse report

Request moderation - the post becomes automatically moderated; this also happens in case that the forum, message board or blog comments are not moderated by default

Deny - a warning message will be displayed when the user tries to post the inadequate text, telling which words are to be removed

 

Inherit from global settings - if checked, global value will be used as set in Site Manager -> Settings -> Security & Membership -> Protection -> Bad word action

Replace with

In case that the Replace action is selected, substitute for the bad word is defined here.

 

Inherit from global settings - if checked, global value will be used as set in Site Manager -> Settings -> Security & Membership -> Protection -> Bad word replacement

 

The following table shows which of the actions are available for each of the supported modules:

 

 

Blog comments

Forums

Messaging

Message boards

Remove

Replace

Report abuse

 

Request moderation

 

Deny

 

In case that there is more than one bad word detected in input text and the words have different actions set, the actions will be taken according to their hierarchy. Remove, Replace and Report abuse actions are independent, i.e. the actions can be taken simultaneously. Request moderation is stronger than Report abuse and Deny is the strongest of all.

 

The following list shows which actions will be taken in some specific cases in order for you to easily understand the actions hierarchy:

 

Remove and Replace - the first one will be removed and the second one will be replaced with the defined substitute.

Remove, Replace and Report abuse - the first one will be removed, the second one replaced and an abuse report will be logged.

Remove, Replace and Request moderation - the first one will be removed, the second one will be replaced and the post will have to be approved.

Report abuse and Request moderation - the post will have to be approved and no abuse report will be logged.

Deny and any other - the text is left as it is, but produces an error message.

 

 

 

Replace action in fields with limited length

 

If the Replace action has to be performed in a text entered into a field with limited length, it may happen that the text with replaced bad words would exceed the maximal length (when the replacement text is longer than the original bad word). In this case, the bad word is replaced with as many asterisks as its length.

 

When there are multiple bad words in the text, replacement starts from the beginning of the string. If replacement of the first bad word wouldn't cause exceeding of the maximal length, it is replaced with the replacement text. The same applies to the subsequent bad words and asterisks start to be used with the first bad word whose replacement would cause exceeding of the maximal length.

 

 

Cultural versions of bad words

 

You can set for which cultures will a certain bad word be used. If you choose to Edit (Edit) a bad word in the list in Administration -> Bad words and switch to its Cultures tab, you will be offered the following two options:

 

The word is not allowed in all cultures - the bad word will be filtered in all website cultures.

The word is not allowed only in following cultures - the bad word will be filtered only in cultures added to the list below.

 

Using the Add cultures button, you can add cultures to the list. The Remove selected button removes all cultures selected by the check-boxes from the list. After clicking the ArrowBottom icon in the header of the Actions column, a context menu is displayed, offering options for export of listed data to various types of files.

 

More information on the Bad words module can be found in Developer's Guide -> Modules -> Bad words.