lotsofpixels/module-media-cleaner-magento2

Clean Media folder from malware files with a cron

Maintainers

Package info

github.com/LotsofPixels/module-media-cleaner-magento2

Type:magento2-module

pkg:composer/lotsofpixels/module-media-cleaner-magento2

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-03-24 10:55 UTC

This package is auto-updated.

Last update: 2026-03-24 11:02:38 UTC


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.

License

MIT

Credits