Mercurial > prosody-modules
comparison mod_firewall/scripts/spam-blocking.pfw @ 5533:09311a8a3cfa
mod_firewall: spam-blocking.pfw: Remove requirement for invites to have no body
Some clients (e.g. Gajim) send a body, which I guess makes sense.
The bare JID sender check should already make it hard to bypass this (i.e.
a normal client putting muc#user into a normal chat message shouldn't bypass
the usual message filters).
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 08 Jun 2023 12:20:34 +0100 |
| parents | af2778f4ee29 |
| children |
comparison
equal
deleted
inserted
replaced
| 5532:d84757f9adcb | 5533:09311a8a3cfa |
|---|---|
| 98 PASS. | 98 PASS. |
| 99 | 99 |
| 100 # Mediated MUC invitations are naturally from 'strangers' and have special | 100 # Mediated MUC invitations are naturally from 'strangers' and have special |
| 101 # handling. We lean towards accepting them, unless overridden by custom rules. | 101 # handling. We lean towards accepting them, unless overridden by custom rules. |
| 102 NOT FROM FULL JID? | 102 NOT FROM FULL JID? |
| 103 NOT INSPECT: body | |
| 104 INSPECT: {http://jabber.org/protocol/muc#user}x/invite | 103 INSPECT: {http://jabber.org/protocol/muc#user}x/invite |
| 105 JUMP CHAIN=user/spam_check_muc_invite | 104 JUMP CHAIN=user/spam_check_muc_invite |
| 106 | 105 |
| 107 # Non-chat message types often generate pop-ups in clients, | 106 # Non-chat message types often generate pop-ups in clients, |
| 108 # so we won't accept them from strangers | 107 # so we won't accept them from strangers |
