PHPackages                             mrssoft/yii2-deny-trash - 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. [Security](/categories/security)
4. /
5. mrssoft/yii2-deny-trash

ActiveLibrary[Security](/categories/security)

mrssoft/yii2-deny-trash
=======================

Adds a ban on access by ip address, in accordance with the rules.

1.2.2(4y ago)11961MITPHP

Since Mar 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mrs2000/yii2-deny-trash)[ Packagist](https://packagist.org/packages/mrssoft/yii2-deny-trash)[ RSS](/packages/mrssoft-yii2-deny-trash/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (8)Used By (0)

yii2-deny-trash
===============

[](#yii2-deny-trash)

Adds a ban on access by ip address, in accordance with the rules

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist mrssoft/yii2-deny-trash "*"

```

or add

```
"mrssoft/yii2-deny-trash": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Configuration:

```
'components' => [
    ...
    'log' => [
        'targets' => [
        [
            'class' => 'mrssoft\denytrash\DenyTrashTarget',
            'levels' => ['error'],
            'serverType' => 'Apache',
            'excludeIp' => ['195.206.45.15'],
            'enabled' => true,
        ],
   ]
   ....
]
```

.htaccess:

```
...
order deny,allow
...

```

Setting rules
-------------

[](#setting-rules)

Setting rules in a file `options.json`

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Every ~197 days

Recently: every ~147 days

Total

7

Last Release

1804d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.1

1.1.5PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e69f6780ee8c8e5b2c10af66e1232ac3925766c6f2f83db1820f2ff9a590a62?d=identicon)[mrs2000](/maintainers/mrs2000)

### Embed Badge

![Health badge](/badges/mrssoft-yii2-deny-trash/health.svg)

```
[![Health](https://phpackages.com/badges/mrssoft-yii2-deny-trash/health.svg)](https://phpackages.com/packages/mrssoft-yii2-deny-trash)
```

###  Alternatives

[nickcv/yii2-encrypter

Openssl Encrypter for Yii2

19640.0k1](/packages/nickcv-yii2-encrypter)

PHPackages © 2026

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