Welcome to Squishdot Websites Squishdot How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Spam Filtering for Squishdot with Akismet
Squishdot Posted by Chris Withers on Wednesday June 11, 11:37PM, 2008
from the maybe-this-will-work dept.
I've just finished a recipe to get filtering of posts to Squishdot with Akismet working. Read on if you're still running Squishdot Sites and would like to do the same...

  1. Get yourself a WordPress.com blog. You'll need this for the API Key, which is included in the sign-up mail, in order to use Akismet
  2. Make akismet.py available on your python path. This can be done by either putting it in the lib/python of your INSTANCE_HOME or by putting it in the site-packages of the python installation you use to run zope.
  3. Put the antispam.py attached to this post in the Extensions directory of your INSTANCE_HOME.
  4. Add an external method with an id of 'akismet', module of 'antispam' and method of 'check' to your Squishdot Site.
  5. Add the following code snippet to the bottom of your Squishdot Site's validatePostings python script:
    spam = container.akismet('your-wordpress-key','http://yourblog.wordpress.com/',raw)
    if spam:
        return Processed,'Looks like spam to me!'
    
    return Processed,None
    

Please let me know how you get on!

Why Zope popup login when I click "Add Postings" in Squishdot | Spam from Avangate.com?  >

 

Related Links
  • Articles on Squishdot
  • Also by Chris Withers
  • Contact author
  • File Attachment
  • Click to download attachment antispam.py
    0KB (986 bytes)

  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Re: Spam Filtering for Squishdot with Akismet
    by Víctor Martínez on Wednesday August 13, 04:41PM, 2008
    I implemented on our site last week, and have see the comment spam decrease drastically, we had a script to delete them but mostly consisted on open a browser and run a macro to delete all pending moderation.

    Akismet has let pass like 6 or less comments that are truly spam... but 6 in a week are better than 6 every hour.

    Anyway I been thinking on implement a mathcaptcha but my python skills currently are 0, so I need first to undestand it and then test my idea... Chris thanks a lot.
    [ Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.