$url = "https://xbug.top/a/c/c";
$ip = gethostbyname(parse_url($url);
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
//有效域名
}
Last modification:April 27th, 2018 at 05:29 pm
© The copyright belongs to the author