Linux 软件免费装
Banner图

Disable REST API

开发者 dmchale
tangrufus
更新时间 2021年2月15日 11:39
PHP版本: 5.6 及以上
WordPress版本: 5.6
版权: GPLv2 or later
版权网址: 版权信息

标签

admin json api disable rest-api REST

下载

1.3 1.0 1.1 1.2 1.4 1.4.1 1.4.2 1.4.3 v1.5 v1.5.1 v1.6

详情介绍:

The most comprehensive plugin for controlling access to the WordPress REST API! Works as a "set it and forget it" install. Just upload and activate, and the entire REST API will be inaccessible to your general site visitors. But if you do need to grant access to some endpoints, you can do that too. Go to the Settings page and you can quickly whitelist individual endpoints (or entire branches of endpoints) in the REST API. You can even do this on a per-user-role basis, so your unauthenticated users have one set of rules while WooCommerce customers have another while Subscribers and Editors and Admins all have their own. NOTE: Out of the box, all defined user roles will still be granted full access to the REST API until you choose to manage those settings. For most versions of WordPress, this plugin will return an authentication error if a user is not allowed to access an endpoint. For legacy support, WordPress 4.4, 4.5, and 4.6 use the provided rest_enabled filter to disable the entire REST API.

安装:

  1. Upload the disable-json-api directory to the /wp-content/plugins/ directory via FTP
  2. Alternatively, upload the disable-json-api_v#.#.zip file to the 'Plugins->Add New' page in your WordPress admin area
  3. Activate the plugin through the 'Plugins' menu in WordPress

屏幕截图:

  • The JSON returned by a website with the API disabled via filters (WP versions 4.4, 4.5, 4.6)
  • The JSON returned by a website with the API disabled via authentication methods (WP versions 4.7+)
  • The Settings page lets you selectively whitelist endpoints registered with the REST API, on a per-user-role basis.

升级注意事项:

1.6
  • By popular request... now with User Role support!
1.4
  • Adds support to optionally whitelist individual routes of the REST API via Settings page.
1.1
  • Now with support for the 2.0 beta API filters
1.0
  • Initial Release

更新日志:

1.6 1.5.1 1.5 1.4.3 1.4.2 1.4.1 1.4 1.3 1.2 1.1 1.0