🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Turn Off REST API icon
Activement maintenu Testé avec WP 7.1 #2 in disable REST API

Turn Off REST API

Disable the WordPress REST API for logged out visitors and lock down your /wp-json endpoints, with a per route allow list so you stay in control.

Installations actives100+100+ niveaux
Téléchargements · 30D720▲ 3,4× vs prév. 30j
Évaluation—0 avis
Score de santé68/100Bon
Téléchargements de tous les temps4.8KDepuis mars 2017
Support résolu—Aucun fil de discussion récent
A besoin deWP 4.7PHP 7.4+
Téléchargements · 7j86▼ -25.2% week over week
Notre verdict

Choix solide

Turn Off REST API is a solid plugin choice in 2026, with a few things worth checking first. It runs on 100+ sites and was last updated 3 weeks ago, and scores 68/100 on our health check.

  • Développé activement — Dernière mise à jour il y a 3 semaines
  • Testé avec le dernier WordPress (7.1)
  • Momentum — downloads up 239.6% vs the previous 30 days
  • Petite base d'utilisateurs (plus de 100 installations actives)
  • Très peu de critiques jusqu'à présent

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

4896144Sep 2Oct 16Nov 30
Hier11
Moyenne quotidienne (1 ans)7
Jour de pointe19312 Novembre 2026
12 Derniers mois2.4K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where Turn Off REST API stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
disable REST API #48 2,892 Best disable REST API plugins →
JSON >100 8,769 Best JSON plugins →
API REST #70 10,000 Meilleurs plugins REST-API →
la sécurité >100 10,000 Meilleurs plugins de sécurité →
wp-json >100 7,798 Best wp-json plugins →

Adoption de version

Part de sites actifs par version.

  • 1.190.7%
  • 1.09.3%

About Turn Off REST API

À partir du Lisezmoi officiel · v1.1.6

Description

Turn Off REST API is a lightweight WordPress security plugin that disables the WordPress REST API for visitors who are not logged in. Anonymous requests to your /wp-json endpoints receive an authentication error instead of your site data, while logged in users, the block editor, and your admin area keep working normally.

Because every route is blocked for logged out visitors by default, features that call the REST API on behalf of visitors stop working for them until you allow their routes. This includes the WooCommerce Cart and Checkout blocks and Contact Form 7 form submissions. The FAQ below shows exactly which routes to allow.

By default WordPress exposes a large amount of information through the REST API, including your list of user accounts and usernames, published content, and details about your site. For most sites that open, unauthenticated access is unnecessary and only widens the attack surface for user enumeration and content scraping. Turn Off REST API closes the WordPress REST API to the public in one click, then gives you a clear settings screen to reopen only the specific REST API routes you actually need.

Why turn off the WordPress REST API?

  • Stop anonymous user enumeration through /wp-json/wp/v2/users.
  • Reduce your attack surface against REST API based exploits and bots.
  • Keep your content and site data from being scraped through the public API.
  • Stay in control with a per route allow list instead of an all or nothing switch.

Ce qu'il fait

  • Returns an authentication error for unauthenticated REST API requests.
  • Optionally removes the REST API discovery links and headers from your page source.
  • Lets you build an allow list of routes that should stay public (for example a contact form or a specific integration).
  • Adds a Site Health check so the restriction is clearly explained and never mistaken for a fault.
  • Keeps the admin area, the block editor, and logged in functionality fully working.

Built for control, not breakage

Some security plugins disable the REST API completely and break the block editor or third party integrations in the process. Turn Off REST API only blocks unauthenticated access, and the per route allow list means you can whitelist exactly the endpoints a service needs without opening the whole API back up.

Developer friendly

The access decision runs through the tora_grant_rest_api filter, so developers can extend or override the logic for custom roles, application passwords, or trusted requests.

Installation

  1. In your WordPress admin, go to Plugins, then Add New.
  2. Search for “Turn Off REST API”.
  3. Click Install Now, then Activate.
  4. Go to Settings, then Turn Off REST API to review the route allow list. Unauthenticated access is disabled by default. If your site uses the WooCommerce Cart or Checkout blocks or Contact Form 7, allow their routes as described in the FAQ.

