Firewall icon indicating copy to clipboard operation
Firewall copied to clipboard

Feature Request: isValidIP function

Open chrisShick opened this issue 8 years ago • 1 comments

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?

chrisShick avatar Mar 13 '17 19:03 chrisShick

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 :/

divinity76 avatar Nov 06 '17 10:11 divinity76