PHPackages                             zima/laravel-antibot - 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. zima/laravel-antibot

ActiveLibrary[Security](/categories/security)

zima/laravel-antibot
====================

Antibot middleware for site forms

1.0.0(1y ago)01MITPHPPHP ^8.2

Since Feb 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zzzima/laravel-antibot)[ Packagist](https://packagist.org/packages/zima/laravel-antibot)[ RSS](/packages/zima-laravel-antibot/feed)WikiDiscussions master Synced today

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

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist zima/laravel-antibot "*"

```

or add

```
"zima/laravel-antibot": "*"

```

Publish config
--------------

[](#publish-config)

```
php artisan vendor:publish --tag=antibot-config

```

Usage
-----

[](#usage)

In published config file, you are able to change names of antibot fields, define list of stop words and decide whether to allow links in your content fields.

```
    // List of antibot fields which will be added to form
    'fields' => [
        'telephone' => Antibot::TYPE_FIELD_INPUT,
        'verify' => Antibot::TYPE_FIELD_CHECKBOX,
    ],
```

```
    // Whether to allow links in form fields
    'allow_links' => false,
```

```
    // List of words for detecting bot
    'stop_list' => [
        'погиб', 'плен', 'украин', 'акци', 'скидк', 'всу', 'вооружен',
        'вооруж', 'силы', 'сил', 'солдат', 'биткоин', 'помощь', 'помощ', 'боев',
        'деньг', 'денег', 'free', 'sale', 'porn',
    ],
```

Please configure your presets if necessary

```
    'feedback' => [
        'required_fields' => ['name', 'email'], // bot is detected if these fields are empty
        'content_fields' => ['description'],    // fields in which spam is searched (ignored if empty or not specified)
        'allow_links' => true,                  // use it if you need to overwrite global 'allow_links
    ],
```

Use parameter *required\_fields* when you need to define fields that should not be empty.

Use parameter *content\_fields* when you need to define the fields where words form config "stop\_list" will be searched for.

Use parameter *allow links* when you need to overwrite global param *allow\_links* for special preset.

All params within preset are optional, if they are not defined or empty this level of bot-check will be ignored.

Use dot notation for nested fields e.g. for fields named MyForm\['text'\] use 'MyForm.text'.

Assign middleware to route

```
Route::match(['get', 'post'], '/test', [TestController::class, 'index'])
    ->name('test')
    ->middleware('antibot:feedback');

# or without preset for base level of antibot detecting only

Route::match(['get', 'post'], '/test', [TestController::class, 'index'])
    ->name('test')
    ->middleware('antibot');
```

Output the Antibot use Blade Component
--------------------------------------

[](#output-the-antibot-use-blade-component)

You can use the output component, please add it inside form tags:

```

    Save

```

License
-------

[](#license)

[MIT license](LICENSE.md).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance41

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

499d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/563404?v=4)[zima](/maintainers/zima)[@zima](https://github.com/zima)

---

Top Contributors

[![zzzima](https://avatars.githubusercontent.com/u/16346741?v=4)](https://github.com/zzzima "zzzima (4 commits)")[![marinazima](https://avatars.githubusercontent.com/u/26627231?v=4)](https://github.com/marinazima "marinazima (1 commits)")

---

Tags

laravel

### Embed Badge

![Health badge](/badges/zima-laravel-antibot/health.svg)

```
[![Health](https://phpackages.com/badges/zima-laravel-antibot/health.svg)](https://phpackages.com/packages/zima-laravel-antibot)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3991.8k](/packages/codewithdennis-larament)

PHPackages © 2026

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