LocoAI
89LocoAI - Auto Translate For Loco Translate is a powerful tool for developers looking to quickly translate thei...
Disables the WP REST API for visitors not logged into WordPress.
Disable WP REST API is a WordPress plugin that completely disables the REST API for visitors who are not logged into WordPress. It requires no configuration and works as a plug-and-play solution. When a logged-out user attempts to access the REST API, they receive a message indicating that authentication is required.
This plugin is suitable for users who want to protect their site's REST data from unauthenticated access, particularly from bots and other non-logged users. However, it is not recommended for sites that need the REST API functionality for visitors who are not logged in.
Best for: This plugin suits users looking to restrict access to their site's REST API for unauthenticated visitors.
What it does well
Where it falls short
Disable WP REST API is a straightforward solution for enhancing site security by limiting REST API access. It is effective for specific use cases but may not meet the needs of all WordPress sites.
Jeff Starr's own description of Disable WP REST API, lightly tidied.
Does one thing: Completely disables the WordPress REST API for visitors who are not logged into WordPress. No configuration required.
Important: This plugin completely disables the WP REST API for visitors who are NOT logged in to WordPress. So not recommended if your site needs the WP REST API for any non-logged users.
👉 The fast, simple way to prevent abuse of your site’s REST/JSON API
👉 Protects your site’s REST data from all non-logged users and bots
👉 Uses only 4KB of code, so super lightweight, fast, and effective
🛠️ Pro version available! Check out REST Pro Tools »
How does it work?
This plugin completely disables the WP REST API unless the user is logged into WordPress.
What happens if logged-out visitor makes a JSON/REST request? They will get only a simple message:
rest_login_required: REST API restricted to authenticated users.
This message may customized via the filter hook, disable_wp_rest_api_error. Check out this post for an example of how to do it.
🛠️ Check out the Pro version, REST Pro Tools, loaded with many awesome features:
The free version does only one thing: disables REST API for unauthenticated users. The PRO version can do that and much more! Take full control of the REST API with REST Pro Tools »
Other plugins for integrating services.
LocoAI - Auto Translate For Loco Translate is a powerful tool for developers looking to quickly translate thei...
The AI + Automation plugin for WordPress. Automate workflows across all your plugins and apps, add an AI agent...
Create custom interactive maps with free Leaflet-based styles, no Google Maps API key, frontend marker submiss...
Monitor every change on your WordPress site — who did what, when, and where it came from — for a complete audi...
No API key required. Display Yelp and Google reviews for any business in a clean, customizable feed on your si...
Contact Form, Google Sheet, MailChimp, Brevo, Webhook, Zoho CRM Automation and Integration plugin that Connect...