Installation manuelle :

  1. Download the plugin zip from WordPress.org.
  2. Téléchargez le dossier turn-off-rest-api à /wp-content/plugins/.
  3. Activez le plugin via le menu des plugins dans WordPress.

Journal de modifications

Security fixes: logged out visitors could use ?_embed to read routes you had not allowed, such as author profiles, and ?rest_route=// showed the route list. If a headless front end needs embedded authors, images, or terms, allow those routes too (see the FAQ).

1.1.6

  • Fixed – security: when you allowed a content route such as /wp/v2/posts, a logged out visitor could add ?_embed to the request and get the data of routes you had not allowed, such as the post author’s user profile, the featured image, and the post’s categories and tags. Each embedded item is now checked against your allow list too. An item from a route you have not allowed appears as an authentication error (status 401) inside the response instead of its data, and the rest of the response is unchanged.
  • Fixed – security: a REST API address made only of slashes or backslashes, such as ?rest_route=//, showed logged out visitors the list of every REST API route on your site even when that list was blocked. It is now blocked the same way as /wp-json/.
  • Note – if your site shows posts to logged out visitors through the REST API with ?_embed (a headless front end or a JavaScript theme), and it needs embedded author names, featured images, or terms, allow those routes as well. The FAQ explains how.

1.1.5

  • New – When WooCommerce is active and its cart and checkout routes are blocked, the settings screen explains that logged out shoppers cannot use the Cart and Checkout blocks, and offers one button that allows only the Store API routes those blocks use (cart, checkout, order, and batch).
  • New – The WooCommerce Store API routes (/wc/store/v1) now appear in the route list. WooCommerce does not load them in the dashboard, so before this they could not be ticked here.
  • New – The same one-click fix for Contact Form 7, which needs its form feedback routes to send forms for logged out visitors.
  • New – Right after activation, a one-time notice on the Plugins screen says the REST API is now blocked for logged out visitors, with links to the settings and to a quick test.
  • Fixed – security: an allowed batch route (the WordPress /batch/v1 route or the WooCommerce /wc/store/v1/batch route) let logged out visitors reach routes inside the batch that were not allowed. Every request inside a batch is now checked against your allow list, and a batch that asks for any route you have not allowed is refused as a whole before it runs.
  • Fixed – When code on the site used the tora_grant_rest_api filter to open the REST API to everyone, the settings screen and Site Health still said it was restricted. Both now report the real state.
  • Fixed – Saving the settings with no route ticked showed “Default settings restored” instead of “Settings saved”.

1.1.4

  • Tested with WordPress 7.1.2.
  • Fixed – security: when another security plugin or your own code had already blocked a REST API request from a logged out visitor, this plugin could lift that block and let the request through. The earlier block is now always kept.
  • Fixed – the option to hide REST API discovery links and headers now also removes the REST API link that WordPress sends in the headers of every page. Before, only the links in the page source were removed.
  • Fixed – the settings screen no longer stops with an error when a save request contains malformed route data. Such a request is treated like one with no routes ticked.
  • Tweak – removed support code for WordPress versions older than 4.7, which the plugin already required.

1.1.3

  • Fixed – WordPress 6.7 and newer logged a “translation loading was triggered too early” notice for this plugin on sites with debugging enabled. The plugin name was being translated while the plugin loaded, before WordPress is ready to serve translations.
  • Tweak – the version used to cache bust the settings screen assets now comes from a single source, so it can never fall out of step with the plugin version again.
  • No change to how the REST API is protected.

1.1.2

  • Testé avec WordPress 7.1.
  • Fixed – a PHP notice on PHP 8.2 and newer, caused by a plugin property being created on the fly instead of being declared. On a future PHP 9 this would have stopped the plugin from loading.
  • Fixed – the settings screen stylesheet and script were still labelled with the previous version number, so browsers could keep serving the old cached files after an update.
  • No change to how the REST API is protected.

1.1.1

  • New – A “More on DopeThemes” panel on the settings screen with free plugins, code snippets, themes, and tutorials. No change to how the REST API is protected.

