🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Turn Off REST API icon
Actively maintained Tested with 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.

Active installs100+100+ tier
Downloads · 30d744▲ 3.4× vs prev. 30d
Rating—0 reviews
Health score68/100Good
All-time downloads4.8KSince Mar 2017
Support resolved—No recent threads
RequiresWP 4.7PHP 7.4+
Downloads · 7d107▲ +17.6% week over week
Our verdict

Solid choice

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.

  • Actively developed — last update 3 weeks ago
  • Tested with the latest WordPress (7.1)
  • Momentum — downloads up 239.7% vs the previous 30 days
  • Small user base (100+ active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

4896144Sep 4Oct 18Dec 2
Yesterday26
Daily average (1y)7
Peak day193Nov 12, 2026
Last 12 months2.4K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Turn Off REST API stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
disable REST API #47 2,897 Best disable REST API plugins →
JSON >100 8,885 Best JSON plugins →
rest-api #68 10,000 Best rest-api plugins →
security >100 10,000 Best security plugins →
wp-json >100 7,898 Best wp-json plugins →

Version adoption

Share of active sites per release.

  • 1.190.2%
  • 1.09.8%

About Turn Off REST API

From the official readme · 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.

What it does

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

Manual installation:

  1. Download the plugin zip from WordPress.org.
  2. Upload the turn-off-rest-api folder to /wp-content/plugins/.
  3. Activate the plugin through the Plugins menu in WordPress.

Changelog

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

  • Tested with 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.

Full changelog on WordPress.org →

Screenshots

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…

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Turn Off REST API alternatives

All disable REST API plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
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. by Syed Balkhi 200+ ★★★★★★★★★★ 4.5 (2) 5 years ago 32
3 MaxtDesign REST API Control MaxtDesign REST API Control Full control over your WordPress REST API. Block, restrict, or whitelist endpoints per user… by MaxtDesign 20+ ★★★★★★★★★★ No reviews 3 months ago 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) 2 months ago 69
5 Server Response Server Response Поможет вам скорректировать заголовки ответа сервера и отключить REST API. by seoriver 10+ ★★★★★★★★★★ No reviews 9 years ago 23
6 WireCore REST Control WireCore REST Control Disable the WordPress REST API selectively – per namespace, route and HTTP method… by WireCore GmbH 10+ ★★★★★★★★★★ No reviews 3 weeks ago 66
7 Caledros Helper Caledros Helper Adds an Admin Menu that allows removing the default block patterns. It also allows… by David Arnado <10 ★★★★★★★★★★ No reviews 7 months ago 43
8 RestArmor Security RestArmor Security Advanced security suite. Blocks REST API, disables XML-RPC, prevents user enumeration, and… by Md. Rakib Ullah <10 ★★★★★★★★★★ No reviews 10 months ago 36
9 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… by 3task <10 ★★★★★★★★★★ No reviews 1 month ago 60
10 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 ★★★★★★★★★★ No reviews 1 week ago 64
11 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 ★★★★★★★★★★ No reviews 3 years ago 21

FAQ

Turn Off REST API: quick answers

Straight answers, pulled from live WordPress.org data.

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,775 times since it launched in March 2017. It was downloaded 744 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).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open