Download the PHP package mage4/magento2-rest-api-restriction without Composer
On this page you can find all versions of the php package mage4/magento2-rest-api-restriction. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mage4/magento2-rest-api-restriction
More information about mage4/magento2-rest-api-restriction
Files in mage4/magento2-rest-api-restriction
Package magento2-rest-api-restriction
Short Description Restrict/Disabled Rest API Endpoints.
License OSL-3.0 AFL-3.0
Informations about the package magento2-rest-api-restriction
Rest API Restriction for Magento 2
Overview
Mage4 Rest API Restriction is a Magento 2 extension that allows store administrators to disable selected REST API endpoints without modifying core code or creating endpoint-specific plugins.
The module provides a generic admin configuration where blocked REST API endpoints can be listed one per line. When a request matches one of the configured endpoint patterns, the module throws a 403 Forbidden API response with a clear error message.
This extension is useful for merchants and developers who want to harden API access, disable unused endpoints, or temporarily restrict selected REST routes.
Install via composer
Features
- Enable or disable the module from Magento admin
- Restrict specific Magento REST API endpoints
- Configure blocked endpoints from Stores > Configuration > MAGE4 EXTENSIONS > REST API RESTRICTION
- Supports Magento-style route placeholders such as:
:cartId:sku:attributeCode
- Returns a proper JSON API error response
- Uses a generic validation approach instead of endpoint-specific plugins
- Helps improve API security by disabling unnecessary REST endpoints
Supported Endpoint Pattern Examples
You can configure blocked endpoints like:
About us
We’re an innovative development agency building awesome websites, webshops and web applications with Latest Technologies. Check out our website mage4.com or email us at [email protected].