Closed lYesterdaYl closed 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?
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::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?