Disable REST API for Logged-Out Users

Restrict WordPress REST API access for visitors who aren’t logged in.

Want to limit access to your WordPress REST API for logged-out visitors? This focused plugin helps restrict REST API access for users who aren’t authenticated, while allowing logged-in users to continue using the API.

A practical solution for website owners who want more control over how their WordPress site exposes REST API data.

Key highlights:

  • Restrict REST API access for logged-out visitors.
  • Allow authenticated users to continue using the REST API.
  • Simplify REST API access management.
  • Reduce public exposure of API endpoints covered by the restriction.
  • No external APIs or third-party services required.

Choose Your License

1 Year / 1 Site

Use on 1 website for 1 year.

$0.99

1 Year / 10 Sites

Use on up to 10 websites for 1 year.

$6.99

Lifetime / 1 Site

One time payment. Use on 1 website forever.

$6.99

Secure Checkout

Instant Download

24/7 Email Support

Plugin Details

Version 1.0.0
Total File Size 51.1 KB
Last Updated Oct 28, 2026
Requires WordPress 6.0+
Requires PHP 7.4+
Compatible With WordPress, WooCommerce, Elementor & Contact Form 7
Support 24/7 Email Support

Restrict Public REST API Access

Prevent visitors who are not logged in from accessing the WordPress REST API.

Protect Public API Endpoints

Limit unauthenticated access to REST API endpoints that may expose publicly accessible WordPress data.

Keep Logged-In Access

Allow authenticated users to continue accessing the WordPress REST API.

Reduce Unwanted API Requests

Help reduce unnecessary REST API requests from anonymous visitors and automated bots.

Improve Access Control

Add an extra layer of control over how external visitors interact with your WordPress website.

Simple One-Click Control

Enable or disable REST API restrictions directly from one convenient settings screen.

Description

Disable REST API for Logged-Out Users makes it easy to restrict access to the WordPress REST API for visitors who are not logged in.

The WordPress REST API allows applications, services and external tools to communicate with your website and retrieve or interact with WordPress data. While it is essential for many WordPress features and integrations, not every website needs to provide REST API access to anonymous visitors.

When enabled, this plugin restricts REST API access for logged-out users while allowing authenticated users to continue using the API.

By limiting unauthenticated access, the plugin helps reduce unwanted public API requests and gives website owners greater control over how their WordPress data and functionality are accessed.

No complicated configurations, manual code changes or server modifications are required.

Simply enable the plugin functionality and save your settings to apply the restrictions.

Whether you operate a business website, membership platform, blog or online store, Disable REST API for Logged-Out Users provides a straightforward way to manage public REST API access.

Lightweight and easy to use, the plugin works directly within WordPress without requiring external services, API keys or additional configurations.

Key Features

Frequently Asked Questions

What does Disable REST API for Logged-Out Users do?

The plugin restricts access to the WordPress REST API for visitors who are not logged in. Authenticated users can continue accessing the REST API.

The WordPress REST API allows applications and external services to communicate with your WordPress website. It provides access to website data and functionality through standardized HTTP requests.

Some websites do not need to make their REST API publicly accessible. Restricting access for logged-out visitors can help limit unnecessary API requests and reduce public exposure of REST API endpoints.

Yes. Authenticated users can continue using the WordPress REST API.

No. It restricts access for logged-out visitors rather than disabling the REST API for everyone.

Authenticated administrators and other logged-in users can continue using the REST API. However, individual plugins or integrations may have additional requirements.

Your regular website pages are not intentionally disabled. However, some themes and plugins use REST API requests to load public-facing content or functionality. These features may be affected if they depend on unauthenticated REST API access.

WooCommerce functionality that relies on authenticated REST API requests can continue working. However, certain public-facing features and integrations may depend on unauthenticated API endpoints. Test your store after enabling the plugin.

No. It restricts REST API access for logged-out users but does not replace a comprehensive WordPress security strategy, firewall or other security measures.

No. The plugin specifically restricts WordPress REST API access. XML-RPC functionality is separate and can be controlled using the Disable XML-RPC plugin.

No. The plugin provides a simple settings interface and does not require manual modifications to WordPress core files or server configuration.

Yes. Simply disable the plugin functionality from its settings screen and save your changes.

No. The plugin works directly within WordPress without requiring external services or third-party API connections.

Related Plugins

Disable XML-RPC

Block XML-RPC requests to your WordPress website and remove the Pingback header to restrict access through an older WordPress communication interface.

Hide WP-Login Page From Public

Hide your standard WordPress login page from public visitors and use a private login URL to access your administration area.

Disable Admin Notices

Hide standard WordPress admin notices throughout the administration area for a cleaner and less distracting dashboard experience.