Comparison

mod_firewall/scripts/spam-blocking.pfw @ 4148:34a2e8796cff

mod_firewall: Update chain name for consistency We keep the old JUMP CHAIN for compat, and in case we add internal content checking rules in the future.
author Matthew Wild <mwild1@gmail.com>
date Mon, 21 Sep 2020 15:45:53 +0100
parent 4128:879955a32a37
child 4149:bb60db2b2cd1
comparison
equal deleted inserted replaced
4147:3a06dea21ea1 4148:34a2e8796cff
20 # ::user/spam_check_message_custom 20 # ::user/spam_check_message_custom
21 # Apply additional rules to messages from strangers, aiming to 21 # Apply additional rules to messages from strangers, aiming to
22 # PASS stanzas that are not spam and jump to ::user/spam_reject 22 # PASS stanzas that are not spam and jump to ::user/spam_reject
23 # for stanzas that are considered spam. 23 # for stanzas that are considered spam.
24 # 24 #
25 # ::user/spam_check_message_content 25 # ::user/spam_check_message_content_custom
26 # Apply additional rules to messages that may be spam, based on 26 # Apply additional rules to messages that may be spam, based on
27 # message content rules. These may contain more intensive rules, 27 # message content rules. These may contain more intensive rules,
28 # so are executed after all other checks. Rules should jump to 28 # so are executed after all other checks. Rules should jump to
29 # ::user/spam_reject if a message is considered spam. 29 # ::user/spam_reject if a message is considered spam.
30 # 30 #
100 # Non-chat message types often generate pop-ups in clients, 100 # Non-chat message types often generate pop-ups in clients,
101 # so we won't accept them from strangers 101 # so we won't accept them from strangers
102 NOT TYPE: chat 102 NOT TYPE: chat
103 JUMP CHAIN=user/spam_reject 103 JUMP CHAIN=user/spam_reject
104 104
105 JUMP CHAIN=user/spam_check_message_content
106
105 # This chain can be used by other scripts 107 # This chain can be used by other scripts
106 # and modules that analyze message content 108 # and modules that analyze message content
107 JUMP CHAIN=user/spam_check_message_content 109 JUMP CHAIN=user/spam_check_message_content_custom
108 110
109 ################################################################## 111 ##################################################################
110 112
111 #### Rules for presence stanzas ################################## 113 #### Rules for presence stanzas ##################################
112 ::user/spam_check_presence 114 ::user/spam_check_presence