antonioribeiro / firewall

Firewall package for Laravel applications
BSD 3-Clause "New" or "Revised" License
1.39k stars 162 forks source link

whitelist,blacklist and remove not working all the time #164

Closed lYesterdaYl closed 4 years ago

lYesterdaYl commented 4 years ago

Not sure why, I have never made it work as expected, so I am not sure how it should work. Nothing write to firewall table as well. Below is the code I use.

        Firewall::whitelist('127.0.0.1');

// Firewall::blacklist('127.0.0.1', true); $whitelisted = Firewall::isWhitelisted('127.0.0.1'); $blacklisted = Firewall::isBlacklisted('127.0.0.1'); Firewall::remove('127.0.0.1'); print_r($whitelisted . " 88888 ". $blacklisted);die;

I just comment whitelist and blacklist and see the print. The "1" is not always switch side. What might be the problem?