Disable WP REST API
by Jeff Starr 4.8 (36 reviews)

Disable WP REST API

Disables the WP REST API for visitors not logged into WordPress.

Disable WP REST API ranks #965 among WordPress.org plugins with 30,000+ active installations, a 4.8/5 rating from 36 reviews, and was last updated Aug 10, 2026. Data from WordPress.org, refreshed twice daily — see methodology.

Compatible with WP 7.1.4
v2.6.9 Current Version v2.6.9
Updated 2 months ago Last Update on 10 Aug, 2026
Refreshed 18 hours ago Last Refreshed on
Top 5% by installs Downloads -36.2% this week
View on WordPress.org
Rank
#965
— No change
Active Installs
30K+
-18.3%
KW Avg Position
13.8
0.6 worse
Downloads
443.6K
+31 today
Support Resolved
100%
— No change
Rating
96%
Review 4.8 out of 5
4.8 (36 reviews)

Next Milestone 40K

Total Progress 71.2%
30K+ 40K+
53
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 2,881 more installs to reach 40K+

Rank Changes

917 941 966 991 1,015 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
917 943 969 995 1,021 17-10-2026 18-10-2026 19-10-2026 20-10-2026 21-10-2026 22-10-2026 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
Current #965
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 50 100 150 200 250 300 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
0 100 200 300 400 500 600 17-10-2026 18-10-2026 19-10-2026 20-10-2026 21-10-2026 22-10-2026 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

4.8
36 reviews
Overall 96%
5
34 (94%)
4
0 (0%)
3
1 (3%)
2
0 (0%)
1
1 (3%)

Support Threads Overview

Resolved
Unresolved
1
Total Threads
1
Resolved
0
Unresolved
100%
Resolution Rate

Security History

Source: WPVulnerability

No known vulnerabilities on record for Disable WP REST API. Checked 1 week ago.

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
2.6.9
Last Updated
Aug 10, 2026
Requires WP
4.7+
Tested Up To
7.1.4
PHP Version
5.6.20 or higher
Author
Jeff Starr

Support & Rating

Rating
★ ★ ★ ★ ★ 4.8
Reviews
36
Support Threads
1
Resolved
100%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

TL;DR

AI summary of the plugin's readme

This plugin is for WordPress site owners who want to restrict access to their site's REST API. It solves the problem of unauthenticated users and bots abusing or accessing REST/JSON data by disabling the API for anyone not logged into WordPress.

  • Disables REST/JSON for logged-out visitors
  • Disables REST header in HTTP response
  • Disables REST links in HTML head
  • Plug-and-play, no configuration needed
  • Customizable error message via filter hook
  • Allows REST API for logged-in users

Frequently Asked Questions

Common questions about Disable WP REST API

Technically this plugin disables REST API only for visitors who are not logged into WordPress. With that in mind, here are some good reasons why someone would want to disable REST API for non-logged users: The REST API may not be needed for non-logged users Disabling the REST API conserves server resources Disabling the REST API minimizes potential attack vectors Disabling the REST API prevents content scraping and plagiarism I'm sure there are other valid reasons, but you get the idea :)
{"code":"rest_login_required","message":"REST API restricted to authenticated users.","data":{"status":401}}
Testing is easy: Log out of WordPress Using a browser, request https://example.com/wp-json/ If you see the following message, REST is disabled: "rest_login_required: REST API restricted to authenticated users." Then if you log back in and make a new request for https://example.com/wp-json/, you will see that REST is working normally.
Yes. If the user is NOT logged in, this plugin disables ALL endpoints that are registered with the WP REST API. Otherwise, if the user IS logged in, then this plugin does not block anything.
Yes. It works the same regardless of which editor (Classic or Block) you are using.
By default the plugin displays a message for unauthenticated users: "REST API restricted to authenticated users." To customize that message to whatever you want, add the following code via functions.php or simple custom plugin: function disable_wp_rest_api_error_custom($message) { return 'Customize your message here.'; // change this to whatever you want } add_filter('disable_wp_rest_api_error', 'disable_wp_rest_api_error_custom');
As explained in this thread, the plugin Contact Form 7 requires REST API access in order for the contact form to work. To allow for this, follow this guide.
Send any questions or feedback via my contact form

More plugins by Jeff Starr

Sign In / Register

You need to sign in or register to use this feature.