Manual:BlockUsers.php

blockUsers.php is a maintenance script located in the  directory that can be used to block or unblock a batch of users.

Usage
(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.