archlinux-de / flarum-anti-spam
Spam protection for forum.archlinux.de
Package info
github.com/archlinux-de/flarum-anti-spam
Type:flarum-extension
pkg:composer/archlinux-de/flarum-anti-spam
1.5.0
2026-06-14 10:16 UTC
Requires
- php: ^8.2
- flarum/core: ^1.7
- maxmind-db/reader: ^1.11.1
- symfony/http-foundation: ^5.4|^6.4|^7.4
- symfony/string: ^5.4|^6.4|^7.4
Requires (Dev)
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^11.5
- squizlabs/php_codesniffer: ^4.0
- symfony/filesystem: ^5.4|^6.4|^7.4
- symfony/http-client: ^5.4.44|^6.4.12|^7.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This Flarum extension is specific to forum.archlinux.de. You might find its code useful to implement your own solution.
Installation
composer require archlinux-de/flarum-anti-spam
Optional configuration:
The extension can be configured by adding the following keys to config.php:
<?php return [ // ... 'anti_spam' => [ 'user_agent_allowed' => ['BSD'], 'user_agent_blocked' => ['DOS', 'Windows'], 'geoip_database' => '/opt/GeoLite2-Country.mmdb', 'country_allowed' => ['FR', 'NL'], 'country_blocked' => ['DE'], 'ip_allowed' => ['10.0.0.0/8', '::1'], 'ip_blocked' => ['192.168.0.0/16'], 'email_domain_allowed' => ['archlinux.de'], 'email_domain_blocked' => ['example.com'], ], ];