PHPackages                             shahriar-siraj/laravel-ip-blacklisting - 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. shahriar-siraj/laravel-ip-blacklisting

ActiveLibrary[Security](/categories/security)

shahriar-siraj/laravel-ip-blacklisting
======================================

Laravel package to implement IP Blacklisting

1.0.0(3y ago)14PHPPHP ^7.3.0 | ^8.0

Since Jan 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/shahriar-siraj/laravel-ip-blacklisting)[ Packagist](https://packagist.org/packages/shahriar-siraj/laravel-ip-blacklisting)[ RSS](/packages/shahriar-siraj-laravel-ip-blacklisting/feed)WikiDiscussions master Synced today

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

IP Blacklisting package for Laravel
===================================

[](#ip-blacklisting-package-for-laravel)

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

[](#installation)

Run the following command to install this package:

```
    composer require shahriar-siraj/laravel-ip-blacklisting

```

Then, run the following command to run database migration:

```
    php artisan migrate

```

Usage
-----

[](#usage)

The package creates a database table named `blacklisted_ips`. To block an IP address, insert a record in this table which will restrict it from accessing the routes in `web` groups.

Table columns:

ColumnDescription`ip`IP Address that you want to block`duration_in_minutes`How long you want to block it. Set it as 0, if you want to block it indefinitelyConfiguration
-------------

[](#configuration)

The package allows blocking certain IP addresses for specific minutes. Therefore, a cron job runs `ip-blacklisting:clean` command every minute to clean the outdated IP addresses.

However, if you do not want to use this feature, or if you only want to block IP addresses for specific hours or days, then you can optimize the task scheduling by modifying the cron job schedule in `config/ip_blacklisting.php` file:

```
return [
    /**
     * Cron job schedule for cleaning outdated IP addresses
     */
    'cleaner_schedule' => '* * * * *'
];

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

1278d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5a33a4e31d23bd352848585e35dfb5865da305b2f451f5153165ab3f0c1ab86?d=identicon)[shahriar-siraj](/maintainers/shahriar-siraj)

---

Top Contributors

[![shahriar-siraj](https://avatars.githubusercontent.com/u/11633885?v=4)](https://github.com/shahriar-siraj "shahriar-siraj (1 commits)")[![shahriar-vdc](https://avatars.githubusercontent.com/u/59009669?v=4)](https://github.com/shahriar-vdc "shahriar-vdc (1 commits)")

### Embed Badge

![Health badge](/badges/shahriar-siraj-laravel-ip-blacklisting/health.svg)

```
[![Health](https://phpackages.com/badges/shahriar-siraj-laravel-ip-blacklisting/health.svg)](https://phpackages.com/packages/shahriar-siraj-laravel-ip-blacklisting)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[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)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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