This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=globalblock
- Questo modulo richiede i diritti di lettura.
- Questo modulo richiede i diritti di scrittura.
- Questo modulo accetta solo richieste POST.
- Fonte: GlobalBlocking
- Licenza: GPL-2.0-or-later
Blocca o sblocca globalmente un utente.
- id
ID of the global block to modify or unblock (obtained through list=globalblocks). Cannot be used together with target.
- Type: integer
- target
L'indirizzo IP o il nome utente di destinazione. Non può essere utilizzato insieme a id.
- Tipo: utente, da uno qualsiasi nome utente, IP, Utente temporaneo e Intervallo di IP
- 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.
- Type: expiry (details)
- unblock
Se specificato, sarà sbloccato l'utente.
- Tipo: booleano (dettagli)
- reason
Il motivo del blocco/sblocco.
- This parameter is required.
- anononly
Indica se questo blocco dovrebbe riguardare solo gli utenti che non hanno effettuato l'accesso globale.
- Tipo: booleano (dettagli)
- allow-account-creation
Specify this if the global block should not prevent account creation.
- Tipo: booleano (dettagli)
- enable-autoblock
Specify this if the global block should trigger global autoblocks.
- Tipo: booleano (dettagli)
- modify
Specify this if the existing block on the target should be modified
- Tipo: booleano (dettagli)
- alsolocal
Blocca l'utente anche localmente. Non può essere utilizzato insieme a id.
- Tipo: booleano (dettagli)
- localblockstalk
Revoca localmente l'accesso alla propria pagina di discussione. Non può essere utilizzato insieme a id.
- Tipo: booleano (dettagli)
- localblocksemail
Revoke email access locally. Cannot be used together with id.
- Tipo: booleano (dettagli)
- localanononly
Indica se questo blocco dovrebbe riguardare solo gli utenti che non hanno effettuato l'accesso locale. Non può essere utilizzato insieme a id.
- Tipo: booleano (dettagli)
- local-allow-account-creation
Specify this if the local block should not prevent account creation. Cannot be used together with id.
- Tipo: booleano (dettagli)
- token
Un token "csrf" recuperato da action=query&meta=tokens
- This parameter is required.
- Block 192.0.2.1 indefinitely with reason "Cross-wiki abuse"
- api.php?action=globalblock&target=192.0.2.1&expiry=indefinite&reason=Cross-wiki%20abuse&token=123ABC [apri in una sandbox]