Extension:GlobalBlocking

The GlobalBlocking extension allows a user with the appropriate permissions to block a single IP address on all Wikimedia projects sharing the same globalblocking database. It is intended to be used for combating severe cross-wiki vandalism and spam.

Installation instructions
Download the latest snapshot and extract it to your extensions directory.

Add this line to LocalSettings.php: You will also need to set up a database for this extension to work. At a minimum (all wikis running on the same host), you need to create a local database called 'globalblocking', and grant all database users that your wikis run as full permissions on that database (at a mimimum, SELECT, UPDATE, INSERT, DELETE).

After creating the database, you should import the SQL from globalblocking.sql.

API
GlobalBlocking adds an API list module "globalblocks" to list globally blocked IP addresses. It is not possible to do the actual blocking via the API.


 * Parameters
 * : The timestamp to start enumerating from
 * : The timestamp to stop enumerating at
 * : The direction in which to enumerate (older, newer)
 * : Pipe-separated list of block IDs to list (optional)
 * : Pipe-separated list of addresses to search for (optional)
 * : Get all blocks applying to this IP or CIDR range, including range blocks. (Cannot be used together with bkusers. CIDR ranges broader than /16 are not accepted.)
 * : The maximum number of blocks to list
 * : Which properties to get (id|address|by|timestamp|expiry|reason|range)


 * Example