FormValidator::Simple::Plugin::NetAddr::IP is a Perl module that can validate IP addresses.
SYNOPSIS
use FormValidator::Simple qw/NetAddr::IP/;
my $result = FormValidator::Simple->check( $req => [
ip => [ 'NOT_BLANK', 'NETADDR_IPV4HOST' ],
] );
This module adds IP Address validation commands to FormValidator::Simple. It uses NetAddr::IP to do the validation. There are other modules that may do IP Address validation with less overhead, but NetAddr::IP was already being used in the project that this was written for.
VALIDATION COMMANDS
NETADDR_IP4HOST
Checks for a single IPv4 address. Address supplied must be in dotted quad or CIDR format. Does not accept DNS names.
NETADDR_IP4NET
Checks for a IPv4 network block. Address supplied must be in dotted quad or CIDR format. Does not accept DNS names. A /32 is accepted as a network.
Product's homepage
Requirements:
· Perl