Development

#2876 (dkAntispamPlugin: Make plugin more configurable)

You must first sign up to be able to contribute.

Ticket #2876 (new enhancement)

Opened 7 months ago

Last modified 6 months ago

dkAntispamPlugin: Make plugin more configurable

Reported by: Markus.Staab Assigned to: fabien
Priority: major Milestone:
Component: plugins Version:
Keywords: plugin, dkAntispamPlugin Cc:
Qualification: Unreviewed

Description

would be nice to have the parameters for spam detection in the config files available, so it is easy to customize, without touching the code..

Possible config keys:

  • min strlen of "good text" (see $score = strlen($text) > 50 ? 0 : 2;)
  • max score (see if ($score >= 20))
  • weight for a bad word (see $score += 2 * preg_match_all('/'.$word.'/', $text, $result);)
  • score multiplier (see return $score * 5;) - Maybe this number have to be calculated because it depends on the max score setting
  • protocolls which are used for validation (see $score += preg_match_all('/http[s]?:\/\//', $text, $result);)

Change History

02/01/08 13:17:00 changed by Markus.Staab

also the default catalog of words should be extended:

maybe have a look at http://trac.edgewall.org/wiki/BadContent

02/01/08 13:19:25 changed by Markus.Staab

  • keywords set to plugin, dkAntispamPlugin.

02/23/08 03:54:31 changed by Carl.Vondrick

  • component changed from other to plugins.