archlinux-de / flarum-anti-spam
Spam protection for forum.archlinux.de
Installs: 1 068
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:flarum-extension
Requires
- php: ^8.0
- flarum/core: ^1.0.0
- maxmind-db/reader: ^1.10.1
- symfony/http-foundation: ^5.1.4
Requires (Dev)
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.0.2
- phpstan/phpstan-deprecation-rules: ^1.0.0
- phpstan/phpstan-phpunit: ^1.0.0
- phpunit/phpunit: ^9.5.10
- squizlabs/php_codesniffer: ^3.6
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'], ], ];