I referred RFC 3921 Section 10, 10.4 and 10.9 for blocking user.<br>
Based on my understanding from the RFC, i sent the fallowing stanzas to
block the user based on JID. I&#39;m getting blocked user on query, <br>
but stil blocked user can send/receive messages ( I verified by sending a message by using gaim ).<br>
Please correct me if i&#39;m doing wrong in blocking a user.<br>
--<br>
SEND:<br>
-----------------------------------<br>
&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;<br>
-----------------------------------<br>
SEND:<br>
-----------------------------------<br>
&lt;stream:stream xmlns=&quot;jabber:client&quot;
xmlns:stream=&quot;<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>&quot; to=&quot;<a href="http://bhdhcp07392.com">bhdhcp07392.com</a>&quot;
id=&quot;71752121033&quot;&gt;<br>
-----------------------------------<br>
<br>
RECV [186]:<br>
------------------------------------<br>
&#39;&lt;?xml version=&#39;1.0&#39;?&gt;&lt;stream:stream
xmlns:stream=&#39;<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>&#39; xmlns=&#39;jabber:client&#39;
from=&#39;<a href="http://bhdhcp07392.com">bhdhcp07392.com</a>&#39;
id=&#39;oxze3k4gtmnf6uhiyf7vgyo5squvgvt4ssjvcob6&#39;&gt;&#39;<br>
------------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
&lt;iq type=&quot;get&quot; id=&quot;471041488848&quot;&gt; &lt;query xmlns=&quot;jabber:iq:auth&quot;&gt; &lt;username&gt;testlm123&lt;/username&gt;<br>
&lt;/query&gt;<br>
&lt;/iq&gt;<br>
<br>
-----------------------------------<br>
<br>
RECV [209]:<br>
------------------------------------<br>
&#39;&lt;iq xmlns=&#39;jabber:client&#39; id=&#39;471041488848&#39;
type=&#39;result&#39;&gt;&lt;query
xmlns=&#39;jabber:iq:auth&#39;&gt;&lt;username&gt;testlm123&lt;/username&gt;&lt;resource/&gt;&lt;password/&gt;&lt;digest/&gt;&lt;sequence&gt;499&lt;/sequence&gt;&lt;token&gt;45DC6B40&lt;/token&gt;&lt;/query&gt;&lt;/iq&gt;&#39;
<br>
------------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
&lt;iq type=&quot;set&quot; id=&quot;204815237725&quot;&gt; &lt;query xmlns=&quot;jabber:iq:auth&quot;&gt; &lt;username&gt;testlm123&lt;/username&gt;<br>
&nbsp;&lt;digest&gt;aed453e807bf86a8fac009d56013792e7259c11f&lt;/digest&gt;<br>
&nbsp;&lt;resource&gt;hi&lt;/resource&gt;<br>
&lt;/query&gt;<br>
&lt;/iq&gt;<br>
<br>
-----------------------------------<br>
<br>
RECV [59]:<br>
------------------------------------<br>
&#39;&lt;iq xmlns=&#39;jabber:client&#39; id=&#39;204815237725&#39; type=&#39;result&#39;/&gt;&#39;<br>
------------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
&lt;presence id=&quot;141384666981&quot;&gt;&lt;/presence&gt;<br>
<br>
-----------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
&lt;message to=&quot;<a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a>&quot; id=&quot;141393667101&quot;&gt; &lt;body&gt;List&lt;/body&gt;<br>
&lt;/message&gt;<br>
<br>
-----------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
&lt;iq type=&quot;set&quot; id=&quot;141902667241&quot;&gt; &lt;query xmlns=&quot;jabber:iq:privacy&quot;&gt; &lt;active name=&quot;BlockedList&quot;&gt;&lt;/active&gt;<br>
&lt;/query&gt;<br>
&lt;/iq&gt;<br>
<br>
-----------------------------------<br>
<br>
RECV [59]:<br>
------------------------------------<br>
&#39;&lt;iq xmlns=&#39;jabber:client&#39; id=&#39;141902667241&#39; type=&#39;result&#39;/&gt;&#39;<br>
------------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
&lt;iq type=&quot;set&quot; id=&quot;6562366909&quot;&gt; &lt;query
xmlns=&quot;jabber:iq:privacy&quot;&gt; &lt;list name=&quot;BlockedList&quot;&gt; &lt;item
order=&quot;23&quot; action=&quot;deny&quot; value=&quot;<a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a>&quot;
type=&quot;jid&quot; jid=&quot;<a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a>&quot; name=&quot;Ganesh
Kundapur&quot;&gt; &lt;message&gt;&lt;/message&gt;<br>
&lt;/item&gt;<br>
&lt;/list&gt;<br>
&lt;/query&gt;<br>
&lt;/iq&gt;<br>
<br>
-----------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
&lt;iq type=&quot;get&quot; id=&quot;6607167262&quot;&gt; &lt;query xmlns=&quot;jabber:iq:privacy&quot;&gt; &lt;list name=&quot;BlockedList&quot;&gt;&lt;/list&gt;<br>
&lt;/query&gt;<br>
&lt;/iq&gt;<br>
<br>
-----------------------------------<br>
<br>
RECV [251]:<br>
------------------------------------<br>
&#39;&lt;presence xmlns=&#39;jabber:client&#39; to=&#39;<a href="http://testlm123@bhdhcp07392.com/hi">testlm123@bhdhcp07392.com/hi</a>&#39;
from=&#39;<a href="http://ganesh.kundapur@bhdhcp07392.com/Home&#39;">ganesh.kundapur@bhdhcp07392.com/Home&#39;</a>&gt;&lt;x
xmlns=&#39;jabber:x:delay&#39; from=&#39;<a href="http://ganesh.kundapur@bhdhcp07392.com/Home">ganesh.kundapur@bhdhcp07392.com/Home</a>&#39;
stamp=&#39;20070301T20:37:52&#39;/&gt;&lt;/presence&gt;&#39;<br>
------------------------------------<br>
<br>
RECV [239]:<br>
------------------------------------<br>
&#39;&lt;presence xmlns=&#39;jabber:client&#39; to=&#39;<a href="http://testlm123@bhdhcp07392.com/hi">testlm123@bhdhcp07392.com/hi</a>&#39;
from=&#39;<a href="http://testlm123@bhdhcp07392.com/Gaim&#39;">testlm123@bhdhcp07392.com/Gaim&#39;</a>&gt;&lt;x xmlns=&#39;jabber:x:delay&#39;
from=&#39;<a href="http://testlm123@bhdhcp07392.com/Gaim">testlm123@bhdhcp07392.com/Gaim</a>&#39;
stamp=&#39;20070301T19:56:56&#39;/&gt;&lt;/presence&gt;&#39;<br>
------------------------------------<br>
<br>
RECV [57]:<br>
------------------------------------<br>
&#39;&lt;iq xmlns=&#39;jabber:client&#39; id=&#39;6562366909&#39; type=&#39;result&#39;/&gt;&#39;<br>
------------------------------------<br>
<br>
RECV [244]:<br>
------------------------------------<br>
&#39;&lt;iq xmlns=&#39;jabber:client&#39; id=&#39;6607167262&#39;
type=&#39;result&#39;&gt;&lt;query xmlns=&#39;jabber:iq:privacy&#39;&gt;&lt;list
name=&#39;BlockedList&#39;&gt;&lt;item order=&#39;23&#39; action=&#39;deny&#39;
value=&#39;<a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a>&#39;
type=&#39;jid&#39;&gt;&lt;message/&gt;&lt;/item&gt;&lt;/list&gt;&lt;/query&gt;&lt;/iq&gt;&#39;<br>
------------------------------------<br>
Blocked user: <a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a><br>
<br>
SEND:<br>
-----------------------------------<br>
&lt;/stream:stream&gt;<br>
-----------------------------------<br>
--<br><br>
Even i tried blocking a user without the Active List based on RFC section 10.9, still client<br>
can recieve messages from the blocked user.<br>
<br>
Thanks &amp; Regards,<br>
Ganesh<br>
<br><div><span class="gmail_quote">On 3/1/07, <b class="gmail_sendername">Remko Tronšon</b> &lt;<a href="mailto:remko@el-tramo.be">remko@el-tramo.be</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; i&#39;m extremely sorry for that.I&#39;m getting it now, but the problem is that i<br>&gt; can send/recieve messages<br>&gt; even after blocking.<br><br>RFC 3921 Section 10.4.<br><br>Remko<br></blockquote></div><br>