Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/kissplugins/kiss-api-guard-plugin/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A simple WordPress plugin to restrict access to sensitive data via the WooCommerce REST API.
Description
This plugin helps to secure your WooCommerce store by restricting access to sensitive product data and user information for unauthenticated REST API requests.
Authenticated requests (using valid WooCommerce API keys) will continue to have full access to the data.
Features
- Product Data Filtering: Removes sensitive product data like stock quantities, total sales, and cost-of-goods information from product and variation API responses for unauthenticated users.
- User Endpoint Restriction: Blocks access to the
/wp/v2/usersendpoint for unauthenticated requests to prevent user enumeration attacks. - Configurable: You can enable or disable the restrictions from the WooCommerce settings page (
WooCommerce > Settings > Advanced > API Restrictions).
Installation
- Download the plugin as a ZIP file.
- Go to
Plugins > Add Newin your WordPress admin. - Click
Upload Pluginand select the ZIP file. - Activate the plugin.
- Configure the plugin settings under
WooCommerce > Settings > Advanced > API Restrictions.
For Developers
The plugin uses the kiss_api_guard_sensitive_meta_keys filter to allow developers to customize the list of meta keys that are removed from the API response.