I was under the assumption that an anonymous user cannot send a presence stanza to a registered user without a 开发者_运维问答subscription. But using Ejabberd 2.1.2 this is happening.
How can i stop anonymous users from sending presence stanzas to registered users?
The answer is to use mod_filter. See
http://www.ejabberd.im/node/3956#comment-55515
and
http://www.ejabberd.im/mod_filter
Example #4 specifically shows how to prevent anon users from sending presence to regular members.
精彩评论