WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by ksym04 v1.1.1

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.

Turn Off REST API

The facts

Active installs
100+
Price
Free
Last updated
13 Aug 2026
Added
Mar 2017
Requires WP
4.7
Tested up to
WP 7.1
Requires PHP
7.4
Downloads
3,207

Our analysis

AI-assisted

Turn Off REST API is a WordPress plugin designed to enhance security by disabling the REST API for visitors who are not logged in. It returns an authentication error for unauthenticated requests, while allowing logged-in users and certain integrations to function normally. This helps prevent anonymous access to sensitive site data and reduces the risk of user enumeration and content scraping.

The plugin provides a simple settings screen that allows you to create an allow list of specific REST API routes that can remain public. This feature ensures that you have control over what information is accessible while maintaining the functionality of your site for authenticated users and necessary services.

Best for: This plugin is suitable for WordPress site owners who want to enhance security by restricting access to the REST API.

What it does well

  • Disables REST API for unauthenticated users
  • Allows creation of a per route allow list
  • Keeps logged in functionality and integrations intact
  • Includes a Site Health check for clarity
  • Developer friendly with extensible access logic

Where it falls short

  • Limited information on user ratings and feedback
  • No details on compatibility with other plugins or themes

Verdict

Turn Off REST API is a straightforward solution for improving site security by controlling REST API access. It is particularly useful for those concerned about exposing sensitive information to unauthenticated users.

From the developer

ksym04's own description of Turn Off REST API, lightly tidied.

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, your theme, and your plugins keep working normally.

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.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for integrating services.

LocoAI

LocoAI

89

LocoAI - Auto Translate For Loco Translate is a powerful tool for developers looking to quickly translate thei...

Free 70k+ installs 4.9★ (637)
Uncanny Automator

The AI + Automation plugin for WordPress. Automate workflows across all your plugins and apps, add an AI agent...

Free 40k+ installs 4.9★ (156)
Open User Map

Create custom interactive maps with free Leaflet-based styles, no Google Maps API key, frontend marker submiss...

Free 10k+ installs 5★ (67)
Activity Log

Monitor every change on your WordPress site — who did what, when, and where it came from — for a complete audi...

Free 200k+ installs 4.3★ (74)
Reviews Feed

No API key required. Display Yelp and Google reviews for any business in a clean, customizable feed on your si...

Free 100k+ installs 4.4★ (34)
Bit integrations

Contact Form, Google Sheet, MailChimp, Brevo, Webhook, Zoho CRM Automation and Integration plugin that Connect...

Free 20k+ installs 4.9★ (160)