How do I only allow contacts who are on my roster list to send me messages? Is there any XEP responsible to do that? Or will I need to do this client-side?
相关问题
- Get Offline Messages From XMPP Without Becoming On
- How to implement “last seen at” functionality (lik
- smack api get all public rooms on openfire server
- ejabberd MUC message history
- How do I set a Jabber status with python-xmpp?
相关文章
- Xmpp chat invisible presence
- Jabber.net on Unity/Android error (No JNI_OnLoad f
- Sending inline images using Smack XMPP
-
How to join multiple rooms by just sending one
- How to get offline message of group chat from Open
- XMPP events on Android
- How to create an account from Smack 4.1
- XMPPFramework - Upload Profile or Avatar Image
Yes, OpenFire supports XEP-0016: Privacy Lists (see this question), which can be used to block stanzas according to various criteria.
You can't explicitly block stanzas for contacts not in your roster, but you can block by subscription status
none
, which can more or less accomplish the same goal. You could send something like this:This creates a privacy list called
message-sub-example
, containing a rule to block any messages from contacts with subscription typenone
, including contacts not in the roster. For this list to take effect, you need to make it the active list: