vcian/laravel-ip-gateway
Composer 安装命令:
composer require vcian/laravel-ip-gateway
包简介
Blacklist or Whitelist IP of your application routes.
关键字:
README 文档
README
Features
-
The Laravel Ip gateway package helps you to blacklist or whitelist IP to prevent unauthorized access to your application.
-
Since blacklists deny access to specific entities, they are best used when a limited number of items need to be denied access. When most entities need to be denied access, a whitelist approach is more efficient.
Requirements
PHP ^8.0
Installation
You can install the package via composer:
composer require vcian/laravel-ip-gateway
After installation, You need to publish the config file for this package. This will add the file config/ip-gateway.php, where you can configure this package.
php artisan vendor:publish
Config Usage (ip-gateway.php)
-
enable_packageis used for enable/disable access protection. -
enable_blacklistwhen its true that means, It will denied access for registered ips inip-list, false means, It will allow accessing for registered ips inip-list. -
You can authenticated IPs through register route groups in
middleware. -
redirect_route_towill access URL, To redirect if denied. -
You can define all your whitelist or blacklist IP addresses inside
ip-list. -
If you want to add IP gateway middleware in you custom middleware group then just define your custom middleware group inside
middleware
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email ruchit.patel@viitor.cloud instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
Notes
You can create as many whitelists or blacklist groups as you wish to protect access
vcian/laravel-ip-gateway 适用场景与选型建议
vcian/laravel-ip-gateway 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.61k 次下载、GitHub Stars 达 43, 最近一次更新时间为 2019 年 01 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「IP」 「blacklist」 「whitelist」 「ipgateway」 「IP Filtering」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vcian/laravel-ip-gateway 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vcian/laravel-ip-gateway 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vcian/laravel-ip-gateway 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Yii 2 Validator that validates string contents for count, blacklist and whitelist.
Symfony bundle to monitor AWS SES bounces and complaints. Includes SwiftMailer filters.
This is my package whitelist
Umfassendes Anti-SPAM Bundle für Contao Formulare mit ALTCHA Captcha, IP-Blacklist, Content-Analyse und Multi-Layer-Schutz
Web Application Firewall (WAF) package for Laravel
A list of dangerous usernames
统计信息
- 总下载量: 1.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 44
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-11