KISS API Guard Plugin
Strips sensitive product data (stock quantities, sales counts, cost-of-goods) from unauthenticated WooCommerce REST API responses. Authenticated API key holders see the full response.
by KISS Plugins | Hypercart · github.com/kissplugins/kiss-api-guard-plugin
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/kissplugins/kiss-api-guard-plugin/archive/refs/heads/main.zipReadme
KISS API Guard Plugin
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.