[COREblog-en] Trackback-Spam

Luistxo Fernandez LFernandez at codesyntax.com
Wed Feb 2 08:34:57 CET 2005


After the exchange of tips here yesterday (thanks to all), we produced our 
own python script to be run in our www.eibar.org site:

  for i in range(1, 300):
     try:
        ent = context.get_entry(i)
        for com in ent.trackback_list():
           if com.title.startswith ("texas") o com.title.startswith ("online"):
              ent.deleteTrackback(int(com.id))
              print "deleted %s's comment" % com.title
     except:
         pass
  print "Done."
  return printed

Being Eibar.org a community of coreblogs we placed that at the root like 
www.eibar.org/scriptPLACEDhere and our main blog's evil trackbacks were 
deleted (as far as you have less than 300 entries...), but it also worked 
with any blog placed below, without copying the script, like 
www.eibar.org/blogak/teknosexua/scriptPLACEDhere or 
www.eibar.org/blogak/sarasua/scriptPLACEDhere

scriptPLACEDhere is just a dummy name. We used another ID for the script.



Luistxo Fernandez
LFernandez at codesyntax.com - 675 706 553

CodeSyntax - http://www.codesyntax.com/
Azitaingo Industrialdea 3K
E-20600 EIBAR
Tel: (+34) 943 82 17 80





More information about the COREblog-en mailing list