Skip to main content

Akismet SPAM blocking WSGI middleware.

Project description

Validates form submissions against the Akismet service to verify that they are not spam.

Simple usage example:

import cgi
from wsgiakismet import akismet

# Wordpress API Key and website name are required arguments
@akisimet('3489012ab121', 'http://blog.example.com/')
def app(env, start_response):
     usersub = cgi.parse(fp=env['wsgi.input'], environ=env)
     start_response('200 OK', [('Content-type', 'text/plain')])
     return ['Comment is %s' % usersub['comment'][0]]

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page