Manual:cleanupSpam.php

From Linux Web Expert

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.6
<translate> MediaWiki version:</translate>

詳細

cleanupSpam.php ファイルは、指定したホスト名を指しているスパム リンクをすべて除去する メンテナンス スクリプトです。 The script will use the username, which has been provided in MediaWiki:Spambot username to attribute the resulting edits to. The script checks each of the respective wikis for external links to the given hostname. In case a page contains a link to that host, the script goes backwards in the history of the page, until the host is no longer on the page. The script will then revert the page to that revision.

オプション/引数

オプション/引数 説明 必須かどうか
<hostname> スパム攻撃が行われていて除去したいホスト名 (例: google.com) A single * wildcard in the beginning is allowed.
例: php maintenance/cleanupSpam.php google.com
<translate> Optional</translate>
--all Check all wikis in ($wgLocalDatabases ). With this option, the script will loop through all of these wikis. Without --all, it will check the current wiki only. <translate> Optional</translate>
--delete If a page does not have any revision without the spammy hostname, the script by default blanks that page. If --delete is provided, it instead deletes the according pages. <translate> Optional</translate>

使用法

php maintenance/cleanupSpam.php <hostname> [ --all| --delete ]
Terminal

関連項目