Jump to content

Příručka:BlockUsers.php

From mediawiki.org
This page is a translated version of the page Manual:BlockUsers.php and the translation is 8% complete.
Verze MediaWiki:
1.35

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/Argument Description Required?
<file> A file where each line contains the name of a user to be blocked. If not given, script reads from standard input Volitelné
--performer Username that will be shown in the log entries (does not need to be in the sysop group) Volitelné
--reason Reason for blocks. If empty, no reason will be shown in the logs Volitelné
--reblock Reblock users who are already blocked Volitelné
--expiry Expiry of the block (can be something like "1 week" or a timestamp) Volitelné
--unblock If this option is passed, script will unblock the users instead Volitelné
--allow-createaccount Allow account creation for blocked IPs Volitelné
--allow-email Allow blocked accounts to send emails Volitelné
--allow-talkedit The block user will be able to edit their own talk page Volitelné
--disable-hardblock Don't block logged in accounts from a blocked IP address Volitelné
--disable-autoblock Don't autoblock IP addresses used by the accounts Volitelné


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.15 a starší musíte vyvolat skripty údržby pomocí php maintenance/NazevSkriptu.php namísto php maintenance/run.php NazevSkriptu.
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