Extension:StopForumSpam/zh
StopForumSpam 发行状态: 稳定版 |
|
---|---|
实现 | 页面操作 |
描述 | 使用stopforumspam.com防止垃圾内容 |
作者 | |
最新版本 | 0.4.0 |
MediaWiki | >= 1.43 |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
|
|
|
|
季度下載量 | 55 (Ranked 76th) |
前往translatewiki.net翻譯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 deny list 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;
安裝
- 下载文件,并将解压后的
StopForumSpam
文件夹移动到extensions/
目录中。
开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/StopForumSpam - 将下列代码放置在您的LocalSettings.php 的底部:
wfLoadExtension( 'StopForumSpam' );
- Configure as required.
- 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
配置
$wgSFSIPListLocation
- location of an IP address deny list$wgSFSReportOnly
- enables a mode where users are not blocked from non-read actions after tripping the deny list$wgSFSDenyListCacheDuration
- Cache duration for the deny list in seconds. Adjust as required, especially if using a link to a file (as configured by default) rather than a local file.
用户权限
sfsblock-bypass
- allows users to bypass deny-listed 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 be 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 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封禁
maintenance/updateBlacklist.php
has been renamed to maintenance/updateDenyList.php
.You can download IP deny lists, and import them using the maintenance/updateDenyList.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 updateDenyList 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.
此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |
此扩展在以下wiki农场/托管网站和/或软件包中提供: 這不是一份權威名單。 即使某些wiki农场/托管网站和/或软件包未在这里列出,它们也可能提供此扩展。 请检查你的wiki农场/托管网站或软件包以确认提供情况。 |
- Stable extensions/zh
- Page action extensions/zh
- GPL licensed extensions/zh
- Extensions in Wikimedia version control/zh
- AbuseFilter-builder extensions/zh
- AbuseFilter-computeVariable extensions/zh
- AbuseFilter-generateUserVars extensions/zh
- OtherBlockLogLink extensions/zh
- GetUserPermissionsErrorsExpensive extensions/zh
- All extensions/zh
- Extensions used on Wikimedia/zh
- Extensions included in Miraheze/zh
- Extensions included in WikiForge/zh
- Spam management extensions/zh