Comparison

mod_firewall/scripts/spam-blocking.pfw @ 2557:56db2ab3b853

mod_firewall: spam-blocking.pfw: Allow unsubscribe/unsubscribed presence
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Feb 2017 14:26:19 +0000
parent 2556:cc01a5bfcf3b
child 2565:fc53165d8afe
comparison
equal deleted inserted replaced
2556:cc01a5bfcf3b 2557:56db2ab3b853
36 JUMP CHAIN=user/check_spam_message_content 36 JUMP CHAIN=user/check_spam_message_content
37 37
38 #### Rules for presence stanzas #### 38 #### Rules for presence stanzas ####
39 ::user/check_spam_presence 39 ::user/check_spam_presence
40 40
41 # These may be received if rosters get out of sync, and are harmless
42 # because they will not be routed to the client unless necessary
43 TYPE: unsubscribe|unsubscribed
44 PASS.
45
41 # We don't want to receive presence from random strangers, 46 # We don't want to receive presence from random strangers,
42 # but still allow subscription requests 47 # but still allow subscription requests
43 NOT TYPE: subscribe 48 NOT TYPE: subscribe
44 DROP. 49 DROP.
45 50