PHPackages                             lotsofpixels/module-media-cleaner-magento2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lotsofpixels/module-media-cleaner-magento2

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

lotsofpixels/module-media-cleaner-magento2
==========================================

Clean Media folder from malware files with a cron

1.0.0(4mo ago)04↓90.5%OSL-3.0PHPPHP ~8.0|~8.1|~8.2|~8.3|~8.4

Since Mar 24Pushed 4mo agoCompare

[ Source](https://github.com/LotsofPixels/module-media-cleaner-magento2)[ Packagist](https://packagist.org/packages/lotsofpixels/module-media-cleaner-magento2)[ RSS](/packages/lotsofpixels-module-media-cleaner-magento2/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

**Clean Media folder from malware files**
=========================================

[](#clean-media-folder-from-malware-files)

The module runs every 15 minutes and cleans the media folder from malware files.

Installation
------------

[](#installation)

composer require tinx/media-cleaner

```
composer require tinx/media-cleaner
```

Appendix
--------

[](#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
------------

[](#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
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

Credits
-------

[](#credits)

- [Rene Donkers](https://github.com/lostofpixels)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance74

Regular maintenance activity

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

140d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d20527a2640dac4df822c12469980bd5ebde3c3ed6809bf7d673b20dd62ee589?d=identicon)[LotsofPixels](/maintainers/LotsofPixels)

### Embed Badge

![Health badge](/badges/lotsofpixels-module-media-cleaner-magento2/health.svg)

```
[![Health](https://phpackages.com/badges/lotsofpixels-module-media-cleaner-magento2/health.svg)](https://phpackages.com/packages/lotsofpixels-module-media-cleaner-magento2)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
