awescode/ip-firewall
Composer 安装命令:
composer require awescode/ip-firewall
包简介
The tool for protection your Laravel 5 website by IP. The system works with dynamic tables and you can add your IP to Awescode firewall remotely
README 文档
README
The tool for protection your Laravel 5 website by IP. The system works with dynamic tables and you can add your IP to https://www.awescode.de Firewall remotely.
Installation
Via Composer
$ composer require "awescode/ip-firewall":"1.0.5.@dev"
Add service provider to your app.php file to 'providers'
\Awescode\IPFirewall\FirewallServiceProvider::class
Publish & Migrate firewall table.
$ php artisan vendor:publish $ php artisan migrate
Usage
- Change values in /config/firewall.php
- Go to http://example.com/ip-firewall, copy string, put to MySQL for adding your IP to permanent list
- Make the secret link for dynamic adding IP to system: http://example.com/?{variable_from_firewall_config}={key_from_firewall_config}
Notice:
For automaticly adding temporary new IP address to firewall use:
For getting SQL query for manual adding permanent IP to database:
- http://example.com/ip-firewall (your IP)
- http://example.com/ip-firewall/127.0.0.1 (different IP)
统计信息
- 总下载量: 100
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-04