PHPackages                             david-adigwu/laravel-device-ban - 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. david-adigwu/laravel-device-ban

ActiveLibrary[Security](/categories/security)

david-adigwu/laravel-device-ban
===============================

A Laravel package to ban devices based on their IP address

v1.0.0(11mo ago)10MITPHPPHP ^8.1CI passing

Since Jul 11Pushed 11mo agoCompare

[ Source](https://github.com/Official-David/laravel-device-ban)[ Packagist](https://packagist.org/packages/david-adigwu/laravel-device-ban)[ GitHub Sponsors]()[ RSS](/packages/david-adigwu-laravel-device-ban/feed)WikiDiscussions main Synced today

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/3759dc999e73018519726333559cd7141b8c0f385ad66d3a16d6a348f02a083d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64617669642d6164696777752f6c61726176656c2d6465766963652d62616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/david-adigwu/laravel-device-ban)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2939d94c51d0192ce5e644665a9a52ce123e42d63e1dbf3ba9829e41f8059a04/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64617669642d6164696777752f6c61726176656c2d6465766963652d62616e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/david-adigwu/laravel-device-ban/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f2679100b800d1be2025a8ef21e2935d32c36d322dbd562e7740779f77c960ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64617669642d6164696777752f6c61726176656c2d6465766963652d62616e2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/david-adigwu/laravel-device-ban/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/09009adbd4e7e32624515c14cccf5f2cd71b9ecac85547cf00085ff618891077/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64617669642d6164696777752f6c61726176656c2d6465766963652d62616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/david-adigwu/laravel-device-ban)

Laravel Device Ban is a simple and powerful package that helps you prevent devices from creating multiple user accounts on your Laravel application. It works by identifying and blocking devices based on configurable fingerprinting methods, making it harder for malicious users to bypass signup restrictions using the same device.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/d7badc186e5e230348109f92baa1c5b9643f6712f22ac1f4b4c675ddade82f4d/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d6465766963652d62616e2e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-device-ban)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require david-adigwu/laravel-device-ban
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-device-ban-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-device-ban-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-device-ban-views"
```

Usage
-----

[](#usage)

```
$laravelDeviceBan = new DavidAdigwu\LaravelDeviceBan();
echo $laravelDeviceBan->echoPhrase('Hello, David Adigwu!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [David Adigwu](https://github.com/official-david)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance50

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

359d ago

### Community

Maintainers

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

---

Top Contributors

[![Official-David](https://avatars.githubusercontent.com/u/33360177?v=4)](https://github.com/Official-David "Official-David (6 commits)")

---

Tags

laraveladdressIPdeviceban

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/david-adigwu-laravel-device-ban/health.svg)

```
[![Health](https://phpackages.com/badges/david-adigwu-laravel-device-ban/health.svg)](https://phpackages.com/packages/david-adigwu-laravel-device-ban)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[mchev/banhammer

Banhammer for Laravel allows you to ban any Model by key and by IP.

372111.7k2](/packages/mchev-banhammer)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/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)

PHPackages © 2026

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