API:Restricting API usage/ja

There are several ways to restrict usage of (certain parts of) the API to certain groups of users, or to disable it altogether. Some of these require changing group permissions.

API 全体の無効化
You can disable the API as a whole by setting  in. The API is enabled by default.

書き込み API の無効化
You can disable all write modules by setting  in LocalSettings.php. The write API is enabled by default as of MediaWiki 1.14, and disabled by default in older versions.

書き込み API へのアクセス制限
You can deny certain groups the right to use the write API by denying them the writeapi right. By default, all groups have the writeapi right. However, both the writeapi right and  are required in order to use the write API.

モジュールの無効化
You can disable individual modules for all users by adding a line to LocalSettings.php. Exactly what to add depends on the type of module you want to disable:


 * モジュールの場合は、 を使用してください
 * モジュールの場合は、 を使用してください
 * モジュールの場合は、 を使用してください
 * モジュールの場合は、 を使用してください

例
To disable anyone who isn't a sysop from using :