diff --git a/Validate.php b/Validate.php index f1d26e1..dc15fd3 100644 --- a/Validate.php +++ b/Validate.php @@ -12,10 +12,10 @@ class Validate { /** - * Static function for validating email addresses with multiple secure levels and blacklist. + * Static function for validating email addresses with multiple secure levels and black- and whitelist. * @param string $email email address * @param int $level secure level - * @param array $lists filter lists like whitelist, blacklist, dnsbl,.. + * @param array $lists filter lists like whitelist, blacklist,.. * @return bool is the email address valid? */ static function email (string $email, int $level=1, array $lists=[]) : bool @@ -51,11 +51,6 @@ class Validate $results = checkdnsrr($split[1], "MX"); } - // DNS Blacklist (domains) - if($results && isset($lists['dnsbl']) && $level >= 3) { - // TODO: check if domain is registered in dnsbl of list. - } - return $results; }