WordPress Disable REST API
Disable the WordPress API for a website.
by Seth Miller · github.com/flexseth/wordpress-disable-rest-api · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/flexseth/wordpress-disable-rest-api/archive/refs/heads/main.zipReadme
Disable the WordPress REST API
install this plugin to remove access to the REST API in a WordPress installation.
Endpoint location for testing
To test this plugin, enter your url, followed by
/wp-json/v2/posts
You should receive an error Access Denied
{"code":"access denied","message":"REST API Disabled","data":{"status":403}}