On 6/12/06, <b class="gmail_sendername">Ben Osman</b> &lt;<a href="mailto:ben.nospam@smoothify.com">ben.nospam@smoothify.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Atsushi Shibata wrote:<br>&gt; Hi :-).<br>&gt;<br>&gt; How about customizing &quot;portal_skins/coreblog2/tbping&quot; ?<br><br>&gt; Put floowing code after if block, so you can avoid trackback including<br>&gt; &quot;buzz words&quot; string.
<br>&gt;<br>&gt; if excerpt.lower().find(&quot;buzz words&quot;) == -1:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return<br>&gt;<br>&gt; If you use Python 2.3, you can also write like this.<br>&gt;<br>&gt; if &quot;buzz words&quot; in excerpt.lower():
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return<br>&gt;<br>&gt; I think you should learn more about Python ;-).<br>&gt;<br>&gt; Have fun :-)<br>&gt;<br><br>I've been getting spam too - so i used Atsushi's suggestion and extended<br>it. Ideally should load the spamwords list from another file.
<br><br>You should add more words to the list (do a search for something like<br>trackback spam word list)<br><br>In &quot;portal_skins/coreblog2/tbping&quot; add following code after<br>&quot;excerpt = cbtool.convert_charcode
(excerpt)&quot;:<br><br>spamWords = [<br>'casino',<br>'prilosec',<br>'viagra',<br>]<br><br>words = excerpt.split(' ')<br><br>for word in words:<br>&nbsp;&nbsp; if word.lower() in spamWords:<br>&nbsp;&nbsp;&nbsp;&nbsp; return</blockquote></div><br>This (plus mod_security for apache) works pretty effectively,&nbsp; Unfortunately, there seems to be a never-ended supply of spammable words (I don't even know what &quot;retin&quot; is ;).&nbsp; I'm back to requiring authentication for trackbacks, effecitvely turning them off.&nbsp; I think moderation is the answer, combined with preventitive measures.
<br><br>Just me .02,<br><br>nick<br clear="all"><br>-- <br>Nick Owen<br>WiKID Systems, Inc.<br>404.962.8983 (desk)<br>404.542.9453 (cell)<br><a href="http://www.wikidsystems.com">http://www.wikidsystems.com</a><br>At last, two-factor authentication, without the hassle factor
<br>Now open source: <a href="http://sourceforge.net/projects/wikid-twofactor/">http://sourceforge.net/projects/wikid-twofactor/</a>