muc filter - xnamed/isida4 GitHub Wiki
Description of the principle of work for self-implementation on the server side:
- in the conference configurator the text field "Filter messages from unaffiliated users through Jabber ID" is added;
- in this field the JID of the filtering bot with the resource is entered;
- if this JID is not in the conference - the filter is disabled;
- if JID is present in the conference, then all messages and presences from participants with affiliation none are passed to the filtering JID:
- form of message transmission:
<iq to="[email protected]/res" from="[email protected]" id="id">
<query xmlns="http://jabber.ru/muc-filter">
<message>...</message> # Original stanza with message
</query>
</iq>- answer:
<iq to="[email protected]" from="[email protected]/res" type="result" id="id">
<query xmlns="http://jabber.ru/muc-filter">
<message>...</message> # Modified stanza with a message
</query>
</iq>- the form of the transfer of the Presence:
<iq to="[email protected]/res" from="[email protected]" id="id">
<query xmlns="http://jabber.ru/muc-filter">
<presence>...</presence> # Original stanza with a presence
</query>
</iq>- answer:
<iq to="[email protected]" from="[email protected]/res" type="result" id="id">
<query xmlns="http://jabber.ru/muc-filter">
<presence>...</presence> # Modified stanza with presence
</query>
</iq>- The result is transferred to the conference after processing
- The result may not return to the conference
- On the filtration, there are no pre-events about leaving the conference
- if the conference is filtered at the entrance from the conference, the notification "This room is filtered by external service"
- Basic settings for the Muc filter
- Muc filter for beginners
- Muc filter for hash actions
- Muc filter for actions by content
- Muc filter for suspicious actions
- Muc filter for censor/ad blocking
- Muc filter for white/black lists
- Muc filter for caps lists
- Muc filter for checking the correctness of the elements
-
muc_filterMuc-filter. Enabling the filter- Recommended:
True - Configuration options:
True,False - Default:
False
- Recommended:
-
muc_filter_newbieSuppress messages from newbies- Recommended:
True - Configuration options:
True,False - Default:
False
- Recommended:
-
muc_filter_newbie_repeatNumber of messages for the beginner- Recommended:
3 - Configuration options: Digital value
- Default:
3
- Recommended:
-
muc_filter_newbie_timeAge in seconds, during which the participant is considered a newcomer- Recommended:
60 - Configuration options: Digital value
- Default:
60
- Recommended:
-
muc_filter_newbie_repeat_actionThe action when the number of messages from the beginner is used- Recommended:
ban - Configuration options:
off,kick,ban - Default:
off
- Recommended:
-
muc_filter_hashHash. Activity Verification- Recommended:
True - Configuration options:
True,False - Default:
False
- Recommended:
-
muc_filter_hash_ban_server_by_rejoin_notify_jidHash. Jid'y for notifications about the server bath- Recommended: jid'y of conference owners, separated by spaces
- Configuration options: Text value
- Default:
-
muc_filter_hash_ban_by_rejoinHash. Ban with hash activity- Recommended:
True - Configuration options:
True,False - Default:
True
- Recommended:
-
muc_filter_deny_hashInhibit input by hash- Recommended:
True - Configuration options:
True,False - Default:
False
- Recommended:
-
muc_filter_hash_ban_by_rejoin_timeoutHash. Timeout in seconds between connections for a hash ban- Recommended:
600 - Configuration options: Digital value
- Default:
600
- Recommended:
-
muc_filter_hash_action_currentHash. Action for already connected- Recommended:
kick - Configuration options:
off,kick,ban - Default:
off
- Recommended:
-
muc_filter_hash_action_timeHash. Turn-off time- Recommended:
1800 - Configuration options: Digital value
- Default:
1800
- Recommended:
-
muc_filter_hash_ban_server_by_rejoin_exceptionHash. An exception for the server ban- Recommended: enter the server through a space, from which it is guaranteed there will be no attacks
- Configuration options: Text value
- Default: empty
-
muc_filter_hash_ban_server_by_rejoin_rejoinsHash. Number of connections for the server ban- Recommended:
5 - Configuration options: Digital value
- Default:
5
- Recommended:
-
muc_filter_hash_timeHash. Verification period- Recommended:
20 - Configuration options: Digital value
- Default:
20
- Recommended:
-
muc_filter_hash_actionHash. Activity type with activity- Recommended:
whitelist - Configuration options:
whitelist,lock by hash - Default:
whitelist
- Recommended:
-
muc_filter_hash_eventsHash. Number of events- Recommended:
10 - Configuration options: Digital value
- Default:
10
- Recommended:
-
muc_filter_hash_ban_server_by_rejoinHash. Banning a server with hash activity- Recommended:
True - Configuration options:
True,False - Default:
True
- Recommended:
-
muc_filter_deny_hash_listList of banned hashes- Recommended: to enter the forbidden hashes through a blank. for example:
kkszQWHbfKh+UjiKFVp4yA== M5zTueiXDkT2Wg1M4IiTcQ== - Configuration options: Text box
- Default: empty
- Recommended: to enter the forbidden hashes through a blank. for example:
-
muc_filter_hash_ban_server_by_rejoin_timeoutHash. Timeout for connections from the server to the ban- Recommended:
60 - Configuration options: Digital value
- Default:
60
- Recommended:
-
muc_filter_repeat_prsBlocking of the pre -flood- Recommended:
kick - Configuration options:
off,kick,ban,mute - Default:
off
- Recommended:
-
muc_filter_reduce_spaces_msgSuppress multiple spaces in messages- Recommended:
True - Configuration options:
True,False - Default:
False
- Recommended:
-
muc_filter_newline_msgBlocking messages with new rows- Recommended:
replace - Configuration options:
off,kick,ban,mute,replace - Default:
off
- Recommended:
-
muc_filter_matchBlocking duplicates within messages- Recommended:
kick - Configuration options:
off,visitor,kick,ban,mute - Default:
off
- Recommended:
-
muc_filter_large_statusReaction to long statuses- Recommended:
truncate - Configuration options:
off,visitor,kick,ban,truncate,mute - Default:
off
- Recommended:
-
muc_filter_large_nickReaction to long nicknames- Recommended:
kick - Configuration options:
off,visitor,kick,ban,truncate,mute - Default:
off
- Recommended:
-
muc_filter_rejoin Blockingmultiple inputs- Recommended:
True - Configuration options:
True,False - Default:
False
- Recommended:
-
muc_filter_largeResponding to large messages- Recommended:
paste - Configuration options:
off,visitor,kick,ban,paste,truncate,mute - Default:
off
- Recommended:
-
muc_filter_newlineLocking statuses with new rows- Recommended:
kick - Configuration options:
off,kick,ban,mute,replace - Default:
off
- Recommended:
-
muc_filter_newline_msg_countNumber of new rows in the message to block- Recommended:
2 - Configuration options: Digital value
- Default:
2
- Recommended:
-
muc_filter_repeatMessage Repeat Lock- Recommended:
kick - Configuration options:
off,visitor,kick,ban,mute - Default:
off
- Recommended:
-
muc_filter_newline_countNumber of new lines in the presence for blocking- Recommended:
2 - Configuration options: Digital value
- Default:
2
- Recommended:
-
muc_filter_reduce_spaces_prsSuppress multiple spaces in the presence- Recommended:
True - Configuration options:
True,False - Default:
False
- Recommended:
-
muc_filter_adblock_prs_rawBlocking hidden advertising in the presence- Recommended:
off - Configuration options:
off,kick,ban,mute - Default:
off
- Recommended:
-
muc_filter_raw_percentPercent of short words for enabling hidden action checking- Recommended:
40 - Configuration options: Digital value
- Default:
40
- Recommended:
-
muc_filter_censor_rawCensor blocking of hidden mat- Recommended:
off - Configuration options:
off,visitor,kick,ban,mute - Default:
off
- Recommended:
-
muc_filter_censor_prs_rawBlocking by the censor of the hidden mat in the presence- Recommended:
off - Configuration options:
off,kick,ban,mute - Default:
off
- Recommended:
-
muc_filter_adblock_rawBlocking hidden advertising- Recommended:
off - Configuration options:
off,visitor,kick,ban,mute - Default:
off
- Recommended:
-
muc_filter_censorThe actions of the muc-censor- Recommended:
replace - Configuration options:
off,visitor,kick,ban,replace,mute - Default:
off
- Recommended:
-
muc_filter_adblock_prsBlocking of advertisements in prezens- Recommended:
replace - Configuration options:
off,kick,ban,replace,mute - Default:
off
- Recommended:
-
muc_filter_censor_prsCensor for preenses- Recommended:
replace - Configuration options:
off,kick,ban,replace,mute - Default:
off
- Recommended:
-
muc_filter_adblockAd blocking- Recommended:
replace - Configuration options:
off,visitor,kick,ban,replace,mute - Default:
off
- Recommended:
-
muc_filter_blacklist_rules_nickBlack list. Rules for nicks- Recommended: enter a regular expression to describe the black list. for example:
(^catru.*?|.*?russia.*?) - Configuration options: Text value
- Default: empty
- Recommended: enter a regular expression to describe the black list. for example:
-
muc_filter_whitelistWhitelist- Recommended:
False - Configuration options:
True,False - Default:
False
- Recommended:
-
muc_filter_blacklist_rules_jidThe black list. Rules for jid'ov- Recommended: enter a regular expression to describe the black list. for example:
(^catru.*?|.*?russia.*?) - Configuration options: Text value
- Default: empty
- Recommended: enter a regular expression to describe the black list. for example:
-
muc_filter_blacklistBlack list- Recommended:
True - Configuration options:
True,False - Default:
False
- Recommended:
-
muc_filter_caps_blackBlack list- Recommended: to enter through the blank unacceptable caps. the symbol "asterisk" means any symbols. for example:
*tkabber* - Configuration options: Text value
- Default: empty
- Recommended: to enter through the blank unacceptable caps. the symbol "asterisk" means any symbols. for example:
-
muc_filter_caps_listList type- Recommended:
black - Configuration options:
off,black,white - Default:
off
- Recommended:
-
muc_filter_caps_whiteWhitelist- Recommended: fit the allowable caps through the space. the symbol "asterisk" means any symbols. for example:
*tkabber* - Configuration options: Text value
- Default: empty
- Recommended: fit the allowable caps through the space. the symbol "asterisk" means any symbols. for example:
-
muc_filter_validate_caps_versionChecking the version in the capsule- Recommended:
True - Configuration options:
True,False - Default:
True
- Recommended:
-
muc_filter_validate_resourceResource check- Recommended:
True - Configuration options:
True,False - Default:
True
- Recommended:
-
muc_filter_validate_countThe number of incorrect elements- Recommended:
4 - Configuration options: Digital value
- Default:
4
- Recommended:
-
muc_filter_validate_ban_server_notify_jidJid for notifying about the server ban- Recommended: enter the jid of the conference
- Configuration options: Text value
- Default:
-
muc_filter_validate_caps_nodeChecking the node in the caps- Recommended:
True - Configuration options:
True,False - Default:
True
- Recommended:
-
muc_filter_validate_actionThe action for the incorrect elements- Recommended:
ban - Configuration options:
off,ban,ban server - Default:
ban
- Recommended:
-
muc_filter_validate_ban_server_exceptionBanning servers for a ban- Recommended: enter through a space server, from which it is guaranteed there will be no attacks
- Configuration options: Text value
- Default:
-
muc_filter_validate_nickChecking the nickname- Recommended:
True - Configuration options:
True,False - Default:
True
- Recommended:
-
muc_filter_validate_loginLogin verification- Recommended:
True - Configuration options:
True,False - Default:
True
- Recommended: