PHPackages                             funnydevjsc/laravel-ip-filter - 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. [Search &amp; Filtering](/categories/search)
4. /
5. funnydevjsc/laravel-ip-filter

ActiveLibrary[Search &amp; Filtering](/categories/search)

funnydevjsc/laravel-ip-filter
=============================

Laravel package to filter bad ip address

1.0.2(2mo ago)117↓100%MITPHPPHP ^8.1|^8.2|^8.3|^8.4

Since Dec 12Pushed 2mo agoCompare

[ Source](https://github.com/funnydevjsc/laravel-ip-address-filter)[ Packagist](https://packagist.org/packages/funnydevjsc/laravel-ip-filter)[ Docs](https://github.com/funnydevjsc/laravel-ip-filter)[ RSS](/packages/funnydevjsc-laravel-ip-filter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

IP Filter Laravel
=================

[](#ip-filter-laravel)

The free Laravel package to help you filter your users ip with multiple services

Use Cases
---------

[](#use-cases)

- Perform a powerful checking for user ip before approving registration or invoice making.
- Parse result from validator
- Example use case

Features
--------

[](#features)

- Get information from ip-api.com
- Check blacklist from barracudacentral, getipintel, easydmarc, valli, uceprotect, projecthoneypot, team-cymru, fortiguard, talosintelligence, scamalytics
- Check quality and e-commerce fraud from maxmind, apivoid, ipqualityscore, cleantalk, iphub
- Easy to validate with a simple line code

Requirements
------------

[](#requirements)

- **PHP**: 8.1 or higher
- **Laravel** 9.0 or higher

Quick Start
-----------

[](#quick-start)

If you prefer to install this package into your own Laravel application, please follow the installation steps below

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

[](#installation)

#### Step 1. Install a Laravel project if you don't have one already

[](#step-1-install-a-laravel-project-if-you-dont-have-one-already)

#### Step 2. Require the current package using composer:

[](#step-2-require-the-current-package-using-composer)

```
composer require funnydevjsc/laravel-ip-filter
```

#### Step 3. Publish the controller file and config file

[](#step-3-publish-the-controller-file-and-config-file)

```
php artisan vendor:publish --provider="FunnyDev\IpFilter\IpFilterServiceProvider" --tag="ip-filter"
```

If publishing files fails, please create corresponding files at the path `config/ip-filter.php` and `app\Http\Controllers\IpFilterControllers.php` from this package. And you can also further customize the IpFilterControllers.php file to suit your project.

#### Step 4. Update the various config settings in the published config file:

[](#step-4-update-the-various-config-settings-in-the-published-config-file)

After publishing the package assets a configuration file will be located at `config/ip-filter.php`.

Testing
-------

[](#testing)

```
