The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

748 Modules
496 Ready
245 Need Help
🏆 Leaderboard
Actively Maintained v1.0.0

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.

1
Downloads
Below average
0
GitHub Stars
4d ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
9 warnings
L5 PHPStan

Tested on Magento 2.4.8-p4

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.0 on Magento 2.4.8-p4
Mar 26, 2026

Share This Module's Status

Media Folder Malware Cleaner Magento compatibility status badge

README

Loaded from GitHub

Clean 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

MIT

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.