Skip to content

awescode/IPFirewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

For getting SQL query for manual adding permanent IP to database:

About

The tool for protection your Laravel 5 website by IP. The system works with dynamic tables and you can add your IP to firewall remotely.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages