SF Active Documentation

3.2.7: Administering Spam

3.2.7.1 Spam Filter configuration

There's a build-in spam-detection system in the publish functionality. It will merely simply block people for some time who a) either post too much articles in a certain timespan or b) post a certain article multiple times
To control this functionality, just edit the following values in your sfactive.cfg file

$GLOBALS['spam_filter_time'] = 120;    // amount of time where sfa tracks postings
$GLOBALS['spam_filter_articles'] = 6;  // amount of articles people can publish in this duration
$GLOBALS['spam_filter_content'] = 1;   // amount of articles with the same content in this duration

You must test this a little. This can also block people who shouldn't be blocked

3.2.7.2 IP Log configuration

You can set sf-active that it logs the ip-numbers of people who publish. To do this change the following value in your sfactive.cfg file:

$GLOBALS['ip_log'] = 'ip';          // set to ip to log the ip's in SF_CACHE_PATH/ip_log.txt

You must be aware that logging ip numbers of people who publish is potentially dangerous for activists. In other words, you shouldn't do it.
We advice you only do it for a short time to find people who manage to get through the rules defined above

3.2.7.3 How to block ip's

Once you click on the "spam" link in the left-hand column of the admim interface you will be presented with three options:

All of the options will lead you to a form where you can search and edit the log files, to look for a specific spammer, or to include a specific ip as the next one to be blocked.