Manual:BlockUsers.php/ja

MediaWiki バージョン:
1.35
Category:MediaWiki code/ja#BlockUsers.php

詳細

blockUsers.php file is a maintenance script to block or unblock a batch of users.

By default, all users are hard blocked, auto blocked from any current and subsequent IP addresses, email disabled, unable to write to their user page and unable to create further accounts with no expiry to this block. You can change these configuration through options.

オプション/引数

オプション/引数説明必須かどうか
<file>A file where each line contains the name of a user to be blocked. If not given, script reads from standard input省略可能
--performerUsername that will be shown in the log entries (does not need to be in the sysop group)省略可能
--reasonReason for blocks. If empty, no reason will be shown in the logs省略可能
--reblockReblock users who are already blocked省略可能
--expiryExpiry of the block (can be something like "1 week" or a timestamp)省略可能
--unblockIf this option is passed, script will unblock the users instead省略可能
--allow-createaccountAllow account creation for blocked IPs省略可能
--allow-emailAllow blocked accounts to send emails省略可能
--allow-talkeditThe block user will be able to edit their own talk page省略可能
--disable-hardblockDon't block logged in accounts from a blocked IP address省略可能
--disable-autoblockDon't autoblock IP addresses used by the accounts省略可能

使用法

php maintenance/run.php blockUsers [ <file>| --performer| --reason| --reblock| --expiry| --unblock| --allow-createaccount| --allow-email| --allow-talkedit| --disable-hardblock| --disable-autoblock ]
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。
Terminal

(This will block the users contained in the text file "userlist.txt")

If the filename is omitted, the script will expect a list of users on the standard input.

関連項目

Category:Maintenance scripts/ja#ChangePassword.php Category:User maintenance scripts/ja
Category:Maintenance scripts/ja Category:MediaWiki code/ja Category:User maintenance scripts/ja