[COREblog-en] Preventing tbping spamming ?

sirloon sirloon at sirloon.net
Tue Mar 20 17:40:16 CET 2007


Hi,

I'm using CoreBlog2 0.9b for Plone, and I get spammed with trackback pinging. I've disable trackback in my entries (cannot add/hidden), but I'm still receiving mail notifications. So I dig a little and found a possible bug (at least annoyance), in the tbping python script:
  
  1. the script first sends mail notification
  2. then tries to add the trackback

I would have expected: try *then* notify. More, while adding trackback, the script isn't interrested into the return value of addTrackback2Entry(). As a result, event if the trackback is closed/hidden (that is, not open), the script won't be aware about this error (addTrackback2Entry() will return None), and will return a tbping_result with error code ok.

FWIW, attached is my customized tbping script.

Hope it helps,

Cheers,

Seb
-- 
Sébastien LELONG
sebastien.lelong[at]sirloon.net
http://www.sirloon.net
http://sirbot.org
"Syntactic sugar is just sugar, but it makes life tasty..."
:wq!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: customized.py
Type: text/x-python
Size: 2031 bytes
Desc: not available
Url : http://postaria.com/pipermail/coreblog-en/attachments/20070320/f0806af2/attachment.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://postaria.com/pipermail/coreblog-en/attachments/20070320/f0806af2/attachment.pgp 


More information about the COREblog-en mailing list