Extension:StopForumSpam/zh

This page is a translated version of the page Extension:StopForumSpam and the translation is 16% complete.
Other languages:
English • ‎Türkçe • ‎français • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
StopForumSpam
发布状态: 稳定版
实现 页面操作
描述 使用stopforumspam.com防止垃圾内容
作者
最新版本 0.3.0 (2019-02-07)
MediaWiki 1.29+
许可协议 GNU通用公眾授權條款2.0或更新版本
下载
  • $wgSFSBlacklistCacheDuration
  • $wgSFSValidateIPList
  • $wgSFSIPListLocation
  • $wgSFSReportOnly
  • $wgSFSEnableDeferredUpdates
  • $wgSFSIPThreshold
  • sfsblock-bypass
  • stopforumspam
翻译StopForumSpam扩展如果在translatewiki.net可用
检查使用和版本矩阵。
问题 开放的工作 · 报告错误

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;

安装

  • 下载文件,并将其放置在您extensions/文件夹中的StopForumSpam目录内。

配置

  • $wgSFSIPListLocation - location of an unzipped IP address blacklist
  • $wgSFSReportOnly - enables a mode where users are not blocked from non-read actions after tripping the blacklist

用户权限

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

Logging

To log reports about who StopForumSpam is exempting and blocking, you can enable the "StopForumSpam" channel in your structured logging configuration. All reports for the extension are logged at a level of INFO. If you do not have structured logging configured, you can log to a file by configuring $wgDebugLogGroups in your LocalSettings.php, like so:

$wgDebugLogGroups['StopForumSpam'] = '/var/log/mediawiki/stopforumspam.log';

This will write the log to a file located in /var/log/mediawiki/stopforumspam.log. MediaWiki will need access to write to this log file and the file should not accessible via the web as it will contain private details of your users (such as usernames, page names, and IP addresses).

The simple logging using $wgDebugLogGroups will omit details compared to using a structured logging solution such as monolog .

AbuseFilter integration

When using the 扩展:滥用过滤器 , 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封禁

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.