Extension:StopForumSpam

The StopForumSpam extension allows wikis to utilize and contribute data to stopforumspam.com. It features automatic IP blocking and an easy interface for administrators to submit data. Use of the IP blacklist requires that you use some kind of object caching; it won't work if you have $wgMainCacheType set to CACHE_NONE. If neither APC or Memcached is an option, the simplest approach is to fallback to storing the object cache in your MySQL database. The following preset (in LocalSettings.php) will do that: $wgMainCacheType = CACHE_DB;

Configuration parameters

 * - API key, can be obtained at http://stopforumspam.com/signup
 * - location of an unzipped IP address blacklist

User rights

 * - allows users to optionally submit data. Useless without "block" right.
 * - allows users to bypass blacklisted IP blocks

Submitting data
When blocking a user, a checkbox will appear to submit the user's data. Data will only be submitted if the user is logged in, has an email address set, and has an IP address stored. This feature requires either $wgPutIPinRC to be enabled, or the CheckUser extension installed.

Confidence level
When using the AbuseFilter, a variable named "sfs_blocked" is added. The value is false if the user is not a spammer, and true if they are a spammer.

IP blocking
You can download IP blacklists, and import them using the  script. StopForumSpam has several lists, recommend http://www.stopforumspam.com/downloads/listed_ip_30_all.zip. Unzip it and then point $wgSFSIPListLocation in the LocalSettings.php file at it. Recommend updating it with a nightly cronjob.

If that IP tries to edit, or a user tries to edit through that IP address, they will be prevented from editing. To exempt a user from being blocked, give them the  userright. This feature requires object caching to be setup.