[wordpress插件] Disable REST API禁用REST API

wordpress 插件 文章 2020-04-18 04:31 997 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

The most comprehensive plugin for controlling access to the WordPress REST API!

最全面的插件,用于控制对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

只需上传并激活,整个REST API将无法访问

your site visitors.

您的网站访问者。

Or if you have a plugin or theme installed which needs some of its endpoints to be accessible to

或者,如果您安装的插件或主题需要某些端点可以访问

site visitors, you can do that too.

网站访问者,您也可以这样做。

Go to the Settings page and you can quickly whitelist individual endpoints – or

转到“设置”页面,您可以快速将各个端点列入白名单–或

entire branches of endpoints – registered with the REST API.

端点的整个分支–已向REST API注册。

The engine for the API has existed in WordPress since v4.4 and additional functionality and endpoints are a

自v4.4起,API的引擎就已经存在了,而v4.4和其他功能以及端点都是

continual project.

连续项目。

While this is very exciting news for many reasons, it is also not functionality that every site

尽管由于许多原因,这是一个令人振奋的新闻,但并不是每个站点都具有功能性

admin wants enabled on their website if not necessary.

管理员希望在不必要的情况下在其网站上启用。

As of WordPress 4.7, the filters provided for disabling the REST API were removed.

从WordPress 4.7开始,已删除了用于禁用REST API的过滤器。

To compensate, this plugin will

为了补偿,此插件将

forcibly return an authentication error to any API requests from sources who are not logged into your website, which

对未登录您网站的来源的所有API请求强制返回身份验证错误,

will effectively still prevent unauthorized requests from using the REST API to get information from your website.

仍将有效地防止未经授权的请求使用REST API从您的网站获取信息。

For WordPress versions 4.4, 4.5 and 4.6, this plugin makes use of the rest_enabled filter provided by the API to

对于WordPress 4.4、4.5和4.6版本,此插件使用API​​提供的 rest_enabled 过滤器来

disable the API functionality.

禁用API功能。

However, it is strongly recommended that all site owners run the most recent version

但是,强烈建议所有网站所有者都运行最新版本

of WordPress except where absolutely necessary.

WordPress,除非绝对必要。

安装步骤

    1. Upload the disable-json-api directory to the /wp-content/plugins/ directory via FTP
    2. 通过FTP将 disable-json-api 目录上传到 / wp-content / plugins / 目录

    3. Alternatively, upload the disable-json-api_v#.#.zip file to the ‘Plugins->Add New’ page in your WordPress admin

    4. 或者,将 disable-json-api_v#。#。zip 文件上传到WordPress管理员中的“插件->添加新”页面

      area

    5. 区域

    6. Activate the plugin through the ‘Plugins’ menu in WordPress
    7. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/disable-json-api.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] AdTaily Widget LightAdTaily Widget Light
[wordpress插件] Advanced Ads – Code Highlighter进阶广告–程式码萤光笔
[wordpress插件] bbPress Slack IntegrationbbPress Slack集成
[wordpress插件] Contact Form 7 GetResponse Extension联系表7 GetResponse扩展
[wordpress插件] Add Editor To Page For Posts将编辑器添加到帖子页面
随便看看
微信公众号免300认证教程 5051
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 4368
小程序广告组件通过审核,但是小程序内没有显示广告? 4342
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8362
问题? 7478
如何快速搭建抽奖助手小程序(无需代码知识) 5157
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6213
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5727
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5296
如何解决渲染层网络错误Failed to load media? 16645