On 6/12/06, <b class="gmail_sendername">Ben Osman</b> <<a href="mailto:ben.nospam@smoothify.com">ben.nospam@smoothify.com</a>> 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>> Hi :-).<br>><br>> How about customizing "portal_skins/coreblog2/tbping" ?<br><br>> Put floowing code after if block, so you can avoid trackback including<br>> "buzz words" string.
<br>><br>> if excerpt.lower().find("buzz words") == -1:<br>> return<br>><br>> If you use Python 2.3, you can also write like this.<br>><br>> if "buzz words" in excerpt.lower():
<br>> return<br>><br>> I think you should learn more about Python ;-).<br>><br>> Have fun :-)<br>><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 "portal_skins/coreblog2/tbping" add following code after<br>"excerpt = cbtool.convert_charcode
(excerpt)":<br><br>spamWords = [<br>'casino',<br>'prilosec',<br>'viagra',<br>]<br><br>words = excerpt.split(' ')<br><br>for word in words:<br> if word.lower() in spamWords:<br> return</blockquote></div><br>This (plus mod_security for apache) works pretty effectively, Unfortunately, there seems to be a never-ended supply of spammable words (I don't even know what "retin" is ;). I'm back to requiring authentication for trackbacks, effecitvely turning them off. 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>