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(3mo ago)04↓83.3%OSL-3.0PHPPHP ~8.0|~8.1|~8.2|~8.3|~8.4

Since Mar 24Pushed 3mo 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 3w 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

37

—

LowBetter than 81% of packages

Maintenance82

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity51

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

94d 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)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M23.9k](/packages/friendsofphp-php-cs-fixer)[pnlinh/laravel-google-distance

Caculate Google Distance Matrix API in Laravel

1655.9k](/packages/pnlinh-laravel-google-distance)[redsquirrelstudio/laravel-backpack-import-operation

An operation to make configurable imports for your CRUDs using the Backpack api you know and love

1913.8k](/packages/redsquirrelstudio-laravel-backpack-import-operation)[japanese-date/japanese-date

日本の暦、祝日を取り扱うライブラリ

169.9k](/packages/japanese-date-japanese-date)[james.xue/laravel-admin-breadcrumb

Breadcrumb Sinicization

171.7k](/packages/jamesxue-laravel-admin-breadcrumb)

PHPackages © 2026

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