Force all non-admin, non-AJAX, and non-REST API requests to return a 404 for headless or API-only sites.
As of April 2026, REST API Only is a WordPress 404 plugin with 0 active installations and a 0/5 rating0. It has been downloaded 141 times in total. Requires WordPress 5.0+ and PHP false+. Available on WordPress.org since 2025. Top alternative: Redirection.
This plugin forces all non-admin, non-AJAX, and non-REST API requests to return a 404 status code.
Ideal for headless WordPress environments or sites that should expose only the API.
| WordPress | 5.0+ requiredTested up to 6.9.4 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.