abelbm / magento2-disablefrontend
Disable Frontend in Magento 2.
Installs: 17 344
Dependents: 0
Suggesters: 0
Security: 0
Stars: 35
Watchers: 2
Forks: 15
Open Issues: 0
Type:magento2-module
Requires
- php: >=5.5
This package is auto-updated.
Last update: 2025-06-05 05:14:22 UTC
README
Disable the frontend in Magento 2 for using only the Admin and the API routes.
1 - Installation Disable Frontend
Manual Installation
Install Disable Frontend for Magento2
- Download the extension
- Unzip the file
- Create a folder {Magento root}/app/code/Abelbm/DisableFrontend
- Copy the content from the unzip folder
Using Composer
composer require abelbm/magento2-disablefrontend
2 - Enable Disable Frontend
- php bin/magento module:enable Abelbm_DisableFrontend
- php bin/magento setup:upgrade
- php bin/magento cache:flush
- php bin/magento setup:di:compile
3 - Change the frontend redirect
Stores > Configuration > Advanced > Admin > Disable Frontend