ejabberd - Comments for "Is content filtering performed in a C2S or S2S context or both?" https://www.ejabberd.im/node/4329 en paddyjoesoap wrote: Is it https://www.ejabberd.im/node/4329#comment-56673 <div class="quote-msg"> <div class="quote-author"><em>paddyjoesoap</em> wrote:</div> <p>Is it possible to prevent incoming messages or outgoing messages using content filtering? There is as I understand it some support for keyword filtering. I am unsure if the filer works in the context of c2s and/or s2s.</p></div> <p>You can write a module that adds a hook to ejabberd filter_packet. That module would receive a function call for every stanza routed by ejabberd_router. Your function parses the stanza as he pleases, and returns either the same stanza, a modified stanza, or 'drop'.</p> <p>Example modules that use filter_packet:<br /> <a href="http://www.ejabberd.im/mod_filter" title="http://www.ejabberd.im/mod_filter">http://www.ejabberd.im/mod_filter</a><br /> <noindex><a href="http://www.dtek.chalmers.se/~henoch/mod_shit.erl" title="http://www.dtek.chalmers.se/~henoch/mod_shit.erl" rel="nofollow" >http://www.dtek.chalmers.se/~henoch/mod_shit.erl</a></noindex></p> Wed, 29 Sep 2010 08:30:29 +0000 mfoss comment 56673 at https://www.ejabberd.im