Skip to content

Word-based Content Filtering #274

Description

@rohnsha0

Implement configurable word-based content filtering system for plone.app.discussion to provide automated content moderation capabilities before comments are published.

Background

Currently, plone.app.discussion lacks proactive content filtering mechanisms, forcing administrators to manually moderate all potentially problematic content after publication. This creates significant administrative burden and allows inappropriate content to be visible, even temporarily.

Proposed Solution

Core Features

  • Configurable Word Filter Registry: Administrative interface to manage filtered words and phrases
  • Real-time Content Scanning: Check comments against filter list before submission
  • Pattern Matching Support: Basic regex capabilities for advanced filtering rules
  • Flexible Response Actions: Configurable actions when filtered content is detected

Implementation Details

Filter Management

  • New control panel section: "Comment Content Filters"
  • Support for exact word matches and pattern-based rules
  • Import/export functionality for filter lists
  • Category-based organization (spam, profanity, promotional, etc.)

Response Actions

When filtered content is detected, configurable actions include:

  1. Auto-reject: Comment is immediately rejected with user notification
  2. Pending Review: Comment moves to moderation queue
  3. Warning: Show warning message, allow user to edit and resubmit
  4. Move to Spam: Automatically mark as spam

Metadata

Metadata

Assignees

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions