Firewall
Firewall copied to clipboard
Feature Request: isValidIP function
How much trouble would it be to add an isValidIP function to the firewall to do return a boolean true or false before adding an IP to the white or black listings? I feel this could be pretty useful.
I would not mind adding it myself if yall can point me in the right direction?
ps, the ip validation itself can be done with filter_var, eg
$isValidIp=(false!==filter_var($ip,FILTER_VALIDATE_IP));
edit: but cidr range validation, that will be more difficult, perhaps significantly so :/