PHP code example of archlinux-de / flarum-anti-spam

1. Go to this page and download the library: Download archlinux-de/flarum-anti-spam library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

archlinux-de / flarum-anti-spam example snippets


 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'],
    ],
];