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 1mo ago

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

28

—

LowBetter than 54% of packages

Maintenance44

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

446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b568f5047aed3f2c74910dd8646b1b50d6cd9fc5b4a7e5969c73d4d3ea1ad342?d=identicon)[zima](/maintainers/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

[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

999465.8k2](/packages/akaunting-laravel-firewall)[soved/laravel-gdpr

GDPR compliance with ease

299127.5k2](/packages/soved-laravel-gdpr)[masterro/laravel-xss-filter

Filter user input for XSS but don't touch other html

41254.5k](/packages/masterro-laravel-xss-filter)[enlightn/laravel-security-checker

A Laravel package to scan your dependencies for known security vulnerabilities.

51173.4k](/packages/enlightn-laravel-security-checker)[nickurt/laravel-pwned-passwords

PwnedPasswords for Laravel 11.x/12.x/13.x

187.5k](/packages/nickurt-laravel-pwned-passwords)[dasundev/filament-access-secret

Secures access to Filament by requiring a secret key in the URL.

382.4k](/packages/dasundev-filament-access-secret)

PHPackages © 2026

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