Title: REST API Only
Author: jakubkanna
Published: <strong>2025 年 12 月 16 日</strong>
Last modified: 2025 年 12 月 17 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/rest-api-only.svg)

# REST API Only

 作者：[jakubkanna](https://profiles.wordpress.org/jakubkanna/)

[下载](https://downloads.wordpress.org/plugin/rest-api-only.1.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/rest-api-only/#description)
 * [评价](https://cn.wordpress.org/plugins/rest-api-only/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/rest-api-only/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/rest-api-only/#developers)

 [支持](https://wordpress.org/support/plugin/rest-api-only/)

## 描述

This plugin forces all non-admin, non-AJAX, and non-REST API requests to return 
a 404 status code.
 Ideal for headless WordPress environments or sites that should
expose only the API.

## 安装

 1. Upload the plugin folder to `/wp-content/plugins/`
 2. Activate the plugin through the “Plugins” menu in WordPress

## 评价

此插件暂无评价。

## 贡献者及开发者

「REST API Only」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ jakubkanna ](https://profiles.wordpress.org/jakubkanna/)

[帮助将「REST API Only」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/rest-api-only)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/rest-api-only/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/rest-api-only/)，或通过[RSS](https://plugins.trac.wordpress.org/log/rest-api-only/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/rest-api-only/)。

## 更新日志

#### 1.0.2

 * Updated plugin author attribution to Studio JKN with author URL.

#### 1.0.1

 * Adjusted plugin name capitalization and added a direct access guard.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**5 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/rest-api-only/)
 * 标签
 * [404](https://cn.wordpress.org/plugins/tags/404/)[api](https://cn.wordpress.org/plugins/tags/api/)
   [headless](https://cn.wordpress.org/plugins/tags/headless/)[rest](https://cn.wordpress.org/plugins/tags/rest/)
   [security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/rest-api-only/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/rest-api-only/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/rest-api-only/reviews/)

## 贡献者

 *   [ jakubkanna ](https://profiles.wordpress.org/jakubkanna/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/rest-api-only/)