Title: REST API Only
Author: jakubkanna
Published: <strong>16 de diciembre, 2025</strong>
Last modified: 17 de diciembre, 2025

---

Search plugins

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

# REST API Only

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

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

 * [Details](https://pe.wordpress.org/plugins/rest-api-only/#description)
 * [Reviews](https://pe.wordpress.org/plugins/rest-api-only/#reviews)
 *  [Installation](https://pe.wordpress.org/plugins/rest-api-only/#installation)
 * [Development](https://pe.wordpress.org/plugins/rest-api-only/#developers)

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

## Description

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.

## Installation

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

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“REST API Only” is open source software. The following people have contributed to
this plugin.

Contributors

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

[Translate “REST API Only” into your language.](https://translate.wordpress.org/projects/wp-plugins/rest-api-only)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/rest-api-only/), check
out the [SVN repository](https://plugins.svn.wordpress.org/rest-api-only/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/rest-api-only/) 
by [RSS](https://plugins.trac.wordpress.org/log/rest-api-only/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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.

## Meta

 *  Version **1.0.2**
 *  Last updated **4 meses ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.9.4**
 *  Language
 * [English (US)](https://wordpress.org/plugins/rest-api-only/)
 * Tags
 * [404](https://pe.wordpress.org/plugins/tags/404/)[api](https://pe.wordpress.org/plugins/tags/api/)
   [headless](https://pe.wordpress.org/plugins/tags/headless/)[rest](https://pe.wordpress.org/plugins/tags/rest/)
   [security](https://pe.wordpress.org/plugins/tags/security/)
 *  [Advanced View](https://pe.wordpress.org/plugins/rest-api-only/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/rest-api-only/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

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