How to Disable WordPress REST API with Plugins (2026 UK Guide)
17 August 2026
Need to disable WordPress REST API? Discover the best plugins, UK security tips, and GDPR considerations for 2026. Compare options safely.
Why Disable the WordPress REST API?
The WordPress REST API is a powerful feature that allows external apps and your own site's JavaScript to interact with your data. However, it also exposes endpoints that can be exploited for username enumeration, brute force attacks, or scraping personal data. For UK site owners, the GDPR emphasises the importance of protecting user information, and an open REST API can be a liability if not properly secured. Disabling the API entirely (or restricting it to authenticated users) reduces your attack surface, helping you meet security and compliance obligations without sacrificing your site's core functions.
Top Plugins to Disable REST API in 2026
Several plugins make it easy to control REST API access. Popular choices include 'Disable REST API' by WPCode, which offers a simple toggle to fully disable or restrict to logged-in users. 'Disable REST API & JSON' by 10Web provides granular control over which routes are blocked. For a more comprehensive security solution, 'iThemes Security' includes REST API disabling alongside other hardening features. UK-based users should always check that a plugin is actively maintained, compatible with the latest WordPress version, and ideally has UK or EU support for GDPR queries. Avoid outdated plugins that may themselves introduce vulnerabilities.
How to Choose the Right Plugin for Your UK Website
When selecting a REST API disable plugin, consider how your site uses the API. If you rely on Gutenberg, WooCommerce, or AJAX features, a full disable will break them. Look for plugins that allow selective disabling, such as blocking only non-authenticated users or hiding user data endpoints. UK website owners also need to think about GDPR–ensure the plugin doesn't inject scripts or trackers without consent. Check that the plugin makes regular updates and has a good support record. Reading recent reviews from UK users can help you gauge real-world reliability and compatibility with British data protection practices.
Step-by-Step: Disabling REST API Using a Plugin
Most disable plugins follow similar steps. First, install and activate the plugin from the WordPress repository. Go to the plugin's settings page (e.g., Settings > Disable REST API). Choose the level of restriction: either 'Full Disable' to block all endpoints, or 'Disable Only for Non-logged-in Users' which is the recommended option for most sites. Save your changes and then test your site thoroughly. Log out and try to access /wp-json/ to confirm it returns a 403 error. Log back in and verify that the admin dashboard and any AJAX features still work correctly. Adjust settings if you encounter any issues.
Risks and Alternatives to Fully Disabling REST API
Fully disabling the REST API can break your block editor, theme customiser, and many plugins. Instead of a blanket disable, consider limiting access to authorised users, or removing only sensitive routes like /wp-json/wp/v2/users. A Web Application Firewall can block suspicious REST API requests without affecting legitimate use. For UK sites, implementing rate limiting and IP restrictions can further protect against brute force. Always test in a staging environment first and monitor your site's error logs. The goal is to strike a balance between security, functionality, and GDPR compliance–not to brick your website.
FAQ
Yes, if you fully disable it. Gutenberg is a JavaScript-based editor that relies heavily on the REST API to save and fetch content. Choose a plugin that offers 'Disable Only for Non-logged-in Users' or whitelists admin routes so your editor continues to work while public access is blocked.