comparison mod_firewall/README.markdown @ 5530:8226ac08484e

mod_firewall: Add 'FROM FULL JID?' condition
author Matthew Wild <mwild1@gmail.com>
date Thu, 08 Jun 2023 11:28:06 +0100
parents a8f49bf7f8e6
children 0ac4545cb4f9
comparison
equal deleted inserted replaced
5529:a8f49bf7f8e6 5530:8226ac08484e
253 Similarly, a message stanza with no type is equivalent to one of type 253 Similarly, a message stanza with no type is equivalent to one of type
254 'normal'. mod\_firewall handles these cases for you automatically. 254 'normal'. mod\_firewall handles these cases for you automatically.
255 255
256 ### Sender/recipient matching 256 ### Sender/recipient matching
257 257
258 Condition Matches 258 Condition Matches
259 ------------- ------------------------------------------------------- 259 --------------- -------------------------------------------------------
260 `FROM` The JID in the 'from' attribute matches the given JID. 260 `FROM` The JID in the 'from' attribute matches the given JID.
261 `TO` The JID in the 'to' attribute matches the given JID. 261 `TO` The JID in the 'to' attribute matches the given JID.
262 `TO SELF` The stanza is sent by any of a user's resources to their own bare JID. 262 `TO SELF` The stanza is sent by any of a user's resources to their own bare JID.
263 `TO FULL JID` The stanza is addressed to a **valid** full JID on the local server (full JIDs include a resource at the end, and only exist for the lifetime of a single session, therefore the recipient **must be online**, or this check will not match). 263 `TO FULL JID` The stanza is addressed to a **valid** full JID on the local server (full JIDs include a resource at the end, and only exist for the lifetime of a single session, therefore the recipient **must be online**, or this check will not match).
264 `FROM FULL JID` The stanza is from a full JID (unlike `TO FULL JID` this check is on the format of the JID only).
264 265
265 The TO and FROM conditions both accept wildcards in the JID when it is 266 The TO and FROM conditions both accept wildcards in the JID when it is
266 enclosed in angle brackets ('\<...\>'). For example: 267 enclosed in angle brackets ('\<...\>'). For example:
267 268
268 # All users at example.com 269 # All users at example.com