[COREblog-en] Trackback-Spam
Luistxo Fernandez
LFernandez at codesyntax.com
Wed Feb 2 15:57:16 CET 2005
I wrote:
>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:
little improvement over the script: on the parameter list put spammer='xxx'
and the code as follows:
for i in range(1, 300):
try:
ent = context.get_entry(i)
for com in ent.trackback_list():
if com.title.startswith (spammer):
ent.deleteTrackback(int(com.id))
print "deleted %s's comment" % com.title
except:
pass
print "Done."
return printed
Now we have a variable called spammer. Called like
eibar.org/blogak/sarasua/scriptPLACEDhere?spammer=texas
or eibar.org/blogak/sarasua/scriptPLACEDhere?spammer=cybersex
we may reuse the script depending on the spammer of the day.
However, as Frank notes, a more robust defense against spam should be
embedded in the product.
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