Disable Customer Address Upload
ioweb/module-disable-customer-address-upload
Intercepts the customer address file upload endpoint and returns a 403 Forbidden response, effectively disabling address file uploads for security hardening.
Build Tests
Code Quality
Tested on Magento 2.4.8-p4
Recent Test History
Each release is tested against the latest Magento version at that time.
Top Contributors
View LeaderboardShare This Module's Status
README
Loaded from GitHubIoweb Disable Customer Address Upload (Magento 2)
Disables the customer address file upload endpoint in Magento 2 by intercepting the controller and returning 403 Forbidden.
Module Identity
- Magento module name:
Ioweb_DisableCustomerAddressUpload - Composer package:
ioweb-gr/m2_disablecustomeraddressupload - Module root in this repo: repository root
What It Does
- Intercepts:
Magento\\Customer\\Controller\\Address\\File\\Upload::execute - Prevents controller execution
- Returns HTTP
403with a short error message
Requirements
- Magento 2
magento/module-customer
Installation
Option A: Composer (recommended)
composer require ioweb-gr/m2_disablecustomeraddressupload
bin/magento setup:upgrade
bin/magento cache:flush
Option B: Manual (app/code)
- Copy module to:
<magento_root>/app/code/Ioweb/DisableCustomerAddressUpload
- Run:
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
Uninstall
bin/magento module:disable Ioweb_DisableCustomerAddressUpload
bin/magento setup:upgrade
bin/magento cache:flush
Then remove module files (or remove package if installed via Composer).
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.