Journal des modifications complet sur WordPress.org →

Captures d'écran

A logged out visitor opening /wp-json gets an authentication error (status 401) instead of your site data.
A logged out visitor opening /wp-json gets an authentication error (status 401) instead…

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best Turn Off REST API alternatives

All disable REST API plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 WPControl – The Easiest Optimization Plugin for WordPress WPControl – The Easiest Optimization Plugin for WordPress The easiest way to improve your website's security, performance, and user experience. de Syed Balkhi 200+ ★★★★★★★★★★ 4.5 (2) Il y a 5 ans 32
3 MaxtDesign REST API Control MaxtDesign REST API Control Full control over your WordPress REST API. Block, restrict, or whitelist endpoints per user… par maxtdesign 20+ ★★★★★★★★★★ Aucun avis Il y a 3 mois 63
4 WPBuoy Endpoint Manager WPBuoy Endpoint Manager View, search, filter, and disable WordPress REST API endpoints. Reduce your attack surface… by Martin Cipriano 10+ ★★★★★★★★★★ 5 (1) il y a 1 mois 69
5 Server Response Server Response Поможет вам скорректировать заголовки ответа сервера и отключить REST API. by seoriver 10+ ★★★★★★★★★★ Aucun avis il y a 9 ans 23
6 WireCore REST Control WireCore REST Control Disable the WordPress REST API selectively – per namespace, route and HTTP method… by WireCore GmbH <10 ★★★★★★★★★★ Aucun avis 3 semaines plus tôt 64
7 3task Doorman: REST API & MCP Access Control 3task Doorman: REST API & MCP Access Control REST API and MCP access control: disable REST API routes for guests, limit AI agents and… par 3tâche <10 ★★★★★★★★★★ Aucun avis il y a 1 mois 60
8 Birim REST Lock – Disable REST API & Stop User Enumeration Birim REST Lock – Disable REST API & Stop User Enumeration Disable the REST API for logged-out visitors without breaking forms or the editor. Stop… by Melih Birim <10 ★★★★★★★★★★ Aucun avis il y a 6 jours 64
9 Disable Settings For WP Disable Settings For WP Disable Settings For WP is a WordPress plugin that allows you to disable right-click… by Harsh Gajipara <10 ★★★★★★★★★★ Aucun avis Il y a 3 ans 21
10 Disable Services Manager Disable Services Manager A powerful tool is available to help you disable unused services on your site, providing… by Mayur Prajapati <10 ★★★★★★★★★★ Aucun avis Il y a 3 ans 21
11 Caledros Helper Caledros Helper Adds an Admin Menu that allows removing the default block patterns. It also allows… by David Arnado <10 ★★★★★★★★★★ Aucun avis Il y a 6 mois 43

FAQ

Turn Off REST API: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is Turn Off REST API free?

Yes. Turn Off REST API is free to download and use from the official WordPress.org plugin directory.

Is Turn Off REST API safe to use in 2026?

Turn Off REST API is a solid plugin choice in 2026, with a few things worth checking first. It runs on 100+ sites and was last updated 3 weeks ago, and scores 68/100 on our health check.

How many websites use Turn Off REST API?

Turn Off REST API is active on 100+ WordPress websites and has been downloaded 4,753 times since it launched in March 2017. It was downloaded 720 times in the last 30 days.

Does Turn Off REST API work with WordPress 7.1?

Yes. The developer has tested Turn Off REST API up to WordPress 7.1.5, the latest release. It requires WordPress 4.7 or newer.

What PHP version does Turn Off REST API need?

Turn Off REST API requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Turn Off REST API last updated?

The latest version, 1.1.6, was released on November 12, 2026 (3 weeks ago).

Who makes Turn Off REST API?

Turn Off REST API is developed and maintained by ksym04.

What are the best alternatives to Turn Off REST API?

The most popular alternatives to Turn Off REST API are WPControl (200+ installs), MaxtDesign REST API Control (20+ installs) and WPBuoy Endpoint Manager (10+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir