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

---

Sök tillägg

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

# REST API Only

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

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

 * [Detaljer](https://sv.wordpress.org/plugins/rest-api-only/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/rest-api-only/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/rest-api-only/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/rest-api-only/#developers)

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

## Beskrivning

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

## Recensioner

Detta tillägg har inga recensioner.

## Bidragsgivare och utvecklare

”REST API Only” är programvara med öppen källkod. Följande personer har bidragit
till detta tillägg.

Bidragande personer

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

[Översätt ”REST API Only” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/rest-api-only)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/rest-api-only/), kika
på [SVN-filförvaret](https://plugins.svn.wordpress.org/rest-api-only/) eller prenumerera
på [utvecklarloggen](https://plugins.trac.wordpress.org/log/rest-api-only/) via 
[RSS](https://plugins.trac.wordpress.org/log/rest-api-only/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 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**
 *  Senast uppdaterat **6 månader sedan**
 *  Aktiva installationer **Färre än 10**
 *  WordPress-version ** 5.0 eller senare **
 *  Testat upp till **6.9.4**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/rest-api-only/)
 * Etiketter
 * [404](https://sv.wordpress.org/plugins/tags/404/)[api](https://sv.wordpress.org/plugins/tags/api/)
   [headless](https://sv.wordpress.org/plugins/tags/headless/)[rest](https://sv.wordpress.org/plugins/tags/rest/)
   [security](https://sv.wordpress.org/plugins/tags/security/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/rest-api-only/advanced/)

## Betyg

Än så länge har inga recensioner skickats in.

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

[Se alla recensioner](https://wordpress.org/support/plugin/rest-api-only/reviews/)

## Bidragande personer

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

## Support

Har du något att säga? Behöver du hjälp?

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