Extension:StopForumSpam

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
StopForumSpam
Release status: stable
Implementation Page action
Description Uses stopforumspam.com to prevent spam
Author(s) Legoktm, Skizzerz
Latest version 0.2.0 (2014-04-02)
MediaWiki 1.23+
Database changes No
License GNU General Public License 2.0 or later
Download
  • $wgSFSAPIKey
  • $wgSFSIPListLocation
  • sfsblock-bypass
Translate the StopForumSpam extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

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;

Installation[edit]

  • Download and place the file(s) in a directory called StopForumSpam in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'StopForumSpam' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit]

  • $wgSFSIPListLocation - location of an unzipped IP address blacklist

User rights[edit]

  • sfsblock-bypass - allows users to bypass blacklisted IP blocks

AbuseFilter integration[edit]

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[edit]

You can download IP blacklists, and import them using the maintenance/updateBlacklist.php script. StopForumSpam has several lists; we recommend using the "listed_ip_30_all" list. Once you choose the list you want, download and extract it to somewhere on your server, then point $wgSFSIPListLocation in the LocalSettings.php file at it. We recommend setting up a nightly cron job to download and extract new versions of the list and subsequently running the updateBlacklist maintenance script.

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 sfsblock-bypass user right.