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'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'm doing wrong in blocking a user.<br>
--<br>
SEND:<br>
-----------------------------------<br>
<?xml version='1.0' encoding='UTF-8'?><br>
-----------------------------------<br>
SEND:<br>
-----------------------------------<br>
<stream:stream xmlns="jabber:client"
xmlns:stream="<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>" to="<a href="http://bhdhcp07392.com">bhdhcp07392.com</a>"
id="71752121033"><br>
-----------------------------------<br>
<br>
RECV [186]:<br>
------------------------------------<br>
'<?xml version='1.0'?><stream:stream
xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>' xmlns='jabber:client'
from='<a href="http://bhdhcp07392.com">bhdhcp07392.com</a>'
id='oxze3k4gtmnf6uhiyf7vgyo5squvgvt4ssjvcob6'>'<br>
------------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
<iq type="get" id="471041488848"> <query xmlns="jabber:iq:auth"> <username>testlm123</username><br>
</query><br>
</iq><br>
<br>
-----------------------------------<br>
<br>
RECV [209]:<br>
------------------------------------<br>
'<iq xmlns='jabber:client' id='471041488848'
type='result'><query
xmlns='jabber:iq:auth'><username>testlm123</username><resource/><password/><digest/><sequence>499</sequence><token>45DC6B40</token></query></iq>'
<br>
------------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
<iq type="set" id="204815237725"> <query xmlns="jabber:iq:auth"> <username>testlm123</username><br>
<digest>aed453e807bf86a8fac009d56013792e7259c11f</digest><br>
<resource>hi</resource><br>
</query><br>
</iq><br>
<br>
-----------------------------------<br>
<br>
RECV [59]:<br>
------------------------------------<br>
'<iq xmlns='jabber:client' id='204815237725' type='result'/>'<br>
------------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
<presence id="141384666981"></presence><br>
<br>
-----------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
<message to="<a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a>" id="141393667101"> <body>List</body><br>
</message><br>
<br>
-----------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
<iq type="set" id="141902667241"> <query xmlns="jabber:iq:privacy"> <active name="BlockedList"></active><br>
</query><br>
</iq><br>
<br>
-----------------------------------<br>
<br>
RECV [59]:<br>
------------------------------------<br>
'<iq xmlns='jabber:client' id='141902667241' type='result'/>'<br>
------------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
<iq type="set" id="6562366909"> <query
xmlns="jabber:iq:privacy"> <list name="BlockedList"> <item
order="23" action="deny" value="<a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a>"
type="jid" jid="<a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a>" name="Ganesh
Kundapur"> <message></message><br>
</item><br>
</list><br>
</query><br>
</iq><br>
<br>
-----------------------------------<br>
<br>
SEND:<br>
-----------------------------------<br>
<iq type="get" id="6607167262"> <query xmlns="jabber:iq:privacy"> <list name="BlockedList"></list><br>
</query><br>
</iq><br>
<br>
-----------------------------------<br>
<br>
RECV [251]:<br>
------------------------------------<br>
'<presence xmlns='jabber:client' to='<a href="http://testlm123@bhdhcp07392.com/hi">testlm123@bhdhcp07392.com/hi</a>'
from='<a href="http://ganesh.kundapur@bhdhcp07392.com/Home'">ganesh.kundapur@bhdhcp07392.com/Home'</a>><x
xmlns='jabber:x:delay' from='<a href="http://ganesh.kundapur@bhdhcp07392.com/Home">ganesh.kundapur@bhdhcp07392.com/Home</a>'
stamp='20070301T20:37:52'/></presence>'<br>
------------------------------------<br>
<br>
RECV [239]:<br>
------------------------------------<br>
'<presence xmlns='jabber:client' to='<a href="http://testlm123@bhdhcp07392.com/hi">testlm123@bhdhcp07392.com/hi</a>'
from='<a href="http://testlm123@bhdhcp07392.com/Gaim'">testlm123@bhdhcp07392.com/Gaim'</a>><x xmlns='jabber:x:delay'
from='<a href="http://testlm123@bhdhcp07392.com/Gaim">testlm123@bhdhcp07392.com/Gaim</a>'
stamp='20070301T19:56:56'/></presence>'<br>
------------------------------------<br>
<br>
RECV [57]:<br>
------------------------------------<br>
'<iq xmlns='jabber:client' id='6562366909' type='result'/>'<br>
------------------------------------<br>
<br>
RECV [244]:<br>
------------------------------------<br>
'<iq xmlns='jabber:client' id='6607167262'
type='result'><query xmlns='jabber:iq:privacy'><list
name='BlockedList'><item order='23' action='deny'
value='<a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a>'
type='jid'><message/></item></list></query></iq>'<br>
------------------------------------<br>
Blocked user: <a href="mailto:ganesh.kundapur@bhdhcp07392.com">ganesh.kundapur@bhdhcp07392.com</a><br>
<br>
SEND:<br>
-----------------------------------<br>
</stream:stream><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 & Regards,<br>
Ganesh<br>
<br><div><span class="gmail_quote">On 3/1/07, <b class="gmail_sendername">Remko Tronçon</b> <<a href="mailto:remko@el-tramo.be">remko@el-tramo.be</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> i'm extremely sorry for that.I'm getting it now, but the problem is that i<br>> can send/recieve messages<br>> even after blocking.<br><br>RFC 3921 Section 10.4.<br><br>Remko<br></blockquote></div><br>