Extension:GlobalBlocking/API

Global blocking
Allows you to create a new block, remove a block, or modify one.

Parameters

 * : Target IP address/range
 * : How long block should last for
 * : If set, will unblock the address/range
 * : (un)block reason
 * : If set, the block will only affect anonymous users
 * : Edit token

Example
Note: Request must be POSTed.

List global blocks
View a list of currently blocked IP addresses/ranges.

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. IPv4 CIDR ranges broader than /16 are not accepted; however, IPv6 ranges can be of any size less than /4)
 * : The maximum number of blocks to list
 * : Which properties to get (id|address|by|timestamp|expiry|reason|range)