Skip to contents

Validates IP addresses (IPv4 and IPv6) and checks for private ranges that shouldn't be submitted to VirusTotal.

Usage

sanitize_ip(ip)

Arguments

ip

Character string representing an IP address

Value

Sanitized IP address or throws error if invalid