Jump to content

Extension:StopForumSpam

From mediawiki.org
This page is a translated version of the page Extension:StopForumSpam and the translation is 32% complete.
MediaWiki 拡張機能マニュアル
StopForumSpam
リリースの状態: 安定
実装 ページの操作
説明 stopforumspam.comを使ってスパムを防ぎます
作者
最新バージョン 0.4.0
MediaWiki >= 1.43
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
  • $wgSFSValidateIPListLocationMD5
  • $wgSFSDenyListCacheDuration
  • $wgSFSProxy
  • $wgSFSReportOnly
  • $wgSFSIPListLocation
  • $wgSFSIPThreshold
  • sfsblock-bypass
四半期ごとのダウンロード数 63 (Ranked 77th)
translatewiki.net で翻訳を利用できる場合は、StopForumSpam 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

StopForumSpamの拡張機能を使うとstopforumspam.comのデータをウィキが利用し、またデータに貢献することができます。 これは自動的にIPをブロックする機能を持ち、簡単にデータ提供を管理できるインタフェースを備えています。 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;

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のStopForumSpamという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/StopForumSpam
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'StopForumSpam' );
    
  • 必要に応じて設定します。
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

  • $wgSFSIPListLocation - IP アドレス拒否リストの場所
  • $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ブロック

Please note that since MediaWiki 1.36 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.