peteg's blog - noise - blogging - writeback


/noise/blogging/writeback | Link

I got a few doses of blog clap, and being bored and idle I put some effort into tidying up Blosxom's venerable writeback plugin and adding Captcha support. (I don't believe in the centralised blacklisting epitomised by akismet, it's too readily abused.) I get the impression that somebody in ee land is manually spamming, so I might need a plan B. My other concern is that the Captcha times out, meaning that if you take longer than a day to go from page load to post-comment it will bugger you up. Also the interaction with the back button is less than ideal.

You'll need to instruct CPAN to install Authen::Captcha (or use your package manager to do it for you, or remove those bits of code). It should be easy to adapt it to use another Captcha library. I'm thinking about constructing a logic-puzzle one.

Part way through I realised just how fragile Blosxom is (no non-word characters in directory names? — and I was going to call this writeback++!) and how badly coded most plugins are (let's do everything ourselves! date functions, interpolation, file-backed databases, ...). If my perl was more fluent I'd have a shot at linting it all.