Search by

floxum / spam-prevention

Luceos

Spam prevention for your Flarum community.

Package info

gitlab.com/floxum/extensions/flarum-ext-spam-prevention

Issues

Type:flarum-extension

pkg:composer/floxum/spam-prevention

Statistics

Installs: 13

Dependents: 0

Suggesters: 0

Stars: 0

0.1.2 2026-10-08 17:20 UTC

This package is auto-updated.

Last update: 2026-10-08 15:20:41 UTC


README

Spam prevention is an extension based on our spam fighting experience on the official Flarum community Discuss. After installation it does a great job at preventing any form of unwanted spam. Give it a spin if spam is an annoyance on your community!

Requirements

  • flarum/approval - this is required
  • flarum/flags - this is recommended
  • fof/spamblock - optional, when enabled immediately deletes users that open discussions with spam subjects

Installation

composer require floxum/spam-prevention

Now enable this extension from your admin area and it will already do its job. No further configuration needed.

That's it. Read below what this package does and how to customize its behavior.

Spam prevent logic

How does it try to identify spam?

  • it scans for phone numbers
  • it scans for email addresses
  • it scans for links that aren't in the allow list
  • it identifies the language used against the language packs installed
  • it ignores elevated users (mods and admins)

Where does it scan for spam?

  • it scans (first) posts
  • it scans user bio's

How does it take action?

  • it flags posts with flarum/flags enabled
  • it marks posts as not approved with flarum/approval enabled
  • it overwrites user bio's if it identifies spam
  • it marks users as spammer if a discussion subject contains spam with fof/spamblock

Customization

All configuration is done from the extension's settings page in the admin area:

  • Hours since sign up and Number of first posts: which users are checked. A user is checked while either applies; set a value to 0 to disable that check.
  • Allowed domains: one domain per line. Subdomains are allowed too, and links to the forum's own domain are always allowed.
  • Problematic words and Words required: content containing at least the required number of these words (case insensitive) is held for moderation.
  • Filters: turn checking posts, discussion titles or user bios on or off.
  • Moderator user ID: the user that raises flags and marks spammers. When empty, the first administrator is used.

Migrating from blomstra/spam-prevention

This package replaces blomstra/spam-prevention. Because the extension ID changes from blomstra-spam-prevention to floxum-spam-prevention, follow these steps:

  1. composer remove blomstra/spam-prevention && composer require floxum/spam-prevention
  2. Remove any Blomstra\Spam\Filter extenders from your extend.php.
  3. Enable the extension again in the admin area and configure it from its settings page.