MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=globalblock

(main | globalblock)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: GlobalBlocking
  • License: GPL-2.0-or-later

Globally block or unblock a user.

Specific parameters:
Other general parameters are available.
target

The target IP address or username.

Rekis eo an arventenn-mañ.
expiry

If specified, will block or reblock the user. Determines how long the block will last for, e.g. "5 months" or "2 weeks". If set to "infinite" or "indefinite" the block will never expire.

Seurt : aet d'e dermen (munudoù)
unblock

If specified, will unblock the user.

Type: boolean (details)
reason

The reason for blocking/unblocking.

Rekis eo an arventenn-mañ.
anononly

Specify this if the block should only affect logged-out users globally.

Type: boolean (details)
modify

Da resisaat ma tlefe ar bloc'had er gwenn bezañ kemmet

Type: boolean (details)
alsolocal

Stankañ an IP ent lec'hel ivez

Type: boolean (details)
localblockstalk

Dizober ent lec'hel ar moned ouzh ar bajenn gaozeal

Type: boolean (details)
localblocksemail

Revoke email access locally

Type: boolean (details)
localanononly

Specify this if the block should only affect logged-out users locally.

Type: boolean (details)
token

A "csrf" token retrieved from action=query&meta=tokens

Rekis eo an arventenn-mañ.