protected function validateActiveUrl($attribute, $value) { $url = str_replace(['http://', 'https://', 'ftp://'], '', strtolower($value)); return checkdnsrr($url); }