Skip to main content

django-comments-spamfighter

This Django application contributes a moderation class to Django’s comment app that provides:

  • Check incoming comments against the Akismet spam database and either block them directly or add them to the moderation queue.

  • Check incoming comments against pre-defined keywords and either block them directly or add these them to the moderation queue. These keywords can be simple strings or powerful regular expressions.

The documentation is online:

http://docs.mahner.org/django-comments-spamfighter/

Quick installation

Here is a quick installation guide for users who are familiar with comment moderation:

from comments_spamfighter.moderation import SpamFighterModerator

class EntryModerator(SpamFighterModerator):

    # Regular options by django's contributed CommentModerator

    auto_moderate_field = 'created'
    email_notification = True


    # Spam fighter options

    # Check with Akismet for spam
    akismet_check = False

    # If Akismet marks this message as spam, delete it instantly (False) or
    # add it the comment the moderation queue (True). Default is True.
    akismet_check_moderate = True

    # Do a keyword check
    keyword_check = True

    # If a keyword is found, delete it instantly (False) or add the comment to
    # the moderation queue (True). Default is False.
    keyword_check_moderate = False

moderator.register(Entry, EntryModerator)

Metadata

Release files for django-comments-spamfighter 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-comments-spamfighter 0.4
File Size Uploaded Provenance Actions
django-comments-spamfighter-0.4.tar.gz 4.6 kB Without provenance Details for django-comments-spamfighter-0.4.tar.gz

Release files / django-comments-spamfighter-0.4.tar.gz

Download URL django-comments-spamfighter-0.4.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
186073352f7abc705ec42f2fda347a3e3948e23cf32c3a6b5d93fe939be3bcc5
BLAKE2b-256 checksum
How to use checksums
db28693d63efd7db71fbb53e4fa340036ccef7391b0dd57743e141eadc23cbbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-comments-spamfighter 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page