Mercurial > prosody-modules
diff mod_firewall/README.markdown @ 2036:7ba6ed553c93
mod_firewall/conditions: Add FROM_EXACTLY and TO_EXACTLY
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 01 Feb 2016 20:24:51 +0000 |
parents | ce991c678370 |
children | 2ec7c0b8a371 |
line wrap: on
line diff
--- a/mod_firewall/README.markdown Sun Jan 31 12:38:51 2016 +0100 +++ b/mod_firewall/README.markdown Mon Feb 01 20:24:51 2016 +0000 @@ -184,6 +184,16 @@ its own, and does **not** match 'user@example.com'. To perform domain whitelists or blacklists, use Zones. + Condition Matches + ----------- ------------------------------------------------------- + `FROM_EXACTLY` The JID in the 'from' attribute exactly matches the given JID + `TO_EXACTLY` The JID in the 'to' attribute exactly matches the given JID + +These additional conditions do not support pattern matching, but are +useful to match the exact to/from address on a stanza. For example, if +no resource is specified then only bare JIDs will be matched. TO and FROM +match all resources if no resource is specified to match. + **Note:** Some chains execute before Prosody has performed any normalisation or validity checks on the to/from JIDs on an incoming stanza. It is not advisable to perform access control or similar rules