Software /
code /
prosody-modules
File
mod_firewall/scripts/spam-blocklists.pfw @ 5993:a0d77b427d50
mod_rest: Wrap mod_tokenauth errors
In some cases of expired or invalid tokens the error from
mod_tokenauth.get_token_session() was returned bare with status 200
instead of via the error formatting handler.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Sep 2024 21:10:45 +0200 |
parent | 5532:d84757f9adcb |
line wrap: on
line source
# This script depends on spam-blocking.pfw also being loaded # Any traffic that is not explicitly blocked or allowed by other # rules will be checked against the JabberSPAM server blocklist %LIST blocklist: https://cdn.jsdelivr.net/gh/jabberspam/blacklist/blacklist.txt ::user/spam_handle_unknown_custom CHECK LIST: blocklist contains $<@from|host> BOUNCE=policy-violation (Your server is blocked due to spam) ::user/spam_check_muc_invite_custom # Check the server we received the invitation from CHECK LIST: blocklist contains $<@from|host> BOUNCE=policy-violation (Your server is blocked due to spam) # Check the inviter's JID against the blocklist, too CHECK LIST: blocklist contains $<{http://jabber.org/protocol/muc#user}x/invite@from|host> BOUNCE=policy-violation (Your server is blocked due to spam)