Closed githubgobi closed 6 years ago
in laravel and add to blacklist :
$ip = Input::get('ip'); $valid = filter_var($ip, FILTER_VALIDATE_IP);
$firewall = app()->make('firewall'); $return = $firewall->blacklist($valid);
thank You @fatemejon
But have to add ip address to database use
$ip = Input::get('ip'); $valid = filter_var($ip, FILTER_VALIDATE_IP);
$firewall = app()->make('firewall'); $firewall->whitelist($ip);
How to add ipaddress to the firewall table?how to update whitelisted&blocklisted?