Manual:BlockUsers.php/cs

Verze MediaWiki:
1.35
Category:MediaWiki code/cs#BlockUsers.php

Podrobnosti

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.

Options/Arguments

Option/ArgumentDescriptionRequired?
<file>A file where each line contains the name of a user to be blocked. If not given, script reads from standard inputVolitelné
--performerUsername that will be shown in the log entries (does not need to be in the sysop group)Volitelné
--reasonReason for blocks. If empty, no reason will be shown in the logsVolitelné
--reblockReblock users who are already blockedVolitelné
--expiryExpiry of the block (can be something like "1 week" or a timestamp)Volitelné
--unblockIf this option is passed, script will unblock the users insteadVolitelné
--allow-createaccountAllow account creation for blocked IPsVolitelné
--allow-emailAllow blocked accounts to send emailsVolitelné
--allow-talkeditThe block user will be able to edit their own talk pageVolitelné
--disable-hardblockDon't block logged in accounts from a blocked IP addressVolitelné
--disable-autoblockDon't autoblock IP addresses used by the accountsVolitelné

Usage

php maintenance/run.php blockUsers [ <file>| --performer| --reason| --reblock| --expiry| --unblock| --allow-createaccount| --allow-email| --allow-talkedit| --disable-hardblock| --disable-autoblock ]
Ve verzi MediaWiki 1.39.12 a starší musíte vyvolat skripty údržby pomocí php maintenance/scriptName.php namísto php maintenance/run.php scriptName.
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.

See also

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