lotsofpixels / module-media-cleaner-magento2
Clean Media folder from malware files with a cron
Package info
github.com/LotsofPixels/module-media-cleaner-magento2
Type:magento2-module
pkg:composer/lotsofpixels/module-media-cleaner-magento2
1.0.0
2026-03-24 10:55 UTC
Requires
- php: ~8.0|~8.1|~8.2|~8.3|~8.4
README
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.