Media Folder Malware Cleaner
lotsofpixels/module-media-cleaner-magento2
Automatically scans and removes malware files from the Magento media directory every 15 minutes, protecting the store from uploaded malicious files.
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 GitHubClean Media folder from malware files
The module runs every 15 minutes and cleans the media folder from malware files.
Installation
composer require tinx/media-cleaner
composer require tinx/media-cleaner
Appendix
Remember to protect the media folder with this nginx code. This code will prevent from executing the files in the folders.
# Learn more here: https://sansec.io/research/magento-polyshell
location ~* ^/(?:pub/)?media/custom_options {
return 403;
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Credits
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.