PHPackages                             kreativsoehne/magento2-simple-antispam - 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. kreativsoehne/magento2-simple-antispam

AbandonedArchivedMagento2-module[Security](/categories/security)

kreativsoehne/magento2-simple-antispam
======================================

A Magento 2 extension for blocking (russian) spam bots creating new customer accounts

1.0.0(7y ago)72895[1 issues](https://github.com/Kreativsoehne/magento-2-simple-antispam/issues)[1 PRs](https://github.com/Kreativsoehne/magento-2-simple-antispam/pulls)MITPHPPHP &gt;=7.0.0

Since Jul 23Pushed 6y agoCompare

[ Source](https://github.com/Kreativsoehne/magento-2-simple-antispam)[ Packagist](https://packagist.org/packages/kreativsoehne/magento2-simple-antispam)[ Docs](https://www.kreativundsoehne.de/)[ RSS](/packages/kreativsoehne-magento2-simple-antispam/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

magento-2-simple-antispam
=========================

[](#magento-2-simple-antispam)

A customizeable and simple Magento 2 extension for blocking (russian) spam bots creating new customer accounts.

installation
------------

[](#installation)

```
1. $ composer require kreativsoehne/magento2-simple-antispam
2. $ ./bin/magento module:enable KuS_Antispam
3. $ ./bin/magento setup:upgrade
4. $ ./bin/magento setup:di:compile
5. Profit.

```

usage
-----

[](#usage)

This extension is very simple. By default it won't perform a registration request when some registration fields contain special strings on a blacklist:

```
$spamContent = array(
    "http://",
    "https://",
    "www.",
    ".com",
    ".de",
    ".ru",
    ".cn",
    ".net"
);

```

default registration fields:

```
$formFieldsToCheck = array(
    'firstname',
    'lastname'
);

```

You can change the whole extension behaviour by your need. Just edit this file:

```
./Plugin/Customer/Controller/Account/CreatePostPlugin.php

```

how it works
------------

[](#how-it-works)

It's a simple interceptor plugin which wraps the \\Magento\\Customer\\Controller\\Account\\CreatePost::Execute() method into an around method. It will serach all specified form fields for the spam content by a simple iteration. The original Execute() method will only be called if there was no spam string detected.

Notice:
-------

[](#notice)

This Extension is meant to be used as a skeleton by developers. It is very primitive and may need customization. When installing via Composer, further upgrades will eliminiate your customizations. Make sure to write an interceptor plugin by yourself, don't upgrade or use it as a local extension in the /app/code/ folder.

Propably there will be a future version, capable of defining blacklisted strings and form fields via Magento Admin when there's a demand for it. Just let us know or make the neccesary changey by yourself and leave a pull request. We're happy about every contribution :)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity57

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

2850d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64e16a9472461b5fa92801e576b3a86535082d6a96bd3c6b30de95ef373bd9b1?d=identicon)[kreativsoehne](/maintainers/kreativsoehne)

---

Tags

magentospamcomposer-installerantispammagento 2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kreativsoehne-magento2-simple-antispam/health.svg)

```
[![Health](https://phpackages.com/badges/kreativsoehne-magento2-simple-antispam/health.svg)](https://phpackages.com/packages/kreativsoehne-magento2-simple-antispam)
```

###  Alternatives

[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

102703.5k](/packages/yireo-magento2-whoops)

PHPackages © 2026

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