Disable WP REST API
View on WordPress.orgScores higher than 87% of indexed plugins
About
Disables the WP REST API for visitors not logged into WordPress.
What It Does
Disable WP REST API blocks all unauthenticated requests to the WordPress REST API endpoints, returning an authentication error to visitors who are not logged in. It effectively hides your posts, pages, custom post types, and user data from anyone probing the JSON endpoints at /wp-json/. The plugin requires zero configuration and works immediately upon activation.
Who It's For
This plugin is well suited for site owners who do not use the REST API for any public-facing functionality, such as headless frontends, mobile apps, or block editor features that rely on it. It fits small businesses, membership sites, and content creators who want a simple way to reduce data scraping and limit what bots can pull from their WordPress install. It is particularly useful for sites on older or shared hosting where reducing unnecessary endpoint hits is a priority.
Who Should Skip It
Anyone running a headless WordPress site, relying on the block editor's preview features, or using plugins that depend on the REST API (such as WooCommerce, Yoast, or any block-based theme) should not install this. If your site uses the Site Editor or Full Site Editing, this plugin will break significant functionality.
The Bottom Line
Disable WP REST API is a lightweight, well-maintained plugin that does exactly what its name promises with no configuration needed. Its overall quality score of 81.16/100 reflects strong maintenance and compatibility, offset by moderate popularity and an unproven support history. For site owners who genuinely do not need the REST API, it is a clean and effective solution.
Related Plugins
Choose Classic Widgets if your primary concern is restoring the classic widget interface rather than restricting REST API access.
Pick Disable Emojis if you want to remove the external emoji script for GDPR compliance, which is a different optimization goal.
Choose Disable Everything if you want broader control over multiple WordPress features beyond just the REST API.
Pick Export All URLs if your actual need is to extract URLs from your site rather than lock down the REST API.
Choose WPGraphQL if you want to replace or extend the REST API with a GraphQL endpoint, the opposite of disabling it.