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

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

bredabeds/magento2-simple-antispam
==================================

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

2.0.0(1y ago)08MITPHPPHP ^8.1

Since Jan 21Pushed 1y agoCompare

[ Source](https://github.com/BredaBeds/magento-antispam)[ Packagist](https://packagist.org/packages/bredabeds/magento2-simple-antispam)[ RSS](/packages/bredabeds-magento2-simple-antispam/feed)WikiDiscussions main Synced 1mo ago

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

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

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

A customizeable and simple Magento 2 extension for blocking spam bots creating new customer accounts. Forked from `https://github.com/kreativsoehne/magento-2-simple-antispam`, modernized for PHP 8 and Magento 2.4.x compatible.

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

[](#installation)

```
composer require bredabeds/magento2-simple-antispam
bin/magento module:enable BredaBeds_Antispam
bin/magento setup:upgrade
bin/magento setup:di:compile

```

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:

```
$patterns = [
    '/https?:\/\//i', // Matches http/https
    '/www\./i',       // Matches 'www.'
    '/\.(com|net|us|de|cc|ru|cn|info|biz|xyz|top|pw|tk|ga|ml|cf|gq|ph|vn|in|ro|ua|pk|ng)\b/i', // Matches common TLDs
];

```

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

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

```

How it works
------------

[](#how-it-works)

It's a simple interceptor plugin which taps the \\Magento\\Customer\\Controller\\Account\\CreatePost::Execute() method into an before 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.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance42

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

476d ago

### Community

Maintainers

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

---

Top Contributors

[![ootri](https://avatars.githubusercontent.com/u/3450878?v=4)](https://github.com/ootri "ootri (4 commits)")

---

Tags

magentospamcomposer-installerantispammagento 2

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/bredabeds-magento2-simple-antispam/health.svg)](https://phpackages.com/packages/bredabeds-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)
