PHPackages                             blomstra/spam-prevention - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. blomstra/spam-prevention

ActiveFlarum-extension

blomstra/spam-prevention
========================

Spam prevention for your Flarum community.

1.8.0(1y ago)39.7k↓100%1mitPHPPHP &gt;= 8.0

Since Aug 29Pushed 1y agoCompare

[ Source](https://github.com/blomstra/flarum-ext-spam-prevention)[ Packagist](https://packagist.org/packages/blomstra/spam-prevention)[ RSS](/packages/blomstra-spam-prevention/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (16)Used By (0)

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

[](#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

[](#installation)

```
composer require blomstra/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

[](#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

[](#customization)

```
