Mercurial > prosody-modules
comparison mod_firewall/scripts/spam-blocklists.pfw @ 5532:d84757f9adcb
mod_firewall: scripts: spam-blocklists: Check sender and inviter of MUC invitations against blocklist
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 08 Jun 2023 11:30:39 +0100 |
parents | bebc5740fc16 |
children |
comparison
equal
deleted
inserted
replaced
5531:af2778f4ee29 | 5532:d84757f9adcb |
---|---|
6 | 6 |
7 ::user/spam_handle_unknown_custom | 7 ::user/spam_handle_unknown_custom |
8 | 8 |
9 CHECK LIST: blocklist contains $<@from|host> | 9 CHECK LIST: blocklist contains $<@from|host> |
10 BOUNCE=policy-violation (Your server is blocked due to spam) | 10 BOUNCE=policy-violation (Your server is blocked due to spam) |
11 | |
12 ::user/spam_check_muc_invite_custom | |
13 | |
14 # Check the server we received the invitation from | |
15 CHECK LIST: blocklist contains $<@from|host> | |
16 BOUNCE=policy-violation (Your server is blocked due to spam) | |
17 | |
18 # Check the inviter's JID against the blocklist, too | |
19 CHECK LIST: blocklist contains $<{http://jabber.org/protocol/muc#user}x/invite@from|host> | |
20 BOUNCE=policy-violation (Your server is blocked due to spam) |