CMD_JSON_VALIDATE: type=ip_range_list

Version 1.561


New json validation for IP range lists. Specifically created for Login Key IP validation. Usage: GET or POST: CMD_JSON_VALIDATE type=ip_range_list value=<range list> where <range list> can be a list of IPs (IPv4, or IPv6 if enabled), one IP or IP range per line, separated by a new line character. Sample valid list: 1:2:3::8 1:2:3:4:5:6:7:8 1:2:3:4:5:6:7:8-9 Valid returns: { "success": "" } Error returns: { "error": "&#49;.&#50;.&#51;.&#52; is not a valid IP or range<br>\n" } where A.B.C.D will be html encoded to &#49;.&#50;.&#51;.&#52;.

Interested to try DirectAdmin? Get a 30-day Free Trial!