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

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

1226d 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

[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)[dgtlss/owaspadvisor

A Laravel package to help developers implement OWASP Top 10 security guidelines

327.1k](/packages/dgtlss-owaspadvisor)

PHPackages © 2026

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