awescode / IPFirewall by Yevhen L.

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
97
6
4
Package Data
Maintainer Username: Yevhen L.
Maintainer Contact: support@awescode.de (Yevhen Lisovenko)
Package Create Date: 2016-06-10
Package Last Update: 2017-07-28
Home Page: https://www.awescode.de
Language: PHP
License: MIT
Last Refreshed: 2024-04-25 15:01:33
Package Statistics
Total Downloads: 97
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 6
Total Watchers: 4
Total Forks: 0
Total Open Issues: 0

Laravel firewall by IP

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

  1. Change values in /config/firewall.php
  2. Go to http://example.com/ip-firewall, copy string, put to MySQL for adding your IP to permanent list
  3. 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:

  • http://example.com/?{variable_from_firewall_config}={key_from_firewall_config}

